-
Notifications
You must be signed in to change notification settings - Fork 65
/
products.tpl
114 lines (109 loc) · 5.81 KB
/
products.tpl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
{include file="orderforms/standard_cart/common.tpl"}
<div id="order-standard_cart">
<div class="row">
<div class="cart-sidebar sidebar">
{include file="orderforms/standard_cart/sidebar-categories.tpl"}
</div>
<div class="cart-body">
<div class="header-lined">
<h1 class="font-size-36">
{if $productGroup.headline}
{$productGroup.headline}
{else}
{$productGroup.name}
{/if}
</h1>
{if $productGroup.tagline}
<p>{$productGroup.tagline}</p>
{/if}
</div>
{if $errormessage}
<div class="alert alert-danger">
{$errormessage}
</div>
{elseif !$productGroup}
<div class="alert alert-info">
{lang key='orderForm.selectCategory'}
</div>
{/if}
{include file="orderforms/standard_cart/sidebar-categories-collapsed.tpl"}
<div class="products" id="products">
<div class="row row-eq-height">
{foreach $products as $key => $product}
{$idPrefix = ($product.bid) ? ("bundle"|cat:$product.bid) : ("product"|cat:$product.pid)}
<div class="col-md-6">
<div class="product clearfix" id="{$idPrefix}">
<header>
<span id="{$idPrefix}-name">{$product.name}</span>
{if $product.stockControlEnabled}
<span class="qty">
{$product.qty} {$LANG.orderavailable}
</span>
{/if}
</header>
<div class="product-desc">
{if $product.featuresdesc}
<p id="{$idPrefix}-description">
{$product.featuresdesc}
</p>
{/if}
<ul>
{foreach $product.features as $feature => $value}
<li id="{$idPrefix}-feature{$value@iteration}">
<span class="feature-value">{$value}</span>
{$feature}
</li>
{/foreach}
</ul>
</div>
<footer>
<div class="product-pricing" id="{$idPrefix}-price">
{if $product.bid}
{$LANG.bundledeal}<br />
{if $product.displayprice}
<span class="price">{$product.displayprice}</span>
{/if}
{else}
{if $product.pricing.hasconfigoptions}
{$LANG.startingfrom}
<br />
{/if}
<span class="price">{$product.pricing.minprice.price}</span>
<br />
{if $product.pricing.minprice.cycle eq "monthly"}
{$LANG.orderpaymenttermmonthly}
{elseif $product.pricing.minprice.cycle eq "quarterly"}
{$LANG.orderpaymenttermquarterly}
{elseif $product.pricing.minprice.cycle eq "semiannually"}
{$LANG.orderpaymenttermsemiannually}
{elseif $product.pricing.minprice.cycle eq "annually"}
{$LANG.orderpaymenttermannually}
{elseif $product.pricing.minprice.cycle eq "biennially"}
{$LANG.orderpaymenttermbiennially}
{elseif $product.pricing.minprice.cycle eq "triennially"}
{$LANG.orderpaymenttermtriennially}
{/if}
<br>
{if $product.pricing.minprice.setupFee}
<small>{$product.pricing.minprice.setupFee->toPrefixed()} {$LANG.ordersetupfee}</small>
{/if}
{/if}
</div>
<a href="{$product.productUrl}" class="btn btn-success btn-sm btn-order-now" id="{$idPrefix}-order-button"{if $product.hasRecommendations} data-has-recommendations="1"{/if}>
<i class="fas fa-shopping-cart"></i>
{$LANG.ordernowbutton}
</a>
</footer>
</div>
</div>
{if $product@iteration % 2 == 0}
</div>
<div class="row row-eq-height">
{/if}
{/foreach}
</div>
</div>
</div>
</div>
</div>
{include file="orderforms/standard_cart/recommendations-modal.tpl"}