-
Notifications
You must be signed in to change notification settings - Fork 27
/
product-compare.tpl
19 lines (17 loc) · 1.05 KB
/
product-compare.tpl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
{if !empty($comparator_max_item)}
<div class="form-group compare-form">
<form method="post" action="{$link->getPageLink('products-comparison')|escape:'html':'UTF-8'}">
<button type="submit" class="btn btn-success bt_compare bt_compare{if isset($paginationId)}_{$paginationId}{/if}" disabled="disabled">
<span>{l s='Compare'} (<strong class="total-compare-val">{count($compared_products)}</strong>) »</span>
</button>
<input type="hidden" name="compare_product_count" class="compare_product_count" value="{count($compared_products)}">
<input type="hidden" name="compare_product_list" class="compare_product_list" value="">
</form>
</div>
{if empty($paginationId)}
{addJsDefL name=min_item}{l s='Please select at least one product' js=1}{/addJsDefL}
{addJsDefL name=max_item}{l s='You cannot add more than %d product(s) to the product comparison' sprintf=$comparator_max_item js=1}{/addJsDefL}
{addJsDef comparator_max_item=$comparator_max_item}
{addJsDef comparedProductsIds=$compared_products}
{/if}
{/if}