-
-
Save jonathanmoore/671035399d96d1362121bfc0679a182b to your computer and use it in GitHub Desktop.
Hi Jonathan, I have a question as i have been searching this and found nowhere the required answer, can you please help me to find a way to add / assign tag to a product through liquid?
I mean i want to give some specific products some specific tags, as there are thousands of products in a store and doing it manually will take days to add the tags, i want something like this
{% if product.price >1 or <75 %}
{% assign tag="less-than-75" %}
{% else %}
{% assign tag="above" %}
{% endif %}
Please ignore the coding error as i am totally new to the shopify liquid
Thanks in advance
Any help will be appreciated
Hi Jonathan, I have a question as i have been searching this and found nowhere the required answer, can you please help me to find a way to add / assign tag to a product through liquid?
I mean i want to give some specific products some specific tags, as there are thousands of products in a store and doing it manually will take days to add the tags, i want something like this
{% if product.price >1 or <75 %}
{% assign tag="less-than-75" %}
{% else %}
{% assign tag="above" %}
{% endif %}Please ignore the coding error as i am totally new to the shopify liquid
Thanks in advance
Any help will be appreciated
I think this free app will save hours of your time
https://apps.shopify.com/power-tools-bulk-edit-tags
This was written specifically for the District theme however it should work for any Shopify theme.
thanks a lot jonathanmoore, i used it on the Simple theme and it works great, a little styling and its fine. As i am new to shopify liquid staff, i called a render command on the new liquid file i created from your code and added it on the bottom of the product template.
Cheers
This was written specifically for the District theme however it should work for any Shopify theme.