From acd5be25d12b71bd36c38627c16cc2c028ec5986 Mon Sep 17 00:00:00 2001 From: tDidierjean Date: Thu, 3 May 2012 08:13:46 +0000 Subject: [PATCH] [-] Classes : fix #PSCFV-1218 - Re-ordering customized products don't duplicate the customization git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@15024 b9a71923-0436-4b27-9f14-aed3839534dd --- classes/Cart.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/classes/Cart.php b/classes/Cart.php index eb01cb4f4..1519da81f 100644 --- a/classes/Cart.php +++ b/classes/Cart.php @@ -2860,8 +2860,8 @@ class CartCore extends ObjectModel foreach ($customs_by_id as $customization_id => $val) { Db::getInstance()->execute(' - INSERT INTO `'._DB_PREFIX_.'customization` (id_cart, id_product_attribute, id_product, quantity) - VALUES('.(int)$cart->id.', '.(int)$val['id_product_attribute'].', '.(int)$val['id_product'].', '.(int)$val['quantity'].')' + INSERT INTO `'._DB_PREFIX_.'customization` (id_cart, id_product_attribute, id_product, `id_address_delivery`, quantity, `quantity_refunded`, `quantity_returned`, `in_cart`) + VALUES('.(int)$cart->id.', '.(int)$val['id_product_attribute'].', '.(int)$val['id_product'].', '.(int)$this->id_address_delivery.', '.(int)$val['quantity'].', 0, 0, 1)' ); $custom_ids[$customization_id] = Db::getInstance(_PS_USE_SQL_SLAVE_)->Insert_ID(); }