-- HikaShop version -- : 5.0.3
-- Joomla version -- : 4.4.3
-- PHP version -- : 8.1.3
-- Browser(s) name and version -- : Chrome latest
Hi guys!
The following is my problem and the task to be solved: I need to set a maximum value for discounts per product, which overrides any preset Hikashop category discounts. What I have:
- A custom field where the value for each product is received from a CRM system (e.g., 30%). The custom field is named "maxkedvezmeny."
- Predefined Hikashop category discounts (e.g., the maximum discount that can be applied is 40%).
However, since not all products within the category can have a 40% discount, the system needs to consider the 30% value from the "maxkedvezmeny" field.
This was previously solved by a developer, and it worked, but it was deleted during a recent update.
Here is the translation:
If I am correct, I need to modify the currency.php file to override the Hikashop discount values when the "maxkedvezmeny" field is smaller than the discount value calculated by Hikashop.
Thanks in advance