Hide prices if other currency isn't filled
7 years 3 weeks ago #310590
by Rixters
Hide prices if other currency isn't filled was created 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!
-- 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.
Less
More
- Posts: 12953
- Thank you received: 1778
7 years 2 weeks ago #310593
by Mohamed Thelji
Replied by Mohamed Thelji on topic Hide prices if other currency isn't filled
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 :
Just after :
Kind regards,
Mohamed Thelji.
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