// Fix bug with multishipping and gift products
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@15476 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -131,6 +131,7 @@ class OrderControllerCore extends ParentOrderController
|
||||
if (Tools::getValue('multi-shipping') == 1)
|
||||
{
|
||||
$this->_assignSummaryInformations();
|
||||
$this->context->smarty->assign('product_list', $this->context->cart->getProducts());
|
||||
$this->setTemplate(_PS_THEME_DIR_.'order-address-multishipping.tpl');
|
||||
}
|
||||
else
|
||||
|
||||
@@ -223,6 +223,8 @@ class OrderOpcControllerCore extends ParentOrderController
|
||||
|
||||
case 'multishipping':
|
||||
$this->_assignSummaryInformations();
|
||||
$this->context->smarty->assign('product_list', $this->context->cart->getProducts());
|
||||
|
||||
if ($this->context->customer->id)
|
||||
$this->context->smarty->assign('address_list', $this->context->customer->getAddresses($this->context->language->id));
|
||||
else
|
||||
|
||||
@@ -42,7 +42,7 @@
|
||||
</tr>
|
||||
</thead>
|
||||
<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='productAttributeId' value=$product.id_product_attribute}
|
||||
{assign var='quantityDisplayed' value=0}
|
||||
|
||||
Reference in New Issue
Block a user