-- url of the page with the problem -- :
www.sokart.ch
-- HikaShop version -- : HikaShop Business 3.1.1 [1707191036]
-- Joomla version -- : 3.7.4
-- PHP version -- : 7.1
-- Browser(s) name and version -- : Firefox 54.0.1 (32-Bit)
Hello
You helped me to develop one plugin and it don't work with new HikaShop Version!
OLD: onAfterCartUpdate(&$cartClass,&$cart,$product_id,$quantity,$add,$type,$resetCartWhenUpdate,$force)
...
$cartClass = hikashop_get('class.cart');
$cartContent = $cartClass->get();
...
// remove item
$cartClass->updateEntry(0,$cartContent,(int)$product->cart_product_id,0,false,'item',$force);
$cartClass->mainProduct = null;
// add product
$cartClass->updateEntry('1',$cartContent,self::PROD_DIENSTL_ONHE_PROD,'1',false,'product',$force);
...
Function updateEntry(...) seems to be obsolette now, how may I rewrite it in "onAfterCartProductsLoad(&$cart)"?
Thank you in advance!
PR