-- HikaShop version -- : 4.4.1
-- Joomla version -- : 3.9.27
-- PHP version -- : 7.4.19
-- Browser(s) name and version -- : Firefox 90.0b3
Hi
I modify various templates so I can modify the display to what I require. Currently I add all my custom code to the end of the relevant HikaShop files.
However, if I want to re-use my custom code, I have to duplicate it in each HikaShop files that I modify. So, is there a custom directory where I can store my files with custom functions / classes that can then be called from my modified HikaShop files?
For example, I have modified the product/cart.php file to add some complex validation based on what is in the cart. I would like to now run the same checks on the checkout page, but I don't want to have to copy/paste the code from the productcart.php customised file.
Thanks