Skip to main content

Hide prices if other currency isn't filled

More
7 years 3 weeks ago #310590 by Rixters
-- 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.

More
7 years 2 weeks ago #310593 by Mohamed Thelji
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.155 seconds
Powered by Kunena Forum