Vuex & Data: Keeping It Clean

IntroductionVuex is a state management library, a centralized storage of data for your whole application. Its well documented, beautiful, and easy to use with Vue. The part I want to talk about today is the data portion.I have increasingly seen cases where the data state of Vuex gets transformed…

Apply, Verify, and Validate Shopify Discount Codes

Shopify doesn't have an API to verify discount, however I have found a little work-around. By making an AJAX call to /discount/(code), Shopify will set a cookie telling the checkout to auto-apply a discount on visit to the checkout page. Next, making an AJAX call to /checkout, we're able…

Reactive VueJS Plugins

VueJS has been my go-to framework from building small to medium-sized frontend applications and add-ins. Its simply great - easy to develop with and able to plug into existing systems as a simple view layer. Plugins & Reactivity Plugins in Vue, allow you to extract code into a re-usable module.…