ok solved it on my own:
do the following changes in /includes/extra_cart_actions/edit_cart_item.php:
arround line 176:
1. replace
Code:
$_SESSION['cart']->add_cart($_POST['products_id'], $_SESSION['cart']->get_quantity(zen_get_uprid($_POST['products_id'], $real_ids)), $real_ids);
with
Code:
if ($_POST['edit_item_id'] != zen_get_uprid($_POST['products_id'], $real_ids))
$_SESSION['cart']->add_cart($_POST['products_id'], $_SESSION['cart']->get_quantity(zen_get_uprid($_POST['products_id'], $real_ids))+($new_qty), $real_ids);
else
$_SESSION['cart']->add_cart($_POST['products_id'], $_SESSION['cart']->get_quantity(zen_get_uprid($_POST['products_id'], $real_ids)), $real_ids);
arround line 210
2. replace
Code:
//remove the existing item
$_SESSION['cart']->remove($_POST['edit_item_id']);
with
Code:
//remove the existing item
if ($_POST['edit_item_id'] != zen_get_uprid($_POST['products_id'], $real_ids))
$_SESSION['cart']->remove($_POST['edit_item_id']);
actually i didn't get the exact logic behind it, but it should work :)
cheers,
lukas
Bookmarks