Author Topic: Hide the price with the option Call to order  (Read 614 times)

Offline Phanouman

  • Newbie
  • *
  • Posts: 37
  • Karma: +1/-1
    • View Profile
Hide the price with the option Call to order
« 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.


Offline abantecart

  • Administrator
  • Hero Member
  • *****
  • Posts: 4078
  • Karma: +243/-9
    • View Profile
    • Ideal Open Source Ecommerce Solution
Re: Hide the price with the option Call to order
« Reply #1 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 ?>

We need your help to build better free open source eCommerce platform for everyone.
See how you can help

Offline Phanouman

  • Newbie
  • *
  • Posts: 37
  • Karma: +1/-1
    • View Profile
Re: Hide the price with the option Call to order
« Reply #2 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)