Added cart contains products condition

This commit is contained in:
Franck Allimant
2014-05-10 12:12:19 +02:00
parent c4af0a9aef
commit 59ca9760a3
2 changed files with 210 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="{$products_field_name}-value">{intl l="The selected products :"}</label>
<select required multiple size="5" class="form-control" id="{$products_field_name}-value" name="{$products_field_name}[value][]">
{loop type="product" name="list-of-products" order="alpha"}
<option 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 product'}</span>
</div>