Tagged: liquid

0

How to compare dates in Shopify?

In Shopify, the dates are strings so you can’t compare strings in the usual way. With Shopify liquid, you have to use the %s date filter to convert the date time to Unix epoch...

0

Extracting all images from an article for a slideshow gallery

The below liquid code help you extract all images from an article.

You can use it to create a slideshow gallery.

0

How to check if a number is divisible by another number in Shopify

Shopify Liquid don’t support a function to check if a number is divisible by another number. But you can combine 2 functions: “modulo” and “if” to do that.

3

How to create metafields for products in Shopify

The metafields object allows you to store additional information for products, collections, orders, blogs, pages and your shop. You can output metafields on your storefront using Liquid. There are several Shopify apps and browser...