News
Updates, tips and notes on design and code
Looking for Shopify Code Snippets? See my GitHub Repo
Getting a shipping estimate for a single product on Shopify is tough since you need to first add it to the cart. With some JavaScript - and a little bit of cart cookie modification - we can add this feature in to any Shopify store without much fuss.
Since usage of the Fetch API is growing I've started to see a few people having issue with POSTing to AJAX add.js endpoint.
Most people that need to know the total stock value are already likely to be using a third party Inventory Management System, ERP (or similar). If you want to know what your total stock value is you can grab that info via the API - let's look how.
Update: the old Order Status Page scripting method is retiredThis post describes the old Order Status Page. Shopify has retired the legacy checkout customization methods, including additional scripts on the Thank you and Order status pages.
If you're doing some self backups you'll suddenly have the need to grab a list of all the files you've uploaded to the Shopify Admin page at /admin/settings/files. Here's a quick JavaScript snippet to export a list of those files.
Update: this workaround is for Shopify’s old checkoutIf you’re trying to add something to checkout today, skip the Google Analytics injection method below. I wrote this for the checkout Shopify used in 2015.
This is a javascript tool to add Custom Fields to the admin dashboard. Since my other Dashboard tools are proving to be to super handy I figured Store Owners could do with a smaller version for adding metafields.
This is not a documented feature so expect this to vanish at any point. Adding this should be considered experimental at best.
When doing general testing and updates to a Shopify site you invariably come across something that needs to be edited. Rather than loading up the admin, heading to the right section, and then editing the object it's far easier to just click an edit button on the page itself.