Added TAX_RUl_ID to simple part of product loop

This commit is contained in:
Franck Allimant
2013-10-25 00:46:25 +02:00
parent eccad09abe
commit d9fc945015
2 changed files with 3 additions and 1 deletions

View File

@@ -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);

View File

@@ -300,7 +300,7 @@
<div class="form-group {if $error}has-error{/if}">
<label for="tax_rule_field" class="control-label">{$label} : </label>
<div class="form-group">
<select id="tax_rule_field" required="required" name="{$name}" class="form-control">
<select id="tax_rule_field" required="required" name="{$name}" class="form-control">
<option value="">{intl l="Select a tax tule"}</option>
{loop name="tax" type="tax-rule" backend_context="1"}
<option value="{$ID}" {if $ID == $TAX_RULE_ID}selected="selected"{/if}>{$TITLE}</option>