My template has the option to turn on/off “Product Type:” which pulls from the product page under Product Organization–>Custom Type. I’d like to use this display for a different feature (Special Shipping Notes, or similar). How can I change the label from “Product Type:” to “Shipping Info:”?
{% if settings.display_product_type %}
{{ 'products.product.product_type' | t }}
{{ product.type }}
{% endif %}
Bonus points, how can I set this section to display if text is input under Custom Type and not display if the Custom Type is left blank?
Thank you so much!
Hi @Kingofalldeals
You can add new product type and delete old one. No need to do anything in code.
Do it properly, just customize your theme.
Unless your doing other deep customizations DO NOT use product-type to just contain shipping information.
This is like trying put date information into a products price field for some unreasonable reason.
You could be damaging your sites longterm SEO, undermining accessibility and other knock on effects.
Use tags or metafield definitions for this don’t try and shortcut how your trying to do it.
Avoid misusing product data with 100% incorrect unrelated data for that data-type solely to try and insert some visual thing into a spot in your stores website layout out of some idea of convenience, there will be consequences and a lot of the time you as a merchant will be unaware of the invisible problem you’ve created.
If your theme supports OS.20 use a metafield definition as a dynamic source.
Or use a custom-liquid block or section.
https://help.shopify.com/en/manual/online-store/themes/theme-structure/sections-and-blocks
{{ ‘products.product.product_type’ | t }} the “| t” is the translation filter which means that a string can be edited in a themes language editor.
1 Like
Thank you!
The issue is that I am using a 3rd party multi listing software and I only have access to a few data entry inputs: tags, product type (which is actually the custom type) and vendor. I had thought that using “product type” would be ideal and do double-duty both displaying the special shipping conditions and (via a shipping app) sort products into the correct shipping rates.
@PaulNewton In my specific case do you have a suggestion? We have over a thousand products which are constantly evolving so I need a simple way to input the special shipping (free/flat) and display that to the customers. On ebay we use shipping profiles…
Appreciate anyone’s help!
Having a data feature of product attributes no longer able to fulfill any of it’s core purpose for existence is not ideal. It’s a project redflag.
Use tags then, tags can be used as conditionals in themes to display additional shipping information where you need it to.
Ideally though you may want that data to be ingested elsewhere indirectly to add the data to shopify as metafields if you don’t want product tags to have that information for some reason.
And any large scale shipping app worth it’s salt should be able to use tags or collections to use tags indirectly by making smart collections based on those tags.
Or if it has an api again you may want that data to be ingested elsewhere indirectly to be sent to the app as needed.
How do you delete unused product types? They are confusing my team and messing up the inventory!
1 Like
Did you get/find a solution to this? We are having the same issue.