-- HikaShop version -- : 4.4.5
-- Joomla version -- : 3.9.21
-- PHP version -- : 7.4
Hi, I had met one problem during the development of my website. When I added a plugin which will add additional information to the cart, the new information overrides the current user point information in the additional section. When I use the 'Pay With Points' option, the user point plugin will get the first additional price which has been overriding by my additional info.
The code that I had temporarily to fix is at:
hikashop userpoints plugin
Location: plugins/hikashop/userpoints/userpoints.php
Line 350 needs to add the condition to help the function to determine the deduction point.
The difference between $order->additional[0] & $order->additional[1] is if there is a buy 1 free 1 plugin available, the plugin in additional parameters in the cart will be the first one [0], if there is no plugin the, the userpoint in additional parameters in the cart will be the first one [0]
The image has been shown in the attachment below