AbanteCart Community
AbanteCart Development => Customization help => Topic started 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.
-
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.
<?php if (!$product_info['call_to_order']) { ?>
...
<?php } ?>
-
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)