85 lines
4.4 KiB
Smarty
85 lines
4.4 KiB
Smarty
[{ if $oxcmp_basket->getProductsCount()}] <!-- $bl_perfShowRightBasket && -->
|
|
[{oxhasrights ident="TOBASKET"}]
|
|
[{assign var="currency" value=$oView->getActCurrency() }]
|
|
<div class="minibasket_container">
|
|
<strong class="h2">
|
|
<a id="test_[{$_basket_testid}]Header" rel="nofollow" href="[{ oxgetseourl ident=$oViewConf->getSelfLink()|cat:"cl=basket" }]">[{ oxmultilang ident="INC_RIGHTITEM_BASKET" }]</a>
|
|
</strong>
|
|
|
|
<div class="box minibasket">
|
|
[{if $_basket_extended }]
|
|
[{foreach from=$oxcmp_basket->getContents() name=rightlist item=_product}]
|
|
<div id="test_[{$_basket_testid}]Title_[{$_product->getProductId()}]_[{$smarty.foreach.rightlist.iteration}]" class="listitem">
|
|
[{ assign var="sRightListArtTitle" value=$_product->getTitle() }]
|
|
<a id="test_[{$_basket_testid}]Pic_[{$_product->getProductId()}]_[{$smarty.foreach.rightlist.iteration}]" href="[{$_product->getLink()}]" class="picture">
|
|
<img src="[{$_product->getIconUrl()}]" alt="[{ $sRightListArtTitle|strip_tags }]">
|
|
</a>
|
|
<a id="test_[{$_basket_testid}]TitleLink_[{$_product->getProductId()}]_[{$smarty.foreach.rightlist.iteration}]" href="[{$_product->getLink()}]">[{ $sRightListArtTitle|strip_tags }]</a>
|
|
<br>
|
|
( [{$_product->getAmount()}] [{ oxmultilang ident="INC_CMP_BASKET_QTY" }] )
|
|
</div>
|
|
[{/foreach}]
|
|
|
|
<div class="hr"></div>
|
|
[{/if}]
|
|
|
|
<table class="total">
|
|
<tr>
|
|
<th>[{ oxmultilang ident="INC_CMP_BASKET_PRODUCT" }]</th>
|
|
<td id="test_[{$_basket_testid}]Products">[{ $oxcmp_basket->getProductsCount()}]</td>
|
|
</tr>
|
|
<tr>
|
|
<th>[{ oxmultilang ident="INC_CMP_BASKET_QUANTITY" }]</th>
|
|
<td id="test_[{$_basket_testid}]Items">[{ $oxcmp_basket->getItemsCount()}]</td>
|
|
</tr>
|
|
[{ if $oxcmp_basket->getFDeliveryCosts() }]
|
|
<tr>
|
|
<th>[{ oxmultilang ident="INC_CMP_BASKET_SHIPPING" }]</th>
|
|
<td id="test_[{$_basket_testid}]Shipping">[{ $oxcmp_basket->getFDeliveryCosts() }] [{ $currency->sign}] </td>
|
|
</tr>
|
|
[{ /if}]
|
|
<tr>
|
|
<th><b>[{ oxmultilang ident="INC_CMP_BASKET_TOTALPRODUCTS" }]</b></th>
|
|
<td id="test_[{$_basket_testid}]Total"><b>[{ $oxcmp_basket->getFProductsPrice()}] [{ $currency->sign}]</b></td>
|
|
</tr>
|
|
[{if $oViewConf->getShowBasketTimeout()}]
|
|
<tr>
|
|
<th>[{ oxmultilang ident="INC_CMP_BASKET_TIMEOUT" }]</th>
|
|
[{counter name="mini_basket_countdown_nr" assign="countdown_nr"}]
|
|
<td class="countdown" id="countdown_[{$countdown_nr}]">[{$oViewConf->getBasketTimeLeft()|oxformattime}]</td>
|
|
[{oxscript include="jquery.min.js"}]
|
|
[{oxscript include="countdown.jquery.js"}]
|
|
[{capture name="countdown"}]
|
|
$(document).ready(
|
|
function(){
|
|
$(".minibasket_container #countdown_[{$countdown_nr}]").countdown(
|
|
function(count, element, container) {
|
|
if (count <= 1) {
|
|
$(element).parents(".minibasket_container").hide();
|
|
return container.not(element);
|
|
}
|
|
}
|
|
);
|
|
}
|
|
);
|
|
[{/capture}]
|
|
[{oxscript add=$smarty.capture.countdown}]
|
|
</tr>
|
|
[{/if}]
|
|
</table>
|
|
|
|
<div class="hr"></div>
|
|
|
|
[{*** D3 MOD NEXT_LINE * GoogleAnalytics ***}]
|
|
<form action="[{ $oViewConf->getSelfActionLink()|oxaddparams:"cl=basket" }]" method="post">
|
|
<div class="ta_right">
|
|
[{ $oViewConf->getHiddenSid() }]
|
|
<input type="hidden" name="cl" value="basket">
|
|
<div class="tocart"><input id="test_[{$_basket_testid}]Open" type="submit" class="btn" value="[{ oxmultilang ident="INC_RIGHTITEM_DISPLAYBASKET" }]"></div>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
[{/oxhasrights}]
|
|
[{/if}]
|