cart.html.erb
1.01 KB
<div id="cart1" class="cart" style="display:none"
data-l10nRemoveItem="<%=_('Are you sure you want to remove this item?')%>"
data-l10nCleanCart="<%=_('Are you sure you want to clean your cart?')%>">
<div class="cart-inner">
<div class="cart-content">
<h3><%= _("Cart") %></h3>
<a href="cart:clean" onclick="Cart.clean(this); return false" class="cart-clean"><%=_('Clean cart')%></a>
<ul class="cart-items"></ul>
<div class="cart-total"><%=_('Total:')%> <b></b></div>
<a href="cart:buy" class="cart-buy"><%=_('Shopping checkout')%></a>
</div>
<a href="#" onclick="Cart.toggle(this); return false" class="cart-toggle">
<span class="str-show"><%=_('Show cart')%></span>
<span class="str-hide" style="display:none"><%=_('Hide cart')%></span>
</a>
</div>
</div>
<script type="text/javascript">
//<![CDATA[
new Cart({hasProducts:<%= !locals[:cart].nil? ? "true, enterprise:'#{Enterprise.find(locals[:cart][:enterprise_id]).identifier}'" : "false" %>});
//]]>
</script>