From b3d3d6160296ae6bcb0d95c087c064f224948e7a Mon Sep 17 00:00:00 2001 From: Manuel Raynaud Date: Wed, 27 Nov 2013 10:07:58 +0100 Subject: [PATCH] add REF to product_sale_element loop and fix product tempalte --- .../Template/Loop/ProductSaleElements.php | 1 + templates/frontOffice/default/product.html | 34 +++++++++++-------- 2 files changed, 21 insertions(+), 14 deletions(-) diff --git a/core/lib/Thelia/Core/Template/Loop/ProductSaleElements.php b/core/lib/Thelia/Core/Template/Loop/ProductSaleElements.php index da2929c70..e1d54ff90 100755 --- a/core/lib/Thelia/Core/Template/Loop/ProductSaleElements.php +++ b/core/lib/Thelia/Core/Template/Loop/ProductSaleElements.php @@ -174,6 +174,7 @@ class ProductSaleElements extends BaseLoop implements PropelSearchLoopInterface ->set("IS_NEW" , $PSEValue->getNewness() === 1 ? 1 : 0) ->set("IS_DEFAULT" , $PSEValue->getIsDefault() === 1 ? 1 : 0) ->set("WEIGHT" , $PSEValue->getWeight()) + ->set("REF" , $PSEValue->getRef()) ->set("EAN_CODE" , $PSEValue->getEanCode()) ->set("PRICE" , $price) ->set("PRICE_TAX" , $taxedPrice - $price) diff --git a/templates/frontOffice/default/product.html b/templates/frontOffice/default/product.html index 097d40a4b..e09c97f3e 100644 --- a/templates/frontOffice/default/product.html +++ b/templates/frontOffice/default/product.html @@ -159,9 +159,13 @@ {form_field form=$form field='product_sale_elements_id'} {/form_field} @@ -192,17 +196,19 @@ {strip} {capture "additional"} - {ifloop rel="feature_value_info"} - + {ifloop rel="feature_info"} + {ifloop rel="feature_value_info"} + + {/ifloop} {/ifloop} {/capture} {/strip}