Added RemoveAmountOnCategories coupon type

This commit is contained in:
Franck Allimant
2014-05-28 12:02:56 +02:00
parent 23ebb88719
commit 567fee839c
2 changed files with 100 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
<div class="form-group input-{$fieldName}">
<label for="{$amount_field_name}" class="control-label">{intl l="Discount amount"}</label>
<div class="input-group">
<input id="{$amount_field_name}" type="money" class="form-control" name="thelia_coupon_creation[{$amount_field_name}]" value="{$amount_value}" placeholder="14.50">
{loop type="currency" name="get-symbol" default_only="true"}
<div class="input-group-addon">{$SYMBOL}</div>
{/loop}
</div>
</div>
<div class="form-group">
<label for="{$categories_field_name}-value">{intl l="Applies to products in categories :"}</label>
<select required multiple size="5" class="form-control" id="{$categories_field_name}-value" name="{$categories_field_name}[value][]">
{loop type="category-tree" category=0 name="list-of-categories" backend_context="1"}
<option style="padding-left: {$LEVEL * 20}px" value="{$ID}" {if in_array($ID, $categories_values)}selected="selected"{/if}>{$TITLE}</option>
{/loop}
</select>
<span class="label-help-block">{intl l='Use Ctrl+click to select (or deselect) more that one category'}</span>
</div>