Updates, tips and notes on design and code
Looking for Shopify Code Snippets? See my GitHub Repo
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.
When wanting to view Shopify collections with varied amounts of products per page (aka, pagination) the usual method involves creating a series of alternate templates. Let's explore an idea that ditches the multiples, and just uses one.
Freegeoip.net is a useful service that offers up geolocation data at no cost, and no advertising built in.
Shopify recently dropped the sweet news that SSL is available for all accounts! As part of the activation process existing stores need to make sure the assets (images, css, js, etc) used in the site are not linked up with unencrypted urls. If you've got a serious case of FOMO want to activate without fixing the urls (why crazy person, why?), here's how.
There's going to be times when you want to show a list of the most recents articles (posts) from all your Shopify Blogs combined - not just pulling the latest ones from a single Blog. Since I saw the question pop up on the ecommerce forums again, I grabbed a vodka and wrote some code.
Shopify does lots of things well, and one thing in particular is the ability to scale. To give the engineers a level of control there's some limits on certain things - page size being one.