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 it as a solution.
If you need an expert Shopify developer for customization and development, feel free to contact me via email or WhatsApp.
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
Starting a B2B store is a big undertaking that requires careful planning and execution. W...
By JasonH Sep 23, 2024By investing 30 minutes of your time, you can unlock the potential for increased sales,...
By Jacqui Sep 11, 2024We appreciate the diverse ways you participate in and engage with the Shopify Communi...
By JasonH Sep 9, 2024