// Add "Allow seperated package" checkbox on the cart
This commit is contained in:
@@ -72,6 +72,8 @@ class CartControllerCore extends FrontController
|
||||
$this->processDeleteProductInCart();
|
||||
else if(Tools::getIsset('changeAddressDelivery'))
|
||||
$this->processChangeProductAddressDelivery();
|
||||
else if(Tools::getIsset('allowSeperatedPackage'))
|
||||
$this->processAllowSeperatedPackage();
|
||||
else if(Tools::getIsset('duplicate'))
|
||||
$this->processDuplicateProduct();
|
||||
|
||||
@@ -124,6 +126,16 @@ class CartControllerCore extends FrontController
|
||||
$old_id_address_delivery,
|
||||
$new_id_address_delivery);
|
||||
}
|
||||
|
||||
protected function processAllowSeperatedPackage()
|
||||
{
|
||||
if (Tools::getValue('value') === false)
|
||||
die('{"error":true, "error_message": "No value setted"}');
|
||||
|
||||
$this->context->cart->allow_seperated_package = (boolean)Tools::getValue('value');
|
||||
$this->context->cart->update();
|
||||
die('{"error":false}');
|
||||
}
|
||||
|
||||
protected function processDuplicateProduct()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user