Added cart contains categories condition

This commit is contained in:
Franck Allimant
2014-05-10 12:11:48 +02:00
parent 862d8ec913
commit c4af0a9aef
2 changed files with 216 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
<div class="form-group">
<label for="operator">{intl l="Products are :"}</label>
{$operatorSelectHtml nofilter}
</div>
<div class="form-group">
<label for="{$categories_field_name}-value">{intl l="The selected 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"}
<option style="padding-left: {$LEVEL * 20}px" value="{$ID}" {if in_array($ID, $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>