From d9fc9450159abc9fbe12bb8f91d6c8bb48f9fe0f Mon Sep 17 00:00:00 2001 From: Franck Allimant Date: Fri, 25 Oct 2013 00:46:25 +0200 Subject: [PATCH] Added TAX_RUl_ID to simple part of product loop --- core/lib/Thelia/Core/Template/Loop/Product.php | 2 ++ templates/admin/default/includes/product-details-tab.html | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/core/lib/Thelia/Core/Template/Loop/Product.php b/core/lib/Thelia/Core/Template/Loop/Product.php index 4d32b7101..b110e00c3 100755 --- a/core/lib/Thelia/Core/Template/Loop/Product.php +++ b/core/lib/Thelia/Core/Template/Loop/Product.php @@ -539,6 +539,8 @@ class Product extends BaseI18nLoop implements SearchLoopInterface ->set("PREVIOUS" , $previous != null ? $previous->getId() : -1) ->set("NEXT" , $next != null ? $next->getId() : -1) ->set("DEFAULT_CATEGORY" , $default_category_id) + ->set("TAX_RULE_ID" , $product->getTaxRuleId()) + ; $loopResult->addRow($loopResultRow); diff --git a/templates/admin/default/includes/product-details-tab.html b/templates/admin/default/includes/product-details-tab.html index 1d4ebc4c5..67b20ab77 100644 --- a/templates/admin/default/includes/product-details-tab.html +++ b/templates/admin/default/includes/product-details-tab.html @@ -300,7 +300,7 @@
- {loop name="tax" type="tax-rule" backend_context="1"}