Page MenuHomeIn-Portal Phabricator

order_preview.elm.tpl
No OneTemporary

File Metadata

Created
Fri, Feb 7, 7:20 PM

order_preview.elm.tpl

<inp2:m_include template="in-commerce/elements/options_blocks.elm"/>
<inp2:m_DefineElement name="orderitem_elem">
<tr class="order-preview-padding-cell">
<td>
<strong><inp2:Field name="ProductName"/></strong><inp2:m_if check="ord_BackorderFlag"> <span><inp2:m_phrase label="lu_cart_BackorderFlag" /></span></inp2:m_if>
<inp2:m_if check="HasOptions">
<br/>
<span>
<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"/>
</inp2:m_if>
</span>
<br/>
</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><inp2:Field name="ItemDiscount" currency="selected" negative="1"/></span>
</inp2:m_if>
</td>
<td>
<strong><inp2:Field name="Price" currency="selected"/></strong>
</td>
<td><inp2:Field name="Quantity"/></td>
<td><strong><inp2:Field name="ExtendedPrice" currency="selected"/></strong></td>
</tr>
<tr>
<td colspan="4">
<div class="horizontal-separator"><img src="<inp2:m_TemplatesBase module="In-Portal"/>img/s.gif" width="1" height="1" alt="" /></div>
</td>
</tr>
</inp2:m_DefineElement>
<inp2:m_DefineElement name="order_form_shipping">
<!-- shipping -->
<table width="100%">
<tr>
<td colspan="2">
<inp2:m_RenderElement name="subsection" title="lu_section_ShippingInfo"/>
</td>
</tr>
<tr class="order-preview-padding-cell">
<td><strong><inp2:m_Phrase label="lu_Name"/></strong>:</td>
<td><inp2:Field field="ShippingTo"/></td>
</tr>
<inp2:m_if check="Field" name="ShippingCompany">
<tr class="order-preview-padding-cell">
<td><strong><inp2:m_Phrase label="lu_comm_Company"/></strong>:</td>
<td><inp2:Field field="ShippingCompany"/></td>
</tr>
</inp2:m_if>
<inp2:m_if check="Field" name="ShippingEmail">
<tr class="order-preview-padding-cell">
<td><strong><inp2:m_Phrase label="lu_comm_EmailAddress"/></strong>:</td>
<td><inp2:Field field="ShippingEmail"/></td>
</tr>
</inp2:m_if>
<tr class="order-preview-padding-cell">
<td><strong><inp2:m_Phrase label="lu_comm_PhoneNumber"/></strong>:</td>
<td><inp2:Field field="ShippingPhone"/></td>
</tr>
<tr class="order-preview-padding-cell">
<td><strong><inp2:m_Phrase label="lu_comm_FaxNumber"/></strong>:</td>
<td><inp2:Field field="ShippingFax"/></td>
</tr>
<tr class="order-preview-padding-cell">
<td><strong><inp2:m_Phrase label="lu_comm_Address"/></strong>:</td>
<td>
<inp2:m_if check="FieldEquals" field="ShippingAddress1" value="" inverse="inverse">
<inp2:Field field="ShippingAddress1"/><br>
</inp2:m_if>
<inp2:m_if check="FieldEquals" field="ShippingAddress2" value="" inverse="inverse">
<inp2:Field field="ShippingAddress2"/><br>
</inp2:m_if>
<inp2:PrintLocation type="Shipping"/>
</td>
</tr>
</table>
</inp2:m_DefineElement>
<inp2:m_DefineElement name="order_form_billing">
<!-- billing -->
<table width="100%">
<tr>
<td colspan="2">
<inp2:m_RenderElement name="subsection" title="lu_section_BillingInfo"/>
</td>
</tr>
<tr class="order-preview-padding-cell">
<td><strong><inp2:m_Phrase label="lu_Name"/></strong>:</td>
<td><inp2:Field field="BillingTo"/></td>
</tr>
<inp2:m_if check="Field" name="BillingCompany">
<tr class="order-preview-padding-cell">
<td><strong><inp2:m_Phrase label="lu_comm_Company"/></strong>:</td>
<td><inp2:Field field="BillingCompany"/></td>
</tr>
</inp2:m_if>
<inp2:m_if check="Field" name="BillingEmail">
<tr class="order-preview-padding-cell">
<td><strong><inp2:m_Phrase label="lu_comm_EmailAddress"/></strong>:</td>
<td><inp2:Field field="BillingEmail"/></td>
</tr>
</inp2:m_if>
<tr class="order-preview-padding-cell">
<td><strong><inp2:m_Phrase label="lu_comm_PhoneNumber"/></strong>:</td>
<td><inp2:Field field="BillingPhone"/></td>
</tr>
<tr class="order-preview-padding-cell">
<td><strong><inp2:m_Phrase label="lu_comm_FaxNumber"/></strong>:</td>
<td><inp2:Field field="BillingFax"/></td>
</tr>
<tr class="order-preview-padding-cell">
<td><strong><inp2:m_Phrase label="lu_comm_Company"/></strong>:</td>
<td><inp2:Field field="BillingCompany"/></td>
</tr>
<tr class="order-preview-padding-cell">
<td><strong><inp2:m_Phrase label="lu_comm_Address"/></strong>:</td>
<td>
<inp2:m_if check="FieldEquals" field="BillingAddress1" value="" inverse="inverse">
<inp2:Field field="BillingAddress1"/><br>
</inp2:m_if>
<inp2:m_if check="FieldEquals" field="BillingAddress2" value="" inverse="inverse">
<inp2:Field field="BillingAddress2"/><br>
</inp2:m_if>
<inp2:PrintLocation type="Billing"/>
</td>
</tr>
<tr class="order-preview-padding-cell">
<td><strong><inp2:m_Phrase label="lu_comm_PaymentType"/>:</strong></td>
<td><inp2:Field name="PaymentType" /></td>
</tr>
<inp2:m_if check="UsingCreditCard">
<tr class="order-preview-padding-cell">
<td><strong><inp2:m_Phrase label="lu_comm_NameOnCard"/>:</strong></td>
<td><inp2:Field name="PaymentNameOnCard"/></td>
</tr>
<tr class="order-preview-padding-cell">
<td><strong><inp2:m_Phrase label="lu_comm_CardType"/>:</strong></td>
<td><inp2:Field name="PaymentCardType" /></td>
</tr>
<tr class="order-preview-padding-cell">
<td><strong><inp2:m_Phrase label="lu_comm_CardNumber"/>:</strong></td>
<td><inp2:Field name="PaymentAccount" masked="masked"/></td>
</tr>
<tr class="order-preview-padding-cell">
<td><strong><inp2:m_Phrase label="lu_comm_Exp"/>:</strong></td>
<td><inp2:Field name="PaymentCCExpDate"/></td>
</tr>
</inp2:m_if>
</table>
</inp2:m_DefineElement>
<inp2:m_DefineElement name="order_form">
<table>
<tr>
<td>
<strong><inp2:m_Phrase label="lu_comm_OrderNumber"/><inp2:Field name="OrderNumber"/></strong>
</td>
</tr>
</table>
<br />
<inp2:m_if check="OrderHasTangibleItems">
<table width="100%">
<tr>
<td valign="top" width="49%">
<inp2:m_RenderElement name="order_form_shipping" PrefixSpecial="ord"/>
</td>
<td>&nbsp;</td>
<td valign="top" width="49%">
<inp2:m_RenderElement name="order_form_billing" PrefixSpecial="ord"/>
</td>
</tr>
</table>
<inp2:m_else />
<table width="100%">
<tr>
<td>
<inp2:m_RenderElement name="order_form_billing" PrefixSpecial="ord"/>
</td>
</tr>
</table>
</inp2:m_if>
<br /><br />
<table style="width:100%">
<tr>
<td colspan="4">
<div class="horizontal-separator"><img src="<inp2:m_TemplatesBase module="In-Portal"/>img/s.gif" width="1" height="1" alt="" /></div>
</td>
</tr>
<tr>
<td class="sub-section-header"><inp2:m_Phrase label="lu_comm_ProductDescription"/></td>
<td class="sub-section-header"><inp2:m_Phrase label="lu_comm_YourPrice"/></td>
<td class="sub-section-header"><inp2:m_Phrase label="lu_comm_Qty"/>.</td>
<td class="sub-section-header"><inp2:m_Phrase label="lu_comm_Total"/></td>
</tr>
<tr>
<td colspan="4">
<div class="horizontal-separator"><img src="<inp2:m_TemplatesBase module="In-Portal"/>img/s.gif" width="1" height="1" alt="" /></div>
</td>
</tr>
<inp2:ord_ListOrderItems render_as="orderitem_elem"/>
<tr class="order-sub-total">
<td>
<inp2:m_if check="ord_HasDiscount">
<inp2:m_Phrase label="lu_comm_TotalSavings" />: <span><inp2:ord_Field name="DiscountTotal" currency="selected" /></span><br />
</inp2:m_if>&nbsp;
</td>
<td>
&nbsp;
</td>
<td>
&nbsp;
</td>
<td align="left" class="shopping-cart-button-padding">
<inp2:m_Phrase label="lu_comm_Subtotal"/>: <inp2:Field name="SubTotal" currency="selected"/>
</td>
</tr>
</table>
<br />
<table width="100%">
<tr>
<td>
<inp2:m_RenderElement name="subsection" title="lu_section_OrderTotal"/>
</td>
</tr>
</table>
<table class="order-preview-padding-cell">
<inp2:m_DefineElement name="shipping_total">
<tr>
<td><strong><inp2:m_Phrase label="lu_comm_ShippingCost"/> (<inp2:ord_ShippingType />):</strong></td>
<td><inp2:ord_Field name="ShippingCost" currency="selected"/></td>
</tr>
<tr>
<td><strong><inp2:m_Phrase label="lu_comm_Insurance_Fee"/>:</strong></td>
<td><inp2:ord_Field name="InsuranceFee" currency="selected"/></td>
</tr>
</inp2:m_DefineElement>
<inp2:m_DefineElement name="processing_total">
<tr>
<td><strong><inp2:m_Phrase label="lu_comm_ProcessingFee"/>: </strong></td>
<td><inp2:ord_Field name="ProcessingFee" currency="selected"/></td>
</tr>
</inp2:m_DefineElement>
<inp2:m_DefineElement name="sub_total">
<tr>
<td><strong><inp2:m_Phrase label="lu_comm_SubTotal"/>: </strong></td>
<td><inp2:ord_Field name="AmountWithoutVAT" currency="selected"/></td>
</tr>
</inp2:m_DefineElement>
<inp2:m_DefineElement name="vat_total">
<tr>
<td><strong><inp2:m_Phrase label="lu_comm_VAT"/> <inp2:ord_Field name="VATPercent"/>%: </strong></td>
<td><inp2:ord_Field name="VAT" currency="selected"/></td>
</tr>
</inp2:m_DefineElement>
<inp2:ord_PrintTotals
shipping_render_as="shipping_total"
processing_render_as="processing_total"
sub_total_render_as="sub_total"
vat_render_as="vat_total"/>
<inp2:m_if check="ord_Field" name="GiftCertificateId">
<tr>
<td><strong><inp2:m_Phrase label="lu_comm_Gift_Certificate"/>: </strong></td>
<td><inp2:ord_Field name="GiftCertificateDiscount" currency="selected"/></td>
</tr>
</inp2:m_if>
<tr class="order-grand-total">
<td><inp2:m_Phrase label="lu_comm_GrandTotal"/>:</td>
<td><span><inp2:Field name="TotalAmount" currency="selected"/></span></td>
</tr>
</table>
<br />
</inp2:m_DefineElement>
<inp2:ord_ShowOrder render_as="order_form" />
<table>
<tr>
<td>
<form method="POST" action="<inp2:ord_GetFormAction/>">
<inp2:ord_GetFormHiddenFields return_template="in-commerce/checkout/checkout_success"
cancel_template="in-commerce/checkout/billing" />
<inp2:m_if check="ord_NeedsPlaceButton">
<input type="submit" value="<inp2:m_Phrase label="lu_order_CompleteOrder" />" class="button">
</inp2:m_if>
</form>
</td>
</tr>
</table>

Event Timeline