Shopify Flow is an ecommerce automation platform that enables you to automate tasks and processes within your store and across your apps.
In an effort to streamline fulfillment, we want to add the Product Types in the order, in the Order Tags.
We are using the default syntax, but get a "Order tags is invalid" error.
Solved! Go to the solution
This is an accepted solution.
You are using shop productTypes, which a list of all types in your shop. Highly recommend you remove that as it will not work.
I think you want to put the product type of each item in the Order. That would be located at:
Order / lineItems / product / productType
Additionally, to add each as a separate tag, you need to separate them by a comma in the liquid. And finally, if your product types have commas you need to remove them because commas are used by the tag action to create separate tags. Assuming you want to substitute a hyphen, this would look like:
{% for lineItems_item in order.lineItems %}{{ lineItems_item.product.productType | replace: ",", "-" }},{% endfor %}
This is an accepted solution.
You are using shop productTypes, which a list of all types in your shop. Highly recommend you remove that as it will not work.
I think you want to put the product type of each item in the Order. That would be located at:
Order / lineItems / product / productType
Additionally, to add each as a separate tag, you need to separate them by a comma in the liquid. And finally, if your product types have commas you need to remove them because commas are used by the tag action to create separate tags. Assuming you want to substitute a hyphen, this would look like:
{% for lineItems_item in order.lineItems %}{{ lineItems_item.product.productType | replace: ",", "-" }},{% endfor %}
Thanks to everyone who participated in our AMA with 2H Media: Marketing Your Shopify St...
By Jacqui Sep 6, 2024The Hydrogen Visual Editor is now available to merchants in Shopify Editions | Summer '...
By JasonH Sep 2, 2024Note: Customizing your CSS requires some familiarity with CSS and HTML. Before you cust...
By JasonH Aug 12, 2024