All things Shopify and commerce
I'm trying to have a bit of text display if any of the products on a draft order include a specific product type.
I've managed to get it to work per line item, but I'd prefer it only show one line of text at the bottom of the order draft page if any of the items in the draft are a specific product type.
So far, this has worked per line item:
{% if line_item.product.type == 'tshirts' %} SAMPLE TEXT {% endif %}
So how can I get that to display if any of the product.types are a match, separate from the actual line item?
Learn how to expand your operations internationally with Shopify Academy’s learning path...
By Shopify Feb 4, 2025Hey Community, happy February! Looking back to January, we kicked off the year with 8....
By JasonH Feb 3, 2025Expand into selling wholesale with Shopify Academy’s learning path, B2B on Shopify: Lau...
By Shopify Jan 28, 2025