// Normalize

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@12689 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
rMalie
2012-01-25 16:13:36 +00:00
parent a15c3ce6eb
commit 7a30d151e6
9 changed files with 50 additions and 47 deletions
+5 -7
View File
@@ -70,11 +70,11 @@ class CartControllerCore extends FrontController
$this->processChangeProductInCart();
else if (Tools::getIsset('delete'))
$this->processDeleteProductInCart();
else if(Tools::getIsset('changeAddressDelivery'))
else if (Tools::getIsset('changeAddressDelivery'))
$this->processChangeProductAddressDelivery();
else if(Tools::getIsset('allowSeperatedPackage'))
else if (Tools::getIsset('allowSeperatedPackage'))
$this->processAllowSeperatedPackage();
else if(Tools::getIsset('duplicate'))
else if (Tools::getIsset('duplicate'))
$this->processDuplicateProduct();
// Make redirection
if (!$this->errors && !$this->ajax)
@@ -147,14 +147,12 @@ class CartControllerCore extends FrontController
if (!Configuration::get('PS_ALLOW_MULTISHIPPING'))
return;
if (
!$this->context->cart->duplicateProduct(
if (!$this->context->cart->duplicateProduct(
$this->id_product,
$this->id_product_attribute,
$this->id_address_delivery,
(int)Tools::getValue('new_id_address_delivery')
)
)
))
{
//$error_message = $this->l('Error durring product duplication');
// For the moment no translations