// Allow / Disallow multishipping

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10837 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
mDeflotte
2011-12-01 16:34:20 +00:00
parent 567c23dafc
commit 9e72ba7740
5 changed files with 51 additions and 26 deletions
+9
View File
@@ -117,6 +117,9 @@ class CartControllerCore extends FrontController
protected function processChangeProductAddressDelivery()
{
if (!Configuration::get('PS_ALLOW_MULTISHIPPING'))
return;
$old_id_address_delivery = (int)Tools::getValue('old_id_address_delivery');
$new_id_address_delivery = (int)Tools::getValue('new_id_address_delivery');
@@ -129,6 +132,9 @@ class CartControllerCore extends FrontController
protected function processAllowSeperatedPackage()
{
if (!Configuration::get('PS_ALLOW_MULTISHIPPING'))
return;
if (Tools::getValue('value') === false)
die('{"error":true, "error_message": "No value setted"}');
@@ -139,6 +145,9 @@ class CartControllerCore extends FrontController
protected function processDuplicateProduct()
{
if (!Configuration::get('PS_ALLOW_MULTISHIPPING'))
return;
if (
!$this->context->cart->duplicateProduct(
$this->id_product,