Updates, tips and notes on design and code
Looking for Shopify Code Snippets? See my GitHub Repo
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.
For some stores the map on the Shopify Order status page can actually add confusion - especially if you don't ship products and are pickup only. There's a simple enough way to hide the map so let's peek at some code to do it.
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.