From f52c736c15df9e5326aa86aeaa2468db03de3dca Mon Sep 17 00:00:00 2001 From: mDeflotte Date: Mon, 21 May 2012 13:16:06 +0000 Subject: [PATCH] // 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 --- themes/default/order-payment.tpl | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/themes/default/order-payment.tpl b/themes/default/order-payment.tpl index 126737755..8c9817140 100644 --- a/themes/default/order-payment.tpl +++ b/themes/default/order-payment.tpl @@ -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} {if sizeof($discounts)}