Post by SKjidan » Thu Feb 15, 2024 12:21 am

Hi, i am using opencart v3.0.3.8,
I want to hide the product price and exclude it from search when the product quantity is 0,
I used this query to hide the price from the product in /catalog/model/catalog/product.php

'price' => ($query->row['quantity'] > 0 ? ($query->row['discount'] ? $query->row['discount'] : $query->row['price']) : 'TBA'),
'special' => ($query->row['quantity'] > 0 ? $query->row['special'] : 'TBA'),

But it's not working. When I clear at modification in the admin panel then it works but when I refresh it doesn't work.
I already tried clearing all types of cache. Can anyone help me, please?

Newbie

Posts

Joined
Sun Jun 12, 2022 5:00 am

Post by ADD Creative » Thu Feb 15, 2024 7:58 am

Check the file in storage/modification. Perhaps an extension is changing that file.

www.add-creative.co.uk


Guru Member

Posts

Joined
Sat Jan 14, 2012 1:02 am
Location - United Kingdom

Post by grgr » Thu Feb 15, 2024 8:03 am

You can also try installing a modification manager such as this one:
https://www.opencart.com/index.php?rout ... n_id=22318
It tells you which mods change which files.

-
Image Image Image
VIEW ALL EXTENSIONS * EXTENSION SUPPORT * WEBSITE * CUSTOM REQUESTS


User avatar
Active Member

Posts

Joined
Mon Mar 28, 2011 4:08 pm
Location - UK
Who is online

Users browsing this forum: No registered users and 66 guests