Hi
I need to be able to remove the Price, Payments and add to cart on certain products.
I have used different apps and they all seem to just break instead
I have 4 products that i wish to have price and all necessary cart buttons available. I want all others to be removed from the remaining products.
Please help
@Ashbolt97 - how many total products do you have? this can be done in2 ways
1] add a same tag to all other products like ‘no price’ and then using code whatever products have this tag , prices need to be removed
or
2] create a separate template with no price and cart and set this template to all the products where you do not want price
in both cases manual work too is needed to either add tag or to set template
Hello @Ashbolt97 ,
You can try to follow these steps:
Go to Online Store → Themes → Actions → Edit code
Go to Sections → product-template.liquid file
Wrap that code block with a conditional statement that checks for a specific product tag like this:
{% if product.tags contains 'show_price_addtocart' %}
{% endif %}
For the products you want to remove the price, payment options, and add to cart button from, you need to remove the “show_price_addtocart” tag from those products
- Open the product you want to modify.
- Scroll down to the “Tags” field.
- Remove the “show_price_addtocart” tag from the product.
- Save changes
Hope this can help.
Transcy.
Hi Transcy,
Thank you for your reply what do you mean when you say
Wrap that code block with a conditional statement that checks for a specific product tag like this:
I have the product-template.liquid open but not sure where to insert that code?
Thank you
Hi Suyash,
Its almost used as a databse so the number of products is ever growing. I can add a tag to those that need it but i dont know what kind of code i would have to use or where i would need to put it.
Are you able to please elaborate on what it would need to do to achieve this?
Im using Venture version 12.6.1
Thanks in advance