Hi Elkay
Here goes...
PHP Code:
//edited in version 1-2 by elkay on 12.07.2008
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);
//edit elkay end
and
PHP Code:
}
//remove the existing item
/*line added by elkay with v1-2 on 12.07.2008*/ if ($_POST['edit_item_id'] != zen_get_uprid($_POST['products_id'], $real_ids))
$_SESSION['cart']->remove($_POST['edit_item_id']);
//head off to our destination
Everything seems fine...so I don't get it...
I took the link "edit cart" off , but i'll put it back on so u can try it
http://www.bluedclothing.com/shop/
my products are priced by attributes...u have different sizes (S, L, M, XL) for which u can enter any quantity - it multiplies the total price.
Anyway, whenever u change any attribute (even color...or whatever), it still leaves an extra product in the cart and doesn't perform the actual delete there.
Thanks for the help!
Jonathan
Bookmarks