📄 blockcart.tpl
字号:
{*************************************************************************************************************************************}
{* IMPORTANT : If you change some data here, you have to report these changes in the ./blockcart-json.js (to let ajaxCart available) *}
{*************************************************************************************************************************************}
{if $ajax_allowed}
<script type="text/javascript" src="{$base_dir}js/jquery/iutil.iestore-modifications.js"></script>
{* to perfectly play the tranfert animation, the script ifx.js have to be called here, but it create a method conflit with jquery.serialScroll.js file *}
<script type="text/javascript" src="{$base_dir}js/jquery/ifxtransfer.js"></script>
<script type="text/javascript" src="{$base_dir}modules/blockcart/ajax-cart.js"></script>
{/if}
<!-- 购物车模块 -->
<div id="cart_block" class="block exclusive">
<div class="car_title_bg">
<div class="car_title_bg_right"></div>
<div class="car_title_bg_left">
<h4>
<a href="{$base_dir_ssl}order.php">{$cartsss}</a>
{if $ajax_allowed}
<span id="block_cart_expand" {if $colapseExpandStatus eq 'expanded'}class="hidden"{/if}> </span>
<span id="block_cart_collapse" {if $colapseExpandStatus eq 'collapsed' || !isset($colapseExpandStatus)}class="hidden"{/if}> </span>
{/if}
</h4>
</div>
</div>
<div class="block_border">
<div class="block_content">
<!-- 总结模块 -->
<div id="cart_block_summary" class="{if $colapseExpandStatus eq 'expanded' || !$ajax_allowed}collapsed{else}expanded{/if}">
<span class="ajax_cart_quantity">{if $cart_qties > 0}{$cart_qties}{/if}</span>
<span class="ajax_cart_product_txt_s{if $cart_qties < 2} hidden{/if}">{$productss}</span>
<span class="ajax_cart_product_txt{if $cart_qties != 1} hidden{/if}">{$productcc}</span>
<span class="ajax_cart_total">{if $cart_qties > 0}{convertPrice price=$cart->getOrderTotal(true)}{/if}</span>
<span class="ajax_cart_no_product">{if $cart_qties == 0}{$emptyty}{/if}</span>
</div>
<!-- 产品名单模块 -->
<div id="cart_block_list" class="{if $colapseExpandStatus eq 'expanded' || !$ajax_allowed}expanded{else}collapsed{/if}">
{if $products}
<dl class="products">
{foreach from=$products item=product name=myLoop}
<dt id="cart_block_product_{$product.id_product}{if $product.id_product_attribute}_{$product.id_product_attribute}{/if}" class="{if $smarty.foreach.myLoop.first}first_item{elseif $smarty.foreach.myLoop.last}last_item{else}item{/if}">
<span class="quantity-formated"><span class="quantity">{$product.cart_quantity}</span>x</span>
<a class="cart_block_product_name" href="{$link->getProductLink($product.id_product, $product.link_rewrite)}" title="{$product.name|escape:htmlall:'UTF-8'}">{$product.name|escape:htmlall:'UTF-8'|truncate:8}</a>
<a class="ajax_cart_block_remove_link" href="{$base_dir}cart.php?delete&id_product={$product.id_product}&ipa={$product.id_product_attribute}&token={$static_token}" title="{$removep}"> </a>
<span class="price">{displayWtPrice p="`$product.price_wt*$product.cart_quantity`"}</span>
</dt>
{if isset($product.attributes_small)}
<dd id="cart_block_combination_of_{$product.id_product}{if $product.id_product_attribute}_{$product.id_product_attribute}{/if}" class="{if $smarty.foreach.myLoop.first}first_item{elseif $smarty.foreach.myLoop.last}last_item{else}item{/if}">
<a href="{$link->getProductLink($product.id_product, $product.link_rewrite)}" title="{$pdl}">{$product.attributes_small}</a>
</dd>
{/if}
{/foreach}
</dl>
{/if}
<p {if $products}class="hidden"{/if} id="cart_block_no_products">{$nop}</p>
{if $discounts|@count > 0}<table id="vouchers">
<tbody>
{foreach from=$discounts item=discount}
<tr id="bloc_cart_voucher_{$discount.id_discount}">
<td class="name" title="{$discount.description}">{$discount.name|cat:' : '|cat:$discount.description|truncate:5:'...':true:false}</td>
<td class="price">-{convertPrice price=$discount.value_real}</td>
<td class="delete"><a href="{$base_dir_ssl}order.php?deleteDiscount={$discount.id_discount}" title="{$delete}"><img src="{$img_dir}icon/delete.gif" alt="{$delete}" class="icon" /></a></td>
</tr>
{/foreach}
</tbody>
</table>
{/if}
<p id="cart-prices">
<span>{$shipping}</span>
<span id="cart_block_shipping_cost" class="price ajax_cart_shipping_cost">{$shipping_cost}</span>
<br/>
{if $show_wrapping}
<span>{$wrapping}</span>
<span id="cart_block_wrapping_cost" class="price">{$wrapping_cost}</span>
<br/>
{/if}
<span>{$ttl}</span>
<span id="cart_block_total" class="price ajax_block_cart_total">{$total}</span>
</p>
<p id="cart-buttons">
<a href="{$base_dir_ssl}order.php" class="button_small" title="{$cartsss}">{$cartsss}</a>
<a href="{$base_dir_ssl}order.php?step=1" id="button_order_cart" class="exclusive" title="{$chech_out}">{$check_out}</a>
</p>
</div>
</div>
</div>
</div>
<!-- /购物车模块 -->
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -