// Fix bug with multishipping and gift products
This commit is contained in:
@@ -131,6 +131,7 @@ class OrderControllerCore extends ParentOrderController
|
|||||||
if (Tools::getValue('multi-shipping') == 1)
|
if (Tools::getValue('multi-shipping') == 1)
|
||||||
{
|
{
|
||||||
$this->_assignSummaryInformations();
|
$this->_assignSummaryInformations();
|
||||||
|
$this->context->smarty->assign('product_list', $this->context->cart->getProducts());
|
||||||
$this->setTemplate(_PS_THEME_DIR_.'order-address-multishipping.tpl');
|
$this->setTemplate(_PS_THEME_DIR_.'order-address-multishipping.tpl');
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|||||||
@@ -223,6 +223,8 @@ class OrderOpcControllerCore extends ParentOrderController
|
|||||||
|
|
||||||
case 'multishipping':
|
case 'multishipping':
|
||||||
$this->_assignSummaryInformations();
|
$this->_assignSummaryInformations();
|
||||||
|
$this->context->smarty->assign('product_list', $this->context->cart->getProducts());
|
||||||
|
|
||||||
if ($this->context->customer->id)
|
if ($this->context->customer->id)
|
||||||
$this->context->smarty->assign('address_list', $this->context->customer->getAddresses($this->context->language->id));
|
$this->context->smarty->assign('address_list', $this->context->customer->getAddresses($this->context->language->id));
|
||||||
else
|
else
|
||||||
|
|||||||
@@ -42,7 +42,7 @@
|
|||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
{foreach from=$products item=product name=productLoop}
|
{foreach from=$product_list item=product name=productLoop}
|
||||||
{assign var='productId' value=$product.id_product}
|
{assign var='productId' value=$product.id_product}
|
||||||
{assign var='productAttributeId' value=$product.id_product_attribute}
|
{assign var='productAttributeId' value=$product.id_product_attribute}
|
||||||
{assign var='quantityDisplayed' value=0}
|
{assign var='quantityDisplayed' value=0}
|
||||||
|
|||||||
Reference in New Issue
Block a user