// Product Gift are missing on the cart summary (step 5)
// Fix bug : undefined var on payment step git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@15495 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -222,6 +222,7 @@
|
||||
{assign var='productAttributeId' value=$product.id_product_attribute}
|
||||
{assign var='quantityDisplayed' value=0}
|
||||
{assign var='cannotModify' value=1}
|
||||
{assign var='odd' value=$product@iteration%2}
|
||||
{* Display the product line *}
|
||||
{include file="$tpl_dir./shopping-cart-product-line.tpl"}
|
||||
{* Then the customized datas ones*}
|
||||
@@ -274,6 +275,17 @@
|
||||
{if $product.quantity-$quantityDisplayed > 0}{include file="$tpl_dir./shopping-cart-product-line.tpl"}{/if}
|
||||
{/if}
|
||||
{/foreach}
|
||||
{assign var='last_was_odd' value=$product@iteration%2}
|
||||
{foreach $gift_products as $product}
|
||||
{assign var='productId' value=$product.id_product}
|
||||
{assign var='productAttributeId' value=$product.id_product_attribute}
|
||||
{assign var='quantityDisplayed' value=0}
|
||||
{assign var='odd' value=($product@iteration+$last_was_odd)%2}
|
||||
{assign var='ignoreProductLast' value=isset($customizedDatas.$productId.$productAttributeId)}
|
||||
{assign var='cannotModify' value=1}
|
||||
{* Display the gift product line *}
|
||||
{include file="./shopping-cart-product-line.tpl" productLast=$product@last productFirst=$product@first}
|
||||
{/foreach}
|
||||
</tbody>
|
||||
{if sizeof($discounts)}
|
||||
<tbody>
|
||||
|
||||
Reference in New Issue
Block a user