// Fix bug with multishipping and gift products

This commit is contained in:
mDeflotte
2012-05-21 08:52:45 +00:00
parent 8e12498fb4
commit 853d412010
3 changed files with 4 additions and 1 deletions
+1
View File
@@ -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
+2
View File
@@ -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}