AbanteCart Community

AbanteCart Development => Customization help => Topic started by: Phanouman on October 20, 2017, 05:01:27 AM

Title: Hide the price with the option Call to order
Post by: Phanouman on October 20, 2017, 05:01:27 AM
Hello,

I use the option "Block Product From Ordering" on my website.

It's work fine and the button call to order is displayed.

The problem is that the price is also displayed even I give the value of 0.

How can I hide the price when the option Call to order is activate ?

Thank you very much for your support.

Title: Re: Hide the price with the option Call to order
Post by: abantecart on October 20, 2017, 02:45:23 PM
Here is the link to the template file that you need to edit:

https://github.com/abantecart/abantecart-src/blob/master/public_html/storefront/view/default/template/pages/product/product.tpl

You can put extra condition about line #95 and hide price in case of call to order.

Code: [Select]
<?php if (!$product_info['call_to_order']) { ?>
...
<?php ?>

Title: Re: Hide the price with the option Call to order
Post by: Phanouman on October 23, 2017, 05:16:08 AM
I thank you very much for your answer.

I try with this code but it's don't work:

<?php if(!$product_info['call_to_order']){ ?>($display_price || $product['price'] == 0)