Remove Prices from Collection Page and Product Buy Button Customization (TESTAMENT Theme)

RJJR
Visitor
1 0 0

Hello, 

I have a certain collection that i need to remove the price from the collection page and make the product not show a price or link to buy but link to a form. Can you please help with the code for this? 

 

Screenshot 2023-11-14 095229.pngScreenshot 2023-11-14 095334.png

Reply 1 (1)
gr_trading
Shopify Partner
1396 130 151

Hi @RJJR 

 

This needs a custom code in the theme to hide the price and enable a contact form that will send you mail with URL and user information or any information you want.

 

However, if you want to try it on your own try with the below code at card-product.liquid and main-product.liquid

 

 

{% for t in product.tags %}
{% if t contains 'hide-cat-button' %} 
   <style>
     .[productid] .product-price-cost{display: none;}
   </style>
{% endif %}
{% endfor %}

 

 

gr_trading_0-1699989355335.png

 

add product id as class name in main-product and grid.liquid

 

hope this will help...

For any custom development WhatsApp or connect at Email ID: gr.trading15@gmail.com for quick consultation. | YouTube Videos
To support Buy Me a Coffee