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 Buying Me A Coffee.
-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
We recently spoke with Zopi developers @Zopi about how dropshipping businesses can enha...
By JasonH Oct 23, 2024A big shout out to all of the merchants who participated in our AMA with 2H Media: Holi...
By Jacqui Oct 21, 2024We want to take a moment to celebrate the incredible ways you all engage with the Shopi...
By JasonH Oct 15, 2024