Hi,
I have some products on my website that I would like to be just “Price on Request”. I have assigned a new template to them that hides the price and add to cart buttons, and just leaves a “Send an inquiry” button. However, how would I remove the price from the collection page also? Is there a way to replace the price with the “Price on Request” text on the collections page for every product with a certain tag, vendor, or for every product assigned to the “hide-price” template? Or perhaps just for every product with a price of “0”.
Thanks
Website: boyar-armoury.com
Theme: Studio 8.0.0
For dawn based themes such as studio you would need to edit the snippet price.liquid somewhere around line 35 to insert your own logic for collections
https://github.com/Shopify/dawn/blob/main/snippets/price.liquid#L35
If you need this customization then contact me by mail for services, Contact info in signature.
ALWAYS please provide context, examples: store url, theme name, post url(s) , or any further detail.
Something like this untested liquid, that also adjust the default price varies logic so the collection logic output isn’t overwritten
if template.name == collection and product.template.suffix == "hide-price"
assign money_price = "Price on Request"
endif
if target == product and product.price_varies and product.template.suffix != "hide-price"
assign money_price = 'products.product.price.from_price_html' | t: price: money_price
endif
@happysunday - it can work with certain tag on certain products, or if you want to change it throughout the site then can change the price liquid code.