Current path: home/webdevt/prestashop17/admin7261/themes/default/template/controllers/cart_rules/
?? Go up: /home/webdevt/prestashop17/admin7261/themes/default/template/controllers
{**
* Copyright since 2007 PrestaShop SA and Contributors
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 3.0)
* that is bundled with this package in the file LICENSE.md.
* It is also available through the world-wide-web at this URL:
* https://opensource.org/licenses/OSL-3.0
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to https://devdocs.prestashop.com/ for more information.
*
* @author PrestaShop SA and Contributors <contact@prestashop.com>
* @copyright Since 2007 PrestaShop SA and Contributors
* @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
*}
<tr id="product_rule_group_{$product_rule_group_id|intval}_tr">
<td>
<a class="btn btn-default" href="javascript:removeProductRuleGroup({$product_rule_group_id|intval});">
<i class="icon-remove text-danger"></i>
</a>
</td>
<td>
<div class="form-group">
<label class="control-label col-lg-4">{l s='Number of products required in the cart to enjoy the discount:' d='Admin.Catalog.Feature'}</label>
<div class="col-lg-1 pull-left">
<input type="hidden" name="product_rule_group[]" value="{$product_rule_group_id|intval}" />
<input class="form-control" type="text" name="product_rule_group_{$product_rule_group_id|intval}_quantity" value="{$product_rule_group_quantity|intval}" />
</div>
</div>
<div class="form-group">
<label class="control-label col-lg-4">{l s='Add a rule concerning'}</label>
<div class="col-lg-4">
<select class="form-control" id="product_rule_type_{$product_rule_group_id|intval}">
<option value="">{l s='-- Choose --' d='Admin.Actions'}</option>
<option value="products">{l s='Products' d='Admin.Global'}</option>
<option value="attributes">{l s='Attributes' d='Admin.Global'}</option>
<option value="categories">{l s='Categories' d='Admin.Global'}</option>
<option value="manufacturers">{l s='Brands' d='Admin.Global'}</option>
<option value="suppliers">{l s='Suppliers' d='Admin.Global'}</option>
</select>
</div>
<div class="col-lg-4">
<a class="btn btn-default" href="javascript:addProductRule({$product_rule_group_id|intval});">
<i class="icon-plus-sign"></i>
{l s="Add" d='Admin.Actions'}
</a>
</div>
</div>
{l s='The product(s) are matching one of these:'}
<table id="product_rule_table_{$product_rule_group_id|intval}" class="table table-bordered">
{if isset($product_rules) && $product_rules|@count}
{foreach from=$product_rules item='product_rule'}
{$product_rule}
{/foreach}
{/if}
</table>
</td>
</tr>