Hide prices if other currency isn't filled

  • Posts: 130
  • Thank you received: 6
  • Hikashop Business
2 weeks 1 day ago #310590

-- HikaShop version -- : 3.5.0
-- Joomla version -- : 3.9.11
-- PHP version -- : 7.3

Hi,

Is there an option to hide prices with an other currency if these prices aren't filled? Now the price gets calculated, but that is what we don't want?
Or do you have a tweak so we can implement it in an override of some sort?

Thanks in advance!

Please Log in or Create an account to join the conversation.

  • Posts: 12131
  • Thank you received: 1673
  • MODERATOR
2 weeks 17 hours ago #310593

Hello,

A solution can be to edit the "listing_price" file of the "product" view of your front-end template via "Hikashop->Display->Views" and add these lines :

if(isset($price->price_orig_value) && (float)$price->price_orig_value > 0)
continue;


Just after :

foreach($this->row->prices as $k => $price) {


Kind regards,
Mohamed Thelji.

Please Log in or Create an account to join the conversation.

Time to create page: 0.050 seconds
Powered by Kunena Forum