by Luis Rodriguez | Aug 30, 2021 | How To, Javascript, React, Shopify
If you are like me, coming from React into the world of Shopify, I’m sure you’ve wanted to implement a React package like Toastify into your theme. Unfortunately, is not as simple as if you were on a NextJS or CRA app but it’s definitely possible. In this tutorial we...
by Paul Mourer | Dec 26, 2019 | All, eCommerce, How To, Javascript, React, Shopify
In this tutorial we will cover the basic setup required to include React into a Shopify theme. This will include: Initializing NPM in our theme Installing necessary dependencies Creating React components within our Shopify theme Configuring webpack and babel to set up...
by Alan Barber | Sep 12, 2016 | How To, Javascript, Magento, Magento 2, Magento Extensions
Fix for developer mode javascript and html caching. Learn how to disable Magento 2 static asset caching by updating the RequireJS config!
by Alan Barber | Jun 20, 2015 | All, How To, Javascript, Magento
Let’s say you’re developing a form where the user input fields are disabled based on certain criteria (a fairly common scenario). You can easily accomplish this for text inputs, select drop-downs, and radio buttons using the native disable binding provided by knockout:
by Alan Barber | Apr 2, 2015 | All, How To, Javascript
When using Javascript sometimes we need to map a literal string: “My.Nested.Class” to the corresponding object or class. Below I’ve provided an easy function to determine this, utilizing the underscorejs library. Essentially, this function takes a...
by Alan Barber | Mar 4, 2015 | How To, Javascript
I wanted to write a quick post regarding these 2 libraries. Any large & complex web-app utilizing Backbone.js (or Knockback in my own case) has need for some type of relationship mapping across models. I’ll be comparing the 2 biggest players, looking at...