Hide prices if other currency isn't filled

  • Posts: 183
  • Thank you received: 10
  • Hikashop Business
4 years 7 months 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: 12953
  • Thank you received: 1778
4 years 7 months 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.065 seconds
Powered by Kunena Forum