News
Updates, tips and notes on design and code
Looking for Shopify Code Snippets? See my GitHub Repo
Shopify permalinks are a handy way to add items to the cart in emails or other offsite links. There are cases when you might don't want to checkout, but rather just fill the cart.
When you upload images to Shopify they get sent to a magical CDN, in all the various sizes ready to be served up with speed. These images don't share the same url as the store but it is possible to change them so they do.
No one likes spam bot form submissions but they are a reality of putting your business online. There's no golden fix to this problem so regardless of what methods you try be very aware that you won't stop them all.
I still don't think the concat filter has made it into the official Shopify docs (and it might not ever) but there's a little clue of its existence in this file. Concat is probably my fave Liquid filter to date - it's awesome and quite useful for simulating a push filter.
The endless search for time can be made even more interesting in Shopify since page content is cached. This can result in time be out of sync so it's best to not rely on it for accuracy.
If you've been paying attention to the new Shopify Checkout that's being rolled out you might notice the images used in the checkout are square. They are square, even if they had not been square in the first place.
You can probably tell I'm busy at the moment by the lack of novel like approach to my writeup on typefaces and general fonts of the land. Just accept the fact that this font is kind of cool, and oddly looks better when on a curve.
I see this one pop up in the forum a lot and it's a pretty simple fix. All that's needed to it add some css to the bottom of your stylesheet - cut and paste style.
Date formatting in Shopify is pretty simple stuff but one common task merchants want to do is the ability to add time to things. Think of the usage case of wanting to show something on a product after a certain amount of time (or conversely hide something).