News
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.
If you've got awesome Shopify customers that return each month to buy the same thing you don't want to force them to have to re-add everything to cart each time. With some theme edits it's possible to add a feature that does just this - let's explore some very example Liquid and JavaScript code.
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.
Shopify gives plenty of ways to sort collection products but things get a little tricky when you need to sort by metafield value. Sure you can still sort the products in a collection manually, but where's the cool factor in that? Let's explore a sorting method that doesn't need JavaScript.
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.
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.