Shopify Code Help
Out of context: Reply #4
- Started
- Last post
- 8 Responses
- Mattjanz3n1
It might be late and I'm reading wrong. I am also no coder but do look at Shopify code on the daily. It seems the only way for a product to prod_inhouse = true would be to have no tags at all.. seems weird. Also, can you do a double if statement, shouldnt it be elseif or close out each if before opening another?
https://stackoverflow.com/questi…
{% if product.tags contains 'KENTUCKY' or 'INHOUSE' %}
{% assign prod_kentucky = true %}
{% assign prod_inhouse = false %}
{% else %}
{% assign prod_kentucky = false %}
{% assign prod_inhouse = true %}{% if customer_kentucky or prod_kentucky == false %}
{% if customer_kentucky or prod_inhouse == false %}
{% include 'index_product-items' with collection.handle %}
{% endif %}
{% endif %}