Shopify themes, liquid, logos, and UX
Hi,
I would like to add product type on my product page, just above the money there, is it possible to be done?
Here is my website: https://1cabe3-26.myshopify.com/
Thank you.
Solved! Go to the solution
This is an accepted solution.
Yes, it is possible to add the product type to your product page just above the price. Here is a Liquid code snippet that you can use to achieve this. You need to edit the product template file (usually product.liquid).
{% if product.type != blank %}
<div class="product-type">
{{ product.type }}
</div>
{% endif %}
This is an accepted solution.
You can create a link that, when clicked, will show all items with the same product type by using a collection filter in the URL. Here’s how you can modify your code to include a link:
{% if product.type != blank %}
<div class="product-type">
<a href="/collections/all/{{ product.type | handleize }}">
{{ product.type }}
</a>
</div>
{% endif %}
To add product type their are two ways
If you can do liquid code by yourself that's perfect if not kindly provide access to you store i will check and create that
CONTACT INFORMATION
Email: mehran.ali5300@gmail.com
Wattsapp: +92 3430211536
-If this solution helps you, kindly LIKE THIS REPLY and MARK AS A SOLUTION OR
-If you need an expert Shopify developer for customization and development, feel free to contact me.
Email: Mehran.ali5300@gmail.com
WhatsApp: +92 343 0211536
This is an accepted solution.
Yes, it is possible to add the product type to your product page just above the price. Here is a Liquid code snippet that you can use to achieve this. You need to edit the product template file (usually product.liquid).
{% if product.type != blank %}
<div class="product-type">
{{ product.type }}
</div>
{% endif %}
Hi @Asad-Mahmood ,
Hi it worked well, I just have one more question, is it possible to add link to it, so that when I click on it, it will show all items that have the same product type?
Thank you.
This is an accepted solution.
You can create a link that, when clicked, will show all items with the same product type by using a collection filter in the URL. Here’s how you can modify your code to include a link:
{% if product.type != blank %}
<div class="product-type">
<a href="/collections/all/{{ product.type | handleize }}">
{{ product.type }}
</a>
</div>
{% endif %}
Hi @Asad-Mahmood ,
I need to change a bit on the link format, but apparently, it worked!
Really really appreciate your help, thank you very much!
Glad to know that it worked for you
Discover how to increase the efficiency of commerce operations with Shopify Academy's l...
By Jacqui Mar 26, 2025Shopify and our financial partners regularly review and update verification requiremen...
By Jacqui Mar 14, 2025Unlock the potential of marketing on your business growth with Shopify Academy's late...
By Shopify Mar 12, 2025