Hi,
I needed this working by tomorrow as it was presented to my client in a previous version ( we upgraded last week )
After some hour of testing, I did the following:
1. Add the given code line to the loadCart() method of the cart class: (and the closing bracket)
if($app->getUserState(HIKASHOP_COMPONENT.'.'.$this->cart_type.'_new', '0') == '0'){
2. Around line 74 of the cart controller, I changed:
From:
$app->setUserState(HIKASHOP_COMPONENT.'.'.$cart_type.'_new', '0');
To:
$app->setUserState(HIKASHOP_COMPONENT.'.'.$cart_type.'_new', '1');
This makes the userstate var be 1 until something else resets it to 0. This causes the loadCart() method to not load any cart.
3. In the same Cart controller file, in the addtocart() method, around line 130, there is a line for resetting the userState var to 0, but it is set after the class is instanced, so the class creates another new cart.
The only way to make it stop was by moving line 136 to line 118, to set the userState before the new call to the cart class. (line numbers may vary)
Like this->
screencast.com/t/JrgUlMNb3
It seems to be working for me with those mods. ->
screencast.com/t/M5EuQ7Pp6
The only remaining broken thing is that it should mark the current cart as active...