hide the price 0$

  • Posts: 129
  • Thank you received: 0
9 years 3 months ago #241807

-- HikaShop version -- : 2.6.3
-- Joomla version -- : 3.5.1

hi,
i find out that when i set a product price to 0 it shows FREE on front end.
and when i set price to 0.0 it shows 0 $ in front.
i want my hika to show a hide the price or show a custom text instead of 0$ ONLY when the price is set to 0.0 from admin.
how can i do this ?

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

  • Posts: 84313
  • Thank you received: 13702
  • MODERATOR
9 years 3 months ago #241816

Hi,

Then, you'll want to change the line:

if(empty($this->row->prices)){
to:
if(empty($this->row->prices) || $this->row->prices[0]->price_value_with_tax == 0.0){
in the file "listing_price" of the view "product" via the menu display>Views.

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

Time to create page: 0.055 seconds
Powered by Kunena Forum