-- HikaShop version -- : 4.7.2
-- Joomla version -- : 3.10.11
-- PHP version -- : 7.4.3
-- Browser(s) name and version -- : Chrome 90.0.4430.212
Hi,
I wish I could add custom backend coupons to the checkout page.
In this case the customer text a code in the hikashop coupon field of the checkout page, we intercept the event, call our custom backend (java app) which decides if the customer deserves one or more discounts, these discounts are generated only at the software level ( no hikashop_discount table or other), and added to the cart "on the fly", also taking advantage of the use of the multicoupon plugin with the possibility of adding an array of coupons.
Is there a way to achieve this?
For example, if we can intercept the coupon field event with the coupon code entered by the customer as parameter, check if there are available coupons on our custom backend and eventually add those coupons directly to the $cart->additional (as multicoupon plugn do), could it work?
Thanks