Hide the price with the option Call to order

Started by Phanouman, October 20, 2017, 05:01:27 AM

Previous topic - Next topic

Phanouman

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.


abantecart

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 ?>


Please  rate your experience or leave your review
We need your help to build better free open source ecommerce platform for everyone. See how you can help

Phanouman

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)


Forum Rules Code of conduct
AbanteCart.com 2010 -