Skip to content

Circle Six Digital

  • Blog
  • Development
  • Design
  • Music
  • Sculpture

Category: Javascript in Magento 2

These posts cover a wide range of JS topics in Magento 2, from vanilla JS to advanced uses of Knockout templates to jQuery Widgets. The goal here is to provide real world solutions to common Magento 2 tasks using the correct built in Javascript systems.

Posted on January 23, 2021

A great use for Require JS Mixins – The catalog “Add to Cart” trick

For a long time I have been using a little Javascript on Magento 2 sites to open up the Minicart when a customer clicks the “Add to Cart” button. But a few days back i took a second look at this little piece of Javascript and realized there was a better way to do this. …

Continue reading “A great use for Require JS Mixins – The catalog “Add to Cart” trick”

Posted on April 22, 2020

Getting started with PWA Studio

PWA Studio is the official Magento Inc. project to bring full PWA functionality to the Magento e-commerce platform. That is a bit of a mouthful but boiled down it means that the Magento 2 front end is going 100% headless and using React JS as its presentation application. If all or any of that was …

Continue reading “Getting started with PWA Studio”

Posted on December 28, 2019December 31, 2019

Debugging Javascript and Require JS – Part 2

In the last section we talk about the Network tab of the browser. In this post we are going to dig into how to control the way files are output to the browser from Magento. This is going place you in the drive seat of this massive application. Get your crash helmet!!! The Require JS …

Continue reading “Debugging Javascript and Require JS – Part 2”

Posted on December 28, 2019December 31, 2019

Debugging Javascript and Require JS – Part 1

In the last post we walked through the process of setting up a jQuery slider on a page. To keep the post concise, I passed over some details that I want to flesh out here. The first is a look into what the browser “sees” when we are using Require JS. In the first blog …

Continue reading “Debugging Javascript and Require JS – Part 1”

Posted on December 28, 2019August 7, 2020

Adding a jQuery Slider to a Magento 2 Site

This is the second in my series of JavaScript in Magento 2. To follow along, I have created a GitHub repo with the starter theme on the master branch and a branch for each article at their finished point. This post will include content for the theme and for cms content. To follow along, checkout …

Continue reading “Adding a jQuery Slider to a Magento 2 Site”

Posted on December 21, 2019December 31, 2019

Introduction to Javascript in Magento 2

JavaScript is hard. No other way to say it. And the implementation of JavaScript in Magento 2 is even more challenging. Even for seasoned Magento 1 developer or seasoned front end developer, the way Magento has integrated JavaScript into the application has many twists and turns that can stop you dead in your development tracks. …

Continue reading “Introduction to Javascript in Magento 2”

Categories

  • Frontend Development
  • Javascript in Magento 2
  • Less in Magneto 2
  • Magento 2
  • PWA Studio
  • Theming In Magento 2
  • Uncategorized

Contact

[email protected]

Who am I?

I was born in the log cabin that I built myself in the rugged mountains of north Denver. I’m currently raising an army of code centric chinchillas that have a singular goal of hacking into the great cheese repos around the world. When I’m not attaching lasers to my attack wombats, I enjoys playing music with my friends, cooking with my wife and hunting leaves with my cats.

  • Twitter
  • Email

© 2025 Mike Stacey