How To Convert Hex to RGBA Value Using Shopify Liquid
Shopify Theme Settings Input Fields support a color picker field. But the output value is a color hex code. If you want to convert this value to RGB, Shopify liquid is supporting that. Eg:...
Shopify Theme Settings Input Fields support a color picker field. But the output value is a color hex code. If you want to convert this value to RGB, Shopify liquid is supporting that. Eg:...
When it comes to selling online, there are a few key factors that can have a big impact on your store’s conversion rate. One of these key factors is web page speed loading. And...
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:
1 2 | {% assign hura_array = "A, A, B, C, C, B, D, A, D, E" | split: ", " %} {{ hura_array | uniq | join: ", " }} |
Output A, B, C, D,...
I’ve written an article to teach you how to create a Custom HTML section. And now, this article will guide how to create a Custom Liquid section to allow add custom liquid code. Follow...
Search engines, such as Google, constantly crawl the internet in search of new data as a source for their search results. The robots.txt file tells search engine bots, known as crawlers, which pages to...
Today I am sharing a script code to create a random number in Shopify liquid.
1 2 3 4 5 | {%- assign min = 1 -%} {%- assign max = 100 -%} {%- assign diff = max | minus: min -%} {%- assign random_number = "now" | date: "%N" | modulo: diff | plus: min -%} {{ random_number }} |
And here is an example, generate a random number from 1 to 100. Wanna change the range, just...
You may want to detect have ReCharge’s subscription product in cart to do something. This article provides the code to help you to do that. ReCharge is the leading subscriptions payments platform designed for...
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.
1 2 3 | {% for product_vendor in shop.vendors %} {{ product_vendor | link_to_vendor }} {% endfor %} |
If you want to get this list...
Cart Token is meant to be a shopping cart ID of the client in a session, that generated by Shopify when an item is added to cart. Sometime you want to get this value...
Countdown timer is a popular featured appear on almost store. It is a powerful technique to push online shoppers into making faster decisions on purchases they are thinking about. However, it’s not something that...