Tagged: Shopify liquid

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.

22

Adding in discount code at cart page

Discount codes can only be processed in the checkout. This customization allows users to enter their discount code on the cart page, the discount code is sent into the checkout as a url parameter...

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...

0

How to Use all_products in a Shopify Theme

For this week’s advanced Liquid Shopify tutorial, we’ll be looking at a way to access product information without having to loop over a collection or be on a product detail page. We can achieve...

0

Retrieve featured image of article blog in Shopify

Previously, we often embed image into article content or article excerpt, after that we will use a code snippet get a first image from that and made featured image for this article.

But...