[-] FO : Fix #PSCFV-6307 correct invoice address in OPC
This commit is contained in:
@@ -219,6 +219,12 @@ class AddressControllerCore extends FrontController
|
||||
else // Update cart address
|
||||
$this->context->cart->autosetProductAddress();
|
||||
|
||||
if (Tools::getValue('type') == 'invoice' && Configuration::get('PS_ORDER_PROCESS_TYPE'))
|
||||
{
|
||||
$this->context->cart->id_address_invoice = (int)$address->id;
|
||||
$this->context->cart->update();
|
||||
}
|
||||
|
||||
if ($this->ajax)
|
||||
{
|
||||
$return = array(
|
||||
|
||||
Reference in New Issue
Block a user