[-] FO : Applied the context to the cart in the ParentOrderController::_setDefaultCarrierSelection() method
This commit is contained in:
1 parent
5be964258f
commit
b0cc80ad01
1 file changed
+3
-3
@@ -462,10 +462,10 @@ class ParentOrderControllerCore extends FrontController
|
|||||||
*/
|
*/
|
||||||
protected function _setDefaultCarrierSelection($carriers)
|
protected function _setDefaultCarrierSelection($carriers)
|
||||||
{
|
{
|
||||||
$this->cart->id_carrier = Carrier::getDefaultCarrierSelection($carriers, (int)$this->cart->id_carrier);
|
$this->context->cart->id_carrier = Carrier::getDefaultCarrierSelection($carriers, (int)$this->context->cart->id_carrier);
|
||||||
|
|
||||||
if ($this->cart->update())
|
if ($this->context->cart->update())
|
||||||
return $this->cart->id_carrier;
|
return $this->context->cart->id_carrier;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user