Page MenuHomeIn-Portal Phabricator

shop_cart.tpl
No OneTemporary

File Metadata

Created
Wed, Nov 18, 3:38 PM

shop_cart.tpl

<table border="0" cellspacing="0" cellpadding="0" class="block-no-border">
<tr>
<td class="block-header"><inp2:m_Phrase label="lu_comm_YourCart"/></td>
</tr>
<tr>
<td class="block-data">
<form method="post" action="<inp2:m_FormAction />">
<inp2:m_if check="ord_CartHasError">
<table class="warning">
<tr>
<td valign="top" align="left" class="block-data">
<img src="img/message.gif" alt="" width="19" height="19" />
<span class="warning-text"><inp2:m_Phrase label="lu_Warning"/></span><br />
<inp2:ord_CheckoutError state_changed="lu_comm_msg_state_changed" qty_unavailable="lu_comm_msg_qty_unavailable" outofstock="lu_comm_msg_outofstock"
coupon_applied="lu_comm_CouponApplied"
invalid_code="lu_comm_invalid_code" code_expired="lu_comm_code_expired"
min_qty="lu_min_qty_error" code_removed="lu_comm_CouponRemoved"
code_removed_automatically="lu_comm_CouponIsNotEffective"
changed_after_login="lu_comm_CartChangedAfterLogin" />
</td>
</tr>
</table>
</inp2:m_if>
<table>
<inp2:m_DefineElement name="shop_cart_header">
<tr class="cart-header">
<inp2:m_if check="m_GetConfig" name="ShowProductImagesInOrders">
<td colspan="2"><inp2:m_Phrase label="lu_comm_ProductDescription"/></td>
<inp2:m_else/>
<td><inp2:m_Phrase label="lu_comm_ProductDescription"/></td>
</inp2:m_if>
<td><inp2:m_Phrase label="lu_comm_YourPrice"/></td>
<td><inp2:m_Phrase label="lu_comm_Qty"/>.</td>
<td><inp2:m_Phrase label="lu_comm_Total"/></td>
<td>&nbsp;</td>
</tr>
</inp2:m_DefineElement>
<inp2:m_include template="in-commerce/blocks/checkout/options"/>
<inp2:m_DefineElement name="product_image">
<img src="<inp2:m_param name="img_path" />" title="<inp2:m_param name="alt" />" alt="<inp2:m_param name="alt" />" <inp2:m_param name="img_size" /> border="0" /><br/>
</inp2:m_DefineElement>
<inp2:m_DefineElement name="shop_cart_item">
<tr class="cart-item">
<inp2:m_if check="m_GetConfig" name="ShowProductImagesInOrders">
<td width="120">
<inp2:p_Image render_as="product_image" thumbnail="1" DefaultImage="in-commerce/img/no_picture_list.gif" MaxWidth="120" MaxHeight="120" DefaultWidth="120" />
</td>
</inp2:m_if>
<td>
<a href="<inp2:ProductLink template="__default__"/>"><inp2:Field name="Name" /></a> <inp2:m_if check="ord_BackorderFlag"> <span class="error"><inp2:m_phrase label="lu_cart_BackorderFlag" /></span></inp2:m_if>
<inp2:m_if check="HasOptions">
<br/>
<span style="font-size: 8pt">
<inp2:m_if check="DisplayOptionsPricing"> <!-- selectable options or overriding combination -->
<inp2:PrintOptions render_as="option_element" currency="selected"/>
<inp2:m_else/> <!-- listed combinations -->
<inp2:PrintOptions render_as="option_element_no_price" currency="selected"/>
</inp2:m_if>
<inp2:m_if check="FieldEquals" field="OptionsSelectionMode" value="0"> <!-- selectable options -->
<a href="<inp2:m_link template="__default__" pass="m,p,orditems"/>"><inp2:m_Phrase label="lu_comm_edit_options"/></a>
</inp2:m_if>
</span>
</inp2:m_if>
<inp2:m_if check="p_CustomField" name="Availability">
<br />
<inp2:p_CustomField name="Availability"/>
</inp2:m_if>
<inp2:m_if check="HasDiscount">
<br />
<inp2:m_Phrase label="lu_comm_RegularPrice" />: <inp2:Field name="FlatPrice" currency="selected"/><br />
<inp2:m_Phrase label="lu_comm_Discount" />: <span class="price1"><inp2:Field name="ItemDiscount" currency="selected" negative="1" /></span>
<a href="javascript:showDiscountInfo('<inp2:ord_DiscountHelpLink template="in-commerce/checkout/discount_info" />')">[?]</a>
</inp2:m_if>
</td>
<td><strong><inp2:Field name="Price" currency="selected"/></strong></td>
<td>
<inp2:m_if check="IsTangible" >
<input value="<inp2:Field field="Quantity"/>" size="5" name="<inp2:InputName field="Quantity"/>" />
<!--<inp2:m_if check="ProductsInStock">
<inp2:m_Phrase name="lu_of"/> <inp2:ProductsInStock/>
</inp2:m_if>-->
<inp2:m_else />
1
</inp2:m_if>
</td>
<td><strong><inp2:Field name="ExtendedPrice" currency="selected"/></strong></td>
<td><a href="<inp2:LinkRemoveFromCart/>"><img src="in-commerce/img/delete.gif" title="Delete" alt="Delete" width="15" height="14" border="0" /></a></td>
</tr>
</inp2:m_DefineElement>
<inp2:m_DefineElement name="shop_cart_footer">
<tr class="cart-subtotal">
<td colspan="<inp2:m_if check="m_GetConfig" name="ShowProductImagesInOrders">4<inp2:m_else/>3</inp2:m_if>">
<inp2:m_if check="ord_HasDiscount">
<inp2:m_Phrase label="lu_comm_TotalSavings" />: <span class="price1"><inp2:ord_Field name="DiscountTotal" currency="selected" /></span><br />
</inp2:m_if>
<inp2:m_if check="ord_Field" name="CouponId">
<inp2:m_Phrase label="lu_comm_CouponHasBeenApplied" />:
<inp2:ord_Field field="CouponName" />
<input class="button" type="submit" name="events[ord][OnRemoveCoupon]" value="<inp2:m_Phrase label="lu_comm_RemoveCoupon" no_editing="1"/>">
<inp2:m_else />
<inp2:m_Phrase label="lu_comm_EnterCouponCode" />:
<input size="10" name="coupon_code" />
</inp2:m_if>
</td>
<td colspan="2">
<strong><inp2:m_Phrase label="lu_comm_Subtotal"/>: <span class="price1"><inp2:ord_Field field="SubtotalWithDiscount" currency="selected"/></span></strong>
</td>
</tr>
<!-- <inp2:m_if check="ord_HasPayPalSubscription"/>
<input type="hidden" name="next_step_template" value="in-commerce/checkout/paypal">
<inp2:m_else/> -->
<input type="hidden" name="next_step_template" value="<inp2:m_if check="ord_OrderHasTangibleItems">in-commerce/checkout/shipping<inp2:m_else/>in-commerce/checkout/billing</inp2:m_if>" />
<!-- </inp2:m_if> -->
<input type="hidden" name="login_template" value="in-commerce/checkout/login_register" />
<tr class="cart-subtotal">
<td colspan="<inp2:m_if check="m_GetConfig" name="ShowProductImagesInOrders">4<inp2:m_else/>3</inp2:m_if>">
<input class="button" type="submit" name="events[ord][OnUpdateCart]" value="<inp2:m_Phrase label="lu_comm_UpdateCart" no_editing="1"/>" />
&nbsp;
<input class="button" type="submit" name="events[ord][OnCleanupCart]" onclick="return confirm('<inp2:m_Phrase label="lu_comm_ClearCartConfirmation" />')" value="<inp2:m_Phrase label="lu_comm_CleanupCart" no_editing="1"/>" />
</td>
<td align="right" colspan="2">
<input class="button" type="submit" name="events[ord][OnCheckout]" value="<inp2:m_Phrase label="lu_comm_ProceedCheckout" no_editing="1"/>" />
</td>
</tr>
</inp2:m_DefineElement>
<inp2:m_DefineElement name="shop_cart_empty">
<tr>
<td>
<strong><inp2:m_Phrase label="lu_comm_YourCartIsEmpty"/></strong>
</td>
</tr>
</inp2:m_DefineElement>
<script language="JavaScript">
function showDiscountInfo(url)
{
window.open(url, null, 'scrollbars=no,menubar=no,toolbars=no,width=300,height=150');
}
</script>
<inp2:ord_PrintCart item_render_as="shop_cart_item" header_render_as="shop_cart_header" footer_render_as="shop_cart_footer" empty_cart_render_as="shop_cart_empty" per_page="-1"/>
</table>
<hr/>
<input type="hidden" name="continue_shopping_template" value="__default__"/>
<input class="button" type="submit" name="events[ord][OnContinueShopping]" value="<inp2:m_Phrase label="lu_comm_Continue_Shopping" no_editing="1"/>">
</form>
<inp2:m_if check="ord_CartNotEmpty">
<inp2:m_if check="ord_HasPaymentGateway" name="Google Checkout">
<inp2:m_DefineElement name="google_checkout_button">
<form method="POST" target="_blank" action="<inp2:ord_GetFormAction payment_type_id="$payment_type_id"/>">
<inp2:ord_GetFormHiddenFields return_template="in-commerce/checkout/checkout_success"
cancel_template="in-commerce/checkout/billing"
payment_type_id="$payment_type_id"/>
<inp2:m_if check="m_Param" name="submit_url" equals_to="https://checkout.google.com/api/checkout/v2">
<input type="image" name="Google Checkout" alt="Fast checkout through Google"
src="https://checkout.google.com/buttons/checkout.gif?merchant_id=<inp2:m_Param name="merchant_id"/>
&w=180&h=46&style=white&variant=text&loc=en_US" height="46" width="180">
<inp2:m_else/>
<input type="image" name="Google Checkout" alt="Fast checkout through Google"
src="http://sandbox.google.com/checkout/buttons/checkout.gif?merchant_id=<inp2:m_Param name="merchant_id"/>
&w=180&h=46&style=white&variant=text&loc=en_US" height="46" width="180">
</inp2:m_if>
</form>
</inp2:m_DefineElement>
<inp2:ord_DisplayPaymentGateway name="Google Checkout" render_as="google_checkout_button"/>
</inp2:m_if>
</inp2:m_if>
</td>
</tr>
</table>
<inp2:m_if check="ord_CartIsEmpty">
<inp2:m_include template="in-commerce/blocks/products/products_picks" data_exists="1"/>
</inp2:m_if>

Event Timeline