/
listitem_infogrid.tpl
169 lines (161 loc) · 10.5 KB
/
listitem_infogrid.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
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
[{block name="widget_product_listitem_infogrid"}]
[{assign var="product" value=$oView->getProduct()}]
[{assign var="blDisableToCart" value=$oView->getDisableToCart()}]
[{assign var="iIndex" value=$oView->getIndex()}]
[{assign var="showMainLink" value=$oView->getShowMainLink()}]
[{assign var="currency" value=$oView->getActCurrency()}]
[{if $showMainLink}]
[{assign var='_productLink' value=$product->getMainLink()}]
[{else}]
[{assign var='_productLink' value=$product->getLink()}]
[{/if}]
[{assign var="aVariantSelections" value=$product->getVariantSelections(null,null,1)}]
[{assign var="blShowToBasket" value=true}] [{* tobasket or more info ? *}]
[{if $blDisableToCart || $product->isNotBuyable() || ($aVariantSelections&&$aVariantSelections.selections) || $product->hasMdVariants() || ($oViewConf->showSelectListsInList() && $product->getSelections(1)) || $product->getVariants()}]
[{assign var="blShowToBasket" value=false}]
[{/if}]
<form name="tobasket[{$testid}]" [{if $blShowToBasket}]action="[{$oViewConf->getSelfActionLink()}]" method="post"[{else}]action="[{$_productLink}]" method="get"[{/if}]>
<div class="hidden">
[{$oViewConf->getNavFormParams()}]
[{$oViewConf->getHiddenSid()}]
<input type="hidden" name="pgNr" value="[{$oView->getActPage()}]">
[{if $recommid}]
<input type="hidden" name="recommid" value="[{$recommid}]">
[{/if}]
[{if $blShowToBasket}]
[{oxhasrights ident="TOBASKET"}]
<input type="hidden" name="cl" value="[{$oViewConf->getTopActiveClassName()}]">
[{if $owishid}]
<input type="hidden" name="owishid" value="[{$owishid}]">
[{/if}]
[{if $toBasketFunction}]
<input type="hidden" name="fnc" value="[{$toBasketFunction}]">
[{else}]
<input type="hidden" name="fnc" value="tobasket">
[{/if}]
<input type="hidden" name="aid" value="[{$product->oxarticles__oxid->value}]">
[{if $altproduct}]
<input type="hidden" name="anid" value="[{$altproduct}]">
[{else}]
<input type="hidden" name="anid" value="[{$product->oxarticles__oxnid->value}]">
[{/if}]
<input type="hidden" name="am" value="1">
[{/oxhasrights}]
[{else}]
<input type="hidden" name="cl" value="details">
<input type="hidden" name="anid" value="[{$product->oxarticles__oxnid->value}]">
[{/if}]
</div>
<div class="row">
<div class="col-xs-12 col-md-5">
[{block name="widget_product_listitem_infogrid_gridpicture"}]
<div class="picture text-center">
<a href="[{$_productLink}]" title="[{$product->oxarticles__oxtitle->value}] [{$product->oxarticles__oxvarselect->value}]">
<img src="[{$oViewConf->getImageUrl('spinner.gif')}]" data-src="[{$product->getThumbnailUrl()}]" alt="[{$product->oxarticles__oxtitle->value}] [{$product->oxarticles__oxvarselect->value}]" class="img-responsive">
</a>
</div>
[{/block}]
</div>
<div class="col-xs-12 col-md-7">
<div class="listDetails">
[{block name="widget_product_listitem_infogrid_titlebox"}]
<div class="title">
<a id="[{$testid}]" href="[{$_productLink}]" class="title" title="[{$product->oxarticles__oxtitle->value}] [{$product->oxarticles__oxvarselect->value}]">
<span>[{$product->oxarticles__oxtitle->value}] [{$product->oxarticles__oxvarselect->value}]</span>
</a>
</div>
[{/block}]
[{block name="widget_product_listitem_infogrid_shortdesc"}]
<div class="shortdesc">
[{$product->oxarticles__oxshortdesc->rawValue}]
</div>
[{/block}]
[{block name="widget_product_listitem_infogrid_selections"}]
[{if $aVariantSelections && $aVariantSelections.selections }]
<div id="variantselector_[{$iIndex}]" class="selectorsBox js-fnSubmit clear">
[{foreach from=$aVariantSelections.selections item=oSelectionList key=iKey}]
[{include file="widget/product/selectbox.tpl" oSelectionList=$oSelectionList sJsAction="js-fnSubmit" blHideLabel=true}]
[{/foreach}]
</div>
[{elseif $oViewConf->showSelectListsInList()}]
[{assign var="oSelections" value=$product->getSelections(1)}]
[{if $oSelections}]
<div id="selectlistsselector_[{$iIndex}]" class="selectorsBox js-fnSubmit clear">
[{foreach from=$oSelections item=oList name=selections}]
[{include file="widget/product/selectbox.tpl" oSelectionList=$oList sFieldName="sel" iKey=$smarty.foreach.selections.index blHideDefault=true sSelType="seldrop" sJsAction="js-fnSubmit" blHideLabel=true}]
[{/foreach}]
</div>
[{/if}]
[{/if}]
[{/block}]
<div class="price">
<div class="content">
[{block name="widget_product_listitem_infogrid_price"}]
[{oxhasrights ident="SHOWARTICLEPRICE"}]
[{assign var="oUnitPrice" value=$product->getUnitPrice()}]
[{assign var="tprice" value=$product->getTPrice()}]
[{assign var="price" value=$product->getPrice()}]
[{if $tprice && $tprice->getBruttoPrice() > $price->getBruttoPrice()}]
<span class="oldPrice text-muted">
<del>[{$product->getFTPrice()}] [{$currency->sign}]</del>
</span>
[{/if}]
[{block name="widget_product_listitem_infogrid_price_value"}]
[{if $product->getFPrice()}]
<span class="lead text-nowrap">
[{if $product->isRangePrice()}]
[{oxmultilang ident="PRICE_FROM"}]
[{if !$product->isParentNotBuyable()}]
[{$product->getFMinPrice()}]
[{else}]
[{$product->getFVarMinPrice()}]
[{/if}]
[{else}]
[{if !$product->isParentNotBuyable()}]
[{$product->getFPrice()}]
[{else}]
[{$product->getFVarMinPrice()}]
[{/if}]
[{/if}]
[{$currency->sign}]
[{if $oView->isVatIncluded()}]
[{if !($product->hasMdVariants() || ($oViewConf->showSelectListsInList() && $product->getSelections(1)) || $product->getVariants())}]*[{/if}]
[{/if}]
</span>
[{/if}]
[{/block}]
[{if $oUnitPrice}]
<span id="productPricePerUnit_[{$testid}]" class="pricePerUnit">
[{$product->oxarticles__oxunitquantity->value}] [{$product->getUnitName()}] | [{oxprice price=$oUnitPrice currency=$currency}]/[{$product->getUnitName()}]
</span>
[{elseif $product->oxarticles__oxweight->value }]
<span id="productPricePerUnit_[{$testid}]" class="pricePerUnit">
<span title="weight">[{oxmultilang ident="WEIGHT"}]</span>
<span class="value">[{$product->oxarticles__oxweight->value}] [{oxmultilang ident="KG"}]</span>
</span>
[{/if}]
[{/oxhasrights}]
[{/block}]
</div>
</div>
[{block name="widget_product_listitem_infogrid_tobasket"}]
<div class="actions">
<div class="btn-group">
[{if $blShowToBasket}]
[{oxhasrights ident="TOBASKET"}]
<button type="submit" class="btn btn-default hasTooltip" data-placement="bottom" title="[{oxmultilang ident="TO_CART"}]" data-container="body">
<i class="fa fa-shopping-cart"></i>
</button>
[{/oxhasrights}]
<a class="btn btn-primary" href="[{$_productLink}]" >[{oxmultilang ident="MORE_INFO"}]</a>
[{else}]
<a class="btn btn-primary" href="[{$_productLink}]" >[{oxmultilang ident="MORE_INFO"}]</a>
[{/if}]
</div>
</div>
[{/block}]
</div>
</div>
</div>
</form>
[{/block}]