[-] BO: Fix #PSCFV-6386 recyclable should be init to 0 on BO orders
This commit is contained in:
1 parent
091459bde6
commit
cb818d1ece
1 file changed
+7
@@ -189,6 +189,13 @@ class AdminCartsControllerCore extends AdminController
|
|||||||
if (!$id_cart)
|
if (!$id_cart)
|
||||||
$id_cart = $customer->getLastCart(false);
|
$id_cart = $customer->getLastCart(false);
|
||||||
$this->context->cart = new Cart((int)$id_cart);
|
$this->context->cart = new Cart((int)$id_cart);
|
||||||
|
|
||||||
|
if (!$this->context->cart->id)
|
||||||
|
{
|
||||||
|
$this->context->cart->recyclable = 0;
|
||||||
|
$this->context->cart->gift = 0;
|
||||||
|
}
|
||||||
|
|
||||||
if (!$this->context->cart->id_customer)
|
if (!$this->context->cart->id_customer)
|
||||||
$this->context->cart->id_customer = $id_customer;
|
$this->context->cart->id_customer = $id_customer;
|
||||||
if ($this->context->cart->OrderExists())
|
if ($this->context->cart->OrderExists())
|
||||||
|
|||||||
Reference in new issue
Block a user