Tagged: Liquid Template Language

How To Remove Any Duplicate Items In A Shopify Array

How To Remove Any Duplicate Items In A Shopify Array

0

How To Remove Any Duplicate Items In A Shopify Array

In this article, you will learn how to remove duplicates from an array in Shopify liquid. In fact, Shopify liquid supports that with the filter called uniq. Eg:

Output A, B, C, D,...

How to Generate Random Numbers in Shopify liquid

How to Generate Random Numbers in Shopify liquid

0

How to Generate Random Numbers in Shopify liquid

Today I am sharing a script code to create a random number in Shopify liquid.

And here is an example, generate a random number from 1 to 100. Wanna change the range, just...

How to get all unique vendors in a Shopify store

How to get all unique vendors in a Shopify store

0

How to get all unique vendors in a Shopify store

The Shopify REST API doesn’t have an endpoint that will specifically list only the unique vendors on products in a shop. But Shopify liquid supports that.

If you want to get this list...