Page Menu
Home
In-Portal Phabricator
Search
Configure Global Search
Log In
Files
F785559
advanced
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Wed, Feb 12, 3:10 PM
Size
58 KB
Mime Type
text/x-diff
Expires
Fri, Feb 14, 3:10 PM (1 d, 4 h)
Engine
blob
Format
Raw Data
Handle
564534
Attached To
rTADV Themes.Advanced
advanced
View Options
Index: branches/1.2.x/platform/inc/styles.css
===================================================================
--- branches/1.2.x/platform/inc/styles.css (revision 14856)
+++ branches/1.2.x/platform/inc/styles.css (revision 14857)
@@ -1,642 +1,642 @@
/* --- Golbal Usage Styles --- */
html, body {
margin: 0px;
padding: 0px;
height: 100%;
border: none;
font: 9pt Arial;
color: #000000;
}
.fullwidth {
width: 100%;
}
table {
margin: 0px;
padding: 0px;
border-collapse: collapse;
}
td {
font: 11px Arial, serif;
color: #000000;
margin: 0px;
padding: 0px;
}
.hidden-element {
display: none;
}
.horizontal-separator {
background: url('@templates_base@/platform/img/horizontal_dashed_line.gif') bottom repeat-x;
}
.vertical-separator {
background: url('@templates_base@/platform/img/vertical_dashed_line.gif') top center repeat-y;
}
img, img A {
border: 0px;
}
form {
display: inline;
}
.top-background {
background: url('@templates_base@/platform/img/top_background.gif') right repeat-y;
}
.top-baner-cell
{
padding: 10px;
text-align:center;
}
.menu-background {
background: url('@templates_base@/platform/img/menu_background.gif') top repeat-x #1865AC;
width: 100%;
}
.top-select-padding {
padding: 0px 15px;
}
.footer-table td {
background: url('@templates_base@/platform/img/footer_blue.gif') top repeat-x;
height: 26px;
color: #F7EEE4;
font-size: 10px;
padding: 0px 10px;
}
.footer-table a {
color: #F7EEE4;
}
/* --- Link Styles --- */
a {
color: #197ACA;
}
a:hover {
color: #FF9900;
}
a.more-link {
font-size: 10px;
}
a.item-action {
font-size: 9px;
color: #666666;
}
a.item-action:hover {
color: #000000;
}
.footer-links {
text-align: right;
padding: 5px 10px;
}
.footer-links A {
color: #333333;
font-size: 10px;
}
.footer-links A:hover {
color: #666666;
}
/* --- Side Box Styles --- */
.side-box-header {
background: url('@templates_base@/platform/img/side_boxes_background.gif') bottom repeat-x #83AFD6;
height: 29px;
padding: 0px 8px 0px 20px;
}
.side-box-title {
font-size: 12px;
color: #FFFFFF;
}
.side-box-title A {
font-size: 12px;
color: #FFFFFF;
text-decoration: underline;
}
.side-box-title A:hover {
font-size: 12px;
color: #FFDC0E;
}
.side-box-content {
background: url('@templates_base@/platform/img/side_boxes_content.gif') top repeat-x;
padding: 20px 20px;
}
/* --- Content Box Styles --- */
.content-box-header {
background: #F0F5FA;
height: 29px;
padding: 0px 20px;
}
.content-box-title {
font-size: 15px;
font-family: Arial;
color: #000000;
font-weight: bold;
}
.content-box-content {
background: #FFFFFF;
padding: 20px 20px 0px 20px;
}
/* --- Form Control Styles --- */
.input-text, .input-textarea {
background: url('@templates_base@/platform/img/input_text_background.gif') top repeat-x #FFFFFF;
border: 1px solid #7091B9;
font-family: Arial, Helvetica, sans-serif;
font-size: 11px;
}
.input-textarea {
overflow: auto;
}
.input-select {
color: #333333;
font-size: 11px;
}
.button {
background: url('@templates_base@/platform/img/input_button_background.gif') bottom repeat-x #efefef;
border: 1px solid #688BAC;
padding: 0px;
font-size: 11px;
padding: 0px 5px;
}
.delete-button {
background: url('@templates_base@/platform/img/delete_button_background.gif') bottom repeat-x #FF6D6D;
color: #FFFFFF;
border: 1px solid #CC0000;
padding: 0px;
font-size: 11px;
padding: 0px 5px;
}
/* --- Form Field Styles --- */
.field-name {
padding: 5px 15px;
color: #2E5679;
font-weight: bold;
font-size: 11px;
}
.field-required {
color: #FF0000;
}
.field-hint {
color: #000000;
font-size: 10px;
}
.field-error {
color: #CC0000;
font-size: 10px;
}
.field-value {
padding: 6px 5px;
}
.warning-message td {
padding: 5px;
background: #FFE5E6;
font-size: 16px;
}
.item-categories td {
padding: 1px;
}
/* --- Login Sidebox Styles --- */
.login-status, .login-status a {
font-size: 10px;
color: #FFFFFF;
}
.login-status a:hover {
font-size: 10px;
}
.remember-login {
color: #000000;
font-size: 9px;
}
/* --- Navigation Bar Styles --- */
.navigation-bar {
background: url('@templates_base@/platform/img/side_boxes_background.gif') bottom repeat-x #83AFD6;
height: 29px;
padding: 0px 20px;
font-size: 12px;
color: #FFFFFF;
}
.navigation-bar A {
color: #FFFFFF;
}
.navigation-bar A:hover {
color: #FFDC0E;
}
/* --- Top Right Menu Styles --- */
.menu-top-active-icon, .menu-top-active-text {
background: url('@templates_base@/platform/img/top_menu_select.gif');
}
td.top-menu-padding {
height: 37px;
white-space: nowrap;
}
.menu-top-noactive-icon, .menu-top-active-icon {
padding: 0px 5px 0px 13px;
}
.menu-top-noactive-text, .menu-top-active-text {
padding: 0px 13px 0px 3px;
}
a.top-menu-link, a.top-menu-link:hover {
font-size: 11px;
text-decoration: none;
}
a.top-menu-link {
color: #FFFFFF;
}
a.top-menu-link:hover {
color: #CCCCCC;
}
/* --- Tab Styles --- */
.inactive-tab, .active-tab {
padding:5px 10px;
border: 1px solid #94c0de;
}
.inactive-tab {
background-color: #eff4fa;
}
.active-tab {
background-color: #FFFFFF;
border-bottom-color: #FFFFFF;
}
.tab-bottom-line {
background: url('@templates_base@/platform/img/pixel_blue.gif') bottom repeat-x;
}
.tab-bottom-content {
border-right:1px solid #94c0de;
border-left:1px solid #94c0de;
border-bottom:1px solid #94c0de;
padding:10px;
}
.tab-left-padding {
padding-left: 40px;
}
/* --- Category Listing & My Account Styles --- */
.directory-icon {
width: 22px;
vertical-align: top;
padding: 5px;
}
.directory-text {
padding: 5px 20px 5px 5px;
vertical-align: top;
}
/* --- Item Listing Page & Item Details Page Styles --- */
.item-listing {
background: url('@templates_base@/platform/img/gradient_background.gif') top repeat-x #FFFFFF;
}
.item-listing-featured {
background: url('@templates_base@/platform/img/gradient_background_gr.gif') top repeat-x #FFFFFF;
}
.item-listing-lead {
background: url('@templates_base@/platform/img/gradient_background_red.gif') top repeat-x #FFFFFF;
}
.item-padding {
padding: 10px 10px 10px 10px;
}
.item-statistics {
font-size: 10px;
color: #666666;
}
.listing-field-name {
font-weight: bold;
}
.category-statistics {
font-size: 10px;
}
.category-header td {
padding: 5px 20px 5px 5px;
vertical-align: top;
}
.sub-section-header, .sub-section-header td {
background-color: #F4F4F4;
font-weight: bold;
padding: 5px 15px;
font-size: 12px;
}
.listing-row td {
padding: 5px 8px;
}
/* --- Pagination Bar Styles --- */
.current-page {
background: #5B97CB;
color: #FFFFFF;
padding: 1px 2px;
}
a.page-link {
color: #000000;
text-decoration: none;
}
/* --- Calendar Styles --- */
.calendar {
font-family: tahoma,verdana,sans-serif;
color: #000;
font-size: 11px;
border: 1px solid #83B2C5;
width: 225px;
position: relative;
z-index: 1;
display: none;
cursor: default;
}
.calendar table {
/*font-family: tahoma,verdana,sans-serif;*/
color: #000;
font-size: 11px;
background-color: #fefefe;
width: auto;
cursor: default;
border-collapse: separate;
}
.calendar table td {
padding: 2px;
text-align: center;
}
.calendar tbody .disabled {
color: #999;
}
.calendar tbody .emptyrow {
display: none;
}
.calendar tbody .today {
font-weight: bold;
background-color: #eeeeee;
border: 1px solid #aaaaaa !important;
}
.calendar tbody .emptycell {
visibility: hidden;
}
.calendar tbody .active {
background-color: red;
}
.calendar thead .title {
font-weight: bold;
}
.calendar thead .headrow {
}
.calendar thead .active {
background-color: #c4c0b8;
padding: 2px 0px 0px 2px;
}
.calendar thead .hilite {
background-color: #e4e0d8;
}
.calendar tfoot .title {
font-weight: normal;
}
.combo { position: absolute; display: none; width: 4em; top: 0px; left: 0px; cursor: default; border-top: 1px solid #fff; border-right: 1px solid #000; border-bottom: 1px solid #000; border-left: 1px solid #fff; background: #e4e0d8; font-size: smaller; padding: 1px;}
.combo .label { text-align: center; padding: 1px;}
.combo .active { background: #c4c0b8; padding: 0px; border-top: 1px solid #000; border-right: 1px solid #fff; border-bottom: 1px solid #fff; border-left: 1px solid #000;}
.combo .hilite { background: #048; color: #fea;}
.dpContainer {
display: inline;
}
.list-no-squares {
padding: 0px;
list-style-type: none;
margin: 0px;
}
/* --- Listing Element Styles --- */
.picture-padding {
padding: 20px 5px 20px 20px;
vertical-align: top;
width: 120px;
}
.text-padding {
padding: 20px 5px;
}
.file-list-icon
{
padding: 2px 10px 2px 0px;
vertical-align:top;
}
.file-list-label
{
padding: 2px 7px 2px 0px;
vertical-align:top;
}
-/* --- Item Raring Styles --- */
+/* --- Item Rating Styles --- */
.ratingblock, .ratingblock div {
display: -moz-inline-block;
}
.voted {
color: #999;
}
.thanks {
color: #36AA3D;
}
.static {
color: #5D3126;
}
.inline-rating {
display:-moz-inline-block;
display:-moz-inline-box;
display:inline-block;
vertical-align: middle;
}
.star-rating,
.star-rating a:hover,
.star-rating a:active,
.star-rating a:focus,
.star-rating .current-rating{
background: url('@templates_base@/platform/img/starrating.gif') left -1000px repeat-x;
}
.star-rating {
position:relative;
width:125px;
height:25px;
overflow:hidden;
list-style:none;
margin:0;
padding:0;
background-position: left top;
}
.star-rating li {
display: inline;
}
.star-rating a,
.star-rating .current-rating {
position:absolute;
top:0;
left:0;
text-indent:-1000em;
height:25px;
line-height:25px;
outline:none;
overflow:hidden;
border: none;
}
.star-rating a:hover,
.star-rating a:active,
.star-rating a:focus {
background-position: left bottom;
}
.star-rating a.r1-unit { width:20%;z-index:6; }
.star-rating a.r2-unit { width:40%;z-index:5; }
.star-rating a.r3-unit { width:60%;z-index:4; }
.star-rating a.r4-unit { width:80%; z-index:3; }
.star-rating a.r5-unit { width:100%; z-index:2; }
.star-rating .current-rating { z-index:1; background-position: left center; }
.small-star {
width:50px;
height:10px;
}
.small-star, .small-star a:hover, .small-star a:active,
.small-star a:focus, .small-star .current-rating {
background-image: url('star_small.gif');
line-height: 10px;
height: 10px;
}
/* --- Unprocessed Styles --- */
.text-title {
font-size: 12px;
font-weight: bold;
color: #1769b5;
}
a.text-title {
font-size: 12px;
font-weight: bold;
color: #1769b5;
}
a.text-title:hover {
color: #005695;
}
/* ----- Depricated Styles ----- */
.error {
color: magenta;
}
.static {
color: #00CC66;
}
.image_boder {
border: 1px solid #CDCECD;
}
.table-border {
border: 1px solid #EAEAEA;
}
.information-background {
background-color: #F6F6FF;
}
#sitemap ul {
margin:0 0 10px 10px;
padding:0 0 0 10px;
}
#sitemap ul li {
color: #0060BB;
list-style-image: none;
list-style-position: outside;
list-style-type: disc;
padding: 5px 0 0;
}
\ No newline at end of file
Index: branches/1.2.x/in-commerce/checkout/shop_cart.tpl
===================================================================
--- branches/1.2.x/in-commerce/checkout/shop_cart.tpl (revision 14856)
+++ branches/1.2.x/in-commerce/checkout/shop_cart.tpl (revision 14857)
@@ -1,325 +1,325 @@
<!--##
<NAME>Shopping cart</NAME>
<DESC>Shopping cart page</DESC>
<SECTION>Platform||Checkout</SECTION>
##-->
<!--## PAGE TITLE ELEMENT ##-->
<inp2:m_DefineElement name="page_title">
<inp2:m_Phrase label="lu_title_ShoppingCart" no_editing="1"/><inp2:m_if check="orditems_TotalRecords"> (<inp2:orditems_TotalRecords/>)</inp2:m_if>
</inp2:m_DefineElement>
<!--## //PAGE TITLE ELEMENT ##-->
<!--## SIDE-BAR ELEMENT ##-->
<inp2:m_DefineElement name="sidebar">
<div class="movable-area">
<div class="movable-element">
<inp2:m_RenderElement name="in-commerce/elements/side_boxes/checkout_steps.elm" design="blue_box"/>
</div>
<div class="movable-element">
<inp2:m_RenderElement name="platform/elements/side_boxes/login.elm" design="blue_box"/>
</div>
<div class="movable-element">
<inp2:m_RenderElement name="platform/elements/side_boxes/search.elm" design="blue_box"/>
</div>
<div class="movable-element">
<inp2:m_RenderElement name="in-commerce/elements/side_boxes/recent_products.elm" design="blue_box" data_exists="1"/>
</div>
</div>
</inp2:m_DefineElement>
<!--## /SIDE-BAR ELEMENT ##-->
<!--## MAIN CONTENT ##-->
<inp2:m_DefineElement name="content">
<div class="movable-area">
<div class="movable-element">
<inp2:m_include template="platform/elements/navigation_bar.elm" titles="lu_title_ShoppingCart" templates="in-commerce/checkout/shop_cart"/>
</div>
<div class="movable-element">
<inp2:m_RenderElement design="content_box">
<inp2:m_Capture to_var="header">
<inp2:m_Phrase label="lu_title_ShoppingCart"/><inp2:m_if check="orditems_TotalRecords"> (<inp2:orditems_TotalRecords/>)</inp2:m_if>
</inp2:m_Capture>
<form method="post" action="<inp2:m_FormAction />">
<inp2:m_if check="ord_CartHasError">
<table class="warning-message fullwidth">
<tr>
<td width="30">
<img src="<inp2:m_TemplatesBase module="In-Portal"/>img/warning_icon.gif" width="21" height="18" alt=""/>
</td>
<td>
<inp2:m_phrase name="lu_Warning"/>
</td>
</tr>
</table>
<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"
gift_certificate_applied="lu_comm_GiftCertificateApplied"
invalid_code="lu_comm_invalid_code" code_expired="lu_comm_code_expired"
min_qty="lu_min_qty_error" code_removed="lu_comm_CouponRemoved"
gc_code_removed="lu_comm_GiftCertificateRemoved"
code_removed_automatically="lu_comm_CouponIsNotEffective"
gc_code_removed_automatically="lu_comm_GiftCertificateIsNotEffective"
changed_after_login="lu_comm_CartChangedAfterLogin" /><br /><br />
</inp2:m_if>
<table class="fullwidth">
<inp2:m_DefineElement name="shop_cart_header">
<tr>
<td colspan="5">
<div class="horizontal-separator"><img src="<inp2:m_TemplatesBase module="In-Portal"/>img/s.gif" width="1" height="1" alt="" /></div>
</td>
</tr>
<tr class="sub-section-header">
<td><inp2:m_Phrase label="lu_comm_ProductDescription"/></td>
<td width="60"><inp2:m_Phrase label="lu_comm_YourPrice"/></td>
<td width="50"><inp2:m_Phrase label="lu_comm_Qty"/>.</td>
<td width="50"><inp2:m_Phrase label="lu_comm_Total"/></td>
<td width="25"> </td>
</tr>
<tr>
<td colspan="5">
<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_include template="in-commerce/elements/options_blocks.elm"/>
<inp2:m_DefineElement name="shop_cart_item">
<tr>
<td class="shopping-cart-cell-item-padding">
<table>
<tr>
<td class="shopping-cart-icpn-padding-right">
<img src="<inp2:m_TemplatesBase module="In-Commerce"/>img/shopping_cart_item.gif" width="16" height="14" alt="" />
</td>
<td>
<inp2:m_if check="FieldEquals" field="Virtual" value="0">
<a href="<inp2:ProductLink template="__default__"/>"><inp2:Field name="Name" /></a>
- <inp2:m_if check="ord_FreePromoShippingAvailable"> <sup><inp2:m_phrase label="lu_cart_FreeShippingAvailable" /></sup>
+ <inp2:m_if check="FreePromoShippingAvailable"> <sup><inp2:m_phrase label="lu_cart_FreeShippingAvailable" /></sup>
</inp2:m_if>
<inp2:m_else/>
<inp2:Field name="Name" />
</inp2:m_if>
<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">
<inp2:PrintOptions render_as="option_element" currency="selected"/>
<inp2:m_else/>
<inp2:PrintOptions render_as="option_element_no_price" currency="selected"/>
</inp2:m_if>
<inp2:m_if check="FieldEquals" field="OptionsSelectionMode" value="0">
<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>
</tr>
</table>
</td>
<td class="shopping-cart-cell-item-padding"><strong><inp2:Field name="Price" currency="selected"/></strong></td>
<td class="shopping-cart-cell-item-padding">
<inp2:m_if check="IsTangible">
<inp2:m_if check="m_ModuleEnabled" module="In-Auction">
<inp2:m_if check="ebay-sections_IseBayItem">
<inp2:Field field="Quantity"/>
<inp2:m_else />
<input value="<inp2:Field field="Quantity"/>" style="width:20px" class="input-text" name="<inp2:InputName field="Quantity"/>" />
</inp2:m_if>
<inp2:m_else />
<input value="<inp2:Field field="Quantity"/>" style="width:20px" class="input-text" name="<inp2:InputName field="Quantity"/>" />
</inp2:m_if>
<!--<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 class="shopping-cart-cell-item-padding"><strong><inp2:Field name="ExtendedPrice" currency="selected"/></strong></td>
<td class="shopping-cart-cell-item-padding" align="center">
<inp2:m_if check="m_ModuleEnabled" module="In-Auction">
<inp2:m_if check="ebay-sections_IseBayItem">
<inp2:m_else />
<a href="<inp2:LinkRemoveFromCart/>"><img src="<inp2:m_TemplatesBase module="In-Portal"/>img/delete.gif" title="Delete" alt="Delete" width="8" height="10" border="0" /></a>
</inp2:m_if>
<inp2:m_else />
<a href="<inp2:LinkRemoveFromCart/>"><img src="<inp2:m_TemplatesBase module="In-Portal"/>img/delete.gif" title="Delete" alt="Delete" width="8" height="10" border="0" /></a>
</inp2:m_if>
</td>
</tr>
<tr>
<td colspan="5">
<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="shop_cart_footer">
</table>
<table width="100%">
<tr >
<td class="cart-subtotal">
<table width="100%">
<inp2:m_if check="ord_HasDiscount">
<tr>
<td>
<strong><inp2:m_Phrase label="lu_comm_TotalSavings" />:</strong>
</td>
<td>
<span class="price1"><strong><inp2:ord_Field name="DiscountTotal" currency="selected" /></strong></span>
</td>
</tr>
<tr>
<td colspan="2">
<img src="<inp2:m_TemplatesBase module="In-Portal"/>img/s.gif" width="1" height="5" alt="" />
</td>
</tr>
</inp2:m_if>
<inp2:m_if check="ord_Field" name="CouponId">
<tr>
<td>
<inp2:m_Phrase label="lu_comm_CouponHasBeenApplied" />:
</td>
<td>
<inp2:ord_Field field="CouponName" />
<a href="<inp2:ord_RemoveCouponLink type="coupon"/>"><img src="<inp2:m_TemplatesBase module="In-Portal"/>img/delete.gif" title="<inp2:m_Phrase label="lu_comm_RemoveCoupon" no_editing="1"/>" alt="<inp2:m_Phrase label="lu_comm_RemoveCoupon" no_editing="1"/>" width="8" height="10" border="0" /></a>
</td>
</tr>
<inp2:m_else />
<tr>
<td><inp2:m_Phrase label="lu_comm_EnterCouponCode" />: </td>
<td><input size="15" class="input-text" name="coupon_code" /></td>
</tr>
</inp2:m_if>
<tr>
<td colspan="2">
<img src="<inp2:m_TemplatesBase module="In-Portal"/>img/s.gif" width="1" height="3" alt="" />
</td>
</tr>
<inp2:m_if check="ord_Field" name="GiftCertificateId">
<tr>
<td><inp2:m_Phrase label="lu_comm_GiftCertificateHasBeenApplied" />: </td>
<td>
<inp2:ord_Field field="GiftCertificateDiscount" currency="selected" />
<a href="<inp2:ord_RemoveCouponLink type="gift_certificate"/>"><img src="<inp2:m_TemplatesBase module="In-Portal"/>img/delete.gif" title="<inp2:m_Phrase label="lu_comm_RemoveGiftCertificate" no_editing="1"/>" alt="<inp2:m_Phrase label="lu_comm_RemoveGiftCertificate" no_editing="1"/>" width="8" height="10" border="0" /></a>
</td>
</tr>
<inp2:m_else />
<tr>
<td><inp2:m_Phrase label="lu_comm_EnterGiftCertificateCode" />: </td>
<td><input size="15" class="input-text" name="giftcert_code" /></td>
</tr>
</inp2:m_if>
</table>
</td>
<td class="cart-subtotal" align="right">
<span class="cart-subtotal-text"><inp2:m_Phrase label="lu_comm_Subtotal"/>: <inp2:ord_Field field="SubtotalWithDiscount" currency="selected"/></span>
</td>
</tr>
<tr>
<td colspan="2">
<img src="<inp2:m_TemplatesBase module="In-Portal"/>img/s.gif" width="1" height="2" alt="" /><br />
<div class="horizontal-separator"><img src="<inp2:m_TemplatesBase module="In-Portal"/>img/s.gif" width="1" height="1" alt="" /></div>
</td>
</tr>
<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>" />
<tr>
<td class="shopping-cart-button-padding">
<input class="button" type="submit" name="events[ord][OnUpdateCart]" value="<inp2:m_Phrase label="lu_comm_UpdateCart" no_editing="1"/>" />
<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 class="shopping-cart-button-padding" align="right">
<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"/>">
<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>
</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>
</inp2:m_RenderElement>
</div>
<div class="movable-element">
<inp2:m_if check="ord_CartIsEmpty">
<inp2:m_include template="in-commerce/elements/content_boxes/pick_products.elm"/>
</inp2:m_if>
</div>
</div>
</inp2:m_DefineElement>
<!--## /MAIN CONTENT ##-->
<!--## DESIGN TEMPLATE ##-->
<inp2:m_include template="platform/designs/default_design.des" pass_params="1"/>
<!--## /DESIGN TEMPLATE ##-->
Index: branches/1.2.x/in-commerce/elements/content_boxes/checkout/shipping_address.elm.tpl
===================================================================
--- branches/1.2.x/in-commerce/elements/content_boxes/checkout/shipping_address.elm.tpl (revision 14856)
+++ branches/1.2.x/in-commerce/elements/content_boxes/checkout/shipping_address.elm.tpl (revision 14857)
@@ -1,53 +1,53 @@
<inp2:m_RenderElement design="content_box">
<inp2:m_Capture to_var="header">
<inp2:m_Phrase label="lu_title_ShippingInformation"/>
</inp2:m_Capture>
<inp2:ord_ShowDefaultAddress type="shipping"/>
<span class="field-required">*</span> <inp2:m_phrase name="lu_IndicatesRequired"/><br /><br />
<inp2:m_Phrase label="lu_EnterShippingAddress"/><br /><br />
<inp2:m_if check="ord_HasError" field="any">
<inp2:m_RenderElement name="error_message" />
</inp2:m_if>
<img src="<inp2:m_TemplatesBase module="In-Portal"/>img/grey_pix.gif" width="100%" height="1" align="absmiddle" alt="" /><br />
<table class="form-data fullwidth">
<inp2:m_include template="in-commerce/elements/addresses.elm"/>
<inp2:m_if check="m_LoggedIn">
<inp2:m_RenderElement name="inp_edit_select_address" type="shipping" title="lu_fld_SelectAddress"/>
</inp2:m_if>
<inp2:m_if check="u.current_Field" name="cust_shipping_addr_block">
<inp2:m_RenderElement name="inp_edit_label" prefix="ord" field="ShippingTo" title="lu_fld_FullName"/>
<inp2:m_RenderElement name="inp_edit_label" prefix="ord" field="ShippingCompany" title="lu_fld_Company"/>
<inp2:m_RenderElement name="inp_edit_label" prefix="ord" field="ShippingAddress1" title="lu_fld_AddressLine1"/>
<inp2:m_RenderElement name="inp_edit_label" prefix="ord" field="ShippingAddress2" title="lu_fld_AddressLine2"/>
<inp2:m_RenderElement name="inp_edit_label" prefix="ord" field="ShippingCity" title="lu_fld_City"/>
<inp2:m_RenderElement name="inp_edit_label" prefix="ord" field="ShippingState" title="lu_fld_State"/>
<inp2:m_RenderElement name="inp_edit_label" prefix="ord" field="ShippingZip" title="lu_fld_Zip"/>
<inp2:m_RenderElement name="inp_edit_label" prefix="ord" field="ShippingCountry" title="lu_fld_Country"/>
<inp2:m_RenderElement name="inp_edit_label" prefix="ord" field="ShippingPhone" title="lu_fld_Phone"/>
- <inp2:m_RenderElement name="inp_edit_label" prefix="ord" field="ShippingEmail" title="lu_fld_Email" is_last="1"/>
+ <inp2:m_RenderElement name="inp_edit_label" prefix="ord" field="BillingEmail" title="lu_fld_Email" is_last="1"/>
<inp2:m_else/>
<inp2:m_RenderElement name="inp_edit_box" prefix="ord" field="ShippingTo" title="lu_fld_FullName" style="width: 300px;" />
<inp2:m_RenderElement name="inp_edit_box" prefix="ord" field="ShippingCompany" title="lu_fld_Company" style="width: 300px;" />
<inp2:m_RenderElement name="inp_edit_box" prefix="ord" field="ShippingAddress1" title="lu_fld_AddressLine1" style="width: 300px;" />
<inp2:m_RenderElement name="inp_edit_box" prefix="ord" field="ShippingAddress2" title="lu_fld_AddressLine2" style="width: 300px;" />
<inp2:m_RenderElement name="inp_edit_box" prefix="ord" field="ShippingCity" title="lu_fld_City" style="width: 200px;" />
<inp2:m_RenderElement name="inp_edit_box" prefix="ord" field="ShippingState" title="lu_fld_State" style="width: 200px;" />
<inp2:m_RenderElement name="inp_edit_box" prefix="ord" field="ShippingZip" title="lu_fld_Zip" style="width: 100px;" />
<inp2:m_RenderElement name="inp_edit_options" prefix="ord" field="ShippingCountry" title="lu_fld_Country" style="width: 300px;" has_empty="1"/>
<inp2:m_RenderElement name="inp_edit_box" prefix="ord" field="ShippingPhone" title="lu_fld_Phone" style="width: 150px;" />
- <inp2:m_RenderElement name="inp_edit_box" prefix="ord" field="ShippingEmail" title="lu_fld_Email" style="width: 150px;" is_last="1"/>
+ <inp2:m_RenderElement name="inp_edit_box" prefix="ord" field="BillingEmail" title="lu_fld_Email" style="width: 150px;" is_last="1"/>
</inp2:m_if>
<inp2:m_RenderElement design="inp_edit_buttons" width="200">
<input type="hidden" name="check_shipping_address" value="true"/>
<input class="button" type="submit" id="events[ord][OnUpdate]" name="events[ord][OnUpdate]" value="<inp2:m_Phrase label="lu_btn_UpdateAddress" no_editing="1"/>"/>
</inp2:m_RenderElement>
</table>
</inp2:m_RenderElement>
\ No newline at end of file
Index: branches/1.2.x/in-commerce/elements/content_boxes/checkout/form_register.elm.tpl
===================================================================
--- branches/1.2.x/in-commerce/elements/content_boxes/checkout/form_register.elm.tpl (revision 14856)
+++ branches/1.2.x/in-commerce/elements/content_boxes/checkout/form_register.elm.tpl (revision 14857)
@@ -1,54 +1,54 @@
<inp2:m_RenderElement design="content_box">
<inp2:m_Capture to_var="header">
<inp2:m_Phrase label="lu_title_SuggestUserRegistration"/>
</inp2:m_Capture>
<span class="field-required">*</span> <inp2:m_phrase name="lu_IndicatesRequired"/><br /><br />
<inp2:u.register_FormName name="registration"/>
<inp2:ord_PrefillRegistrationFields user_prefix="u.register" type="billing"/>
<inp2:m_if check="u.register_HasError" field="any">
<inp2:m_RenderElement name="error_message" />
</inp2:m_if>
<img src="<inp2:m_TemplatesBase module='In-Portal'/>img/grey_pix.gif" width="100%" height="1" align="absmiddle" alt="" /><br /><br />
<form method="post" action="<inp2:m_FormAction/>">
<table class="form-data fullwidth">
- <inp2:m_RenderElement name="inp_edit_box" prefix="u.register" field="Username" title="lu_fld_Login" style="width:155px" />
+ <inp2:m_RenderElement name="inp_edit_box" prefix="u.register" field="Username" title="lu_fld_Username" style="width:155px" />
<inp2:m_RenderElement name="inp_edit_box" prefix="u.register" field="Email" title="lu_fld_Email" style="width:155px" />
<inp2:m_if check="m_ConfigEquals" name="User_Password_Auto" value="0">
<inp2:m_RenderElement name="inp_edit_password" prefix="u.register" field="Password" title="lu_fld_Password" style="width:155px" />
<inp2:m_RenderElement name="inp_edit_password" prefix="u.register" field="VerifyPassword" title="lu_fld_VerifyPassword" style="width:155px" />
</inp2:m_if>
<inp2:m_RenderElement name="inp_edit_box" prefix="u.register" field="FirstName" title="lu_fld_FirstName" style="width:155px" />
<inp2:m_RenderElement name="inp_edit_box" prefix="u.register" field="LastName" title="lu_fld_LastName" style="width:155px" />
<inp2:m_RenderElement name="inp_edit_box" prefix="u.register" field="Company" title="lu_fld_Company" style="width:155px" />
<inp2:m_RenderElement name="inp_edit_box" prefix="u.register" field="Phone" title="lu_fld_Phone" style="width:155px" />
<inp2:m_RenderElement name="inp_edit_box" prefix="u.register" field="Fax" title="lu_fld_Fax" style="width:155px"/>
<inp2:m_RenderElement name="inp_edit_date" prefix="u.register" field="dob" title="lu_fld_BirthDate" />
<inp2:m_RenderElement name="inp_edit_box" prefix="u.register" field="Street" title="lu_fld_AddressLine1" style="width:155px" />
<inp2:m_RenderElement name="inp_edit_box" prefix="u.register" field="Street2" title="lu_fld_AddressLine2" style="width:155px" />
<inp2:m_RenderElement name="inp_edit_box" prefix="u.register" field="City" title="lu_fld_City" style="width:155px" />
<inp2:m_RenderElement name="inp_edit_box" prefix="u.register" field="State" title="lu_fld_State" style="width:155px" />
<inp2:m_RenderElement name="inp_edit_box" prefix="u.register" field="Zip" title="lu_fld_Zip" style="width:55px" />
<inp2:m_RenderElement name="inp_edit_options" prefix="u.register" field="Country" title="lu_fld_Country" has_empty="1" is_last="1"/>
-
+
<inp2:m_RenderElement design="inp_edit_buttons">
<input type="hidden" name="next_template" value="<inp2:m_get var='next_template'/>">
<input type="hidden" name="registration_confirm_template" value="platform/login/register_confirm">
<input type="hidden" name="registration_confirm_pending_template" value="platform/login/register_confirm_pending">
<input type="hidden" name="fields_prefilled" value="1" />
<input class="button" type="submit" id="events[u.register][OnCreate]" name="events[u.register][OnCreate]" value="<inp2:m_Phrase label="lu_btn_Register" no_editing="1"/>"/>
<input type="hidden" name="cancel_template" value="in-commerce/checkout/shop_cart" />
<input type="submit" class="button" name="events[u.register][OnCancel]" value="<inp2:m_Phrase label="lu_btn_Cancel" />" no_editing="1"/>
</inp2:m_RenderElement>
</table>
</form>
</inp2:m_RenderElement>
\ No newline at end of file
Index: branches/1.2.x/in-commerce/elements/content_boxes/checkout/billing_options.elm.tpl
===================================================================
--- branches/1.2.x/in-commerce/elements/content_boxes/checkout/billing_options.elm.tpl (revision 14856)
+++ branches/1.2.x/in-commerce/elements/content_boxes/checkout/billing_options.elm.tpl (revision 14857)
@@ -1,194 +1,227 @@
<inp2:m_DefineElement name="order_payment_credit_card">
<table width="100%" class="block-no-border">
<tr class="cart-header">
<td>
<div class="horizontal-separator"><img src="<inp2:m_TemplatesBase module="In-Portal"/>img/s.gif" width="3" height="1" alt=""/><br /></div>
<div class="sub-section-header"><inp2:ord_PaymentTypeDescription/></div>
<div class="horizontal-separator"><img src="<inp2:m_TemplatesBase module="In-Portal"/>img/s.gif" width="3" height="1" alt=""/><br /></div>
<br />
</td>
</tr>
<tr class="block-data">
<td>
<inp2:m_if check="ord_HasGatewayError">
<inp2:m_RenderElement name="error_message" />
<strong><inp2:ord_ShowGatewayError/></strong>
</inp2:m_if>
<br />
<strong><inp2:ord_PaymentTypeInstructions/></strong>
<br /><br />
</td>
</tr>
</table>
<img src="<inp2:m_TemplatesBase module="In-Portal"/>img/grey_pix.gif" width="100%" height="1" align="absmiddle" alt="" /><br />
<table class="form-data fullwidth">
<inp2:m_RenderElement name="inp_edit_options" prefix="ord" field="PaymentCardType" title="lu_billing_CardType"/>
<inp2:m_RenderElement name="inp_edit_box" prefix="ord" field="PaymentAccount" title="lu_billing_CreditCardNumber" style="width: 200px;"/>
<inp2:m_RenderElement name="inp_edit_box" prefix="ord" field="PaymentNameOnCard" title="lu_billing_NameOnCard" style="width: 260px;"/>
<!-- credit card expiration -->
<tr class="<inp2:m_odd_even odd="table_color1" even="table_color2"/>">
<inp2:m_RenderElement name="inp_edit_field_caption" prefix="ord" field="PaymentCCExpDate" title="lu_billing_CardExpiration"/>
<td class="field-value">
<inp2:m_if check="ord_HasError" field="PaymentCCExpDate">
<span class="field-error"><inp2:ord_Error field="PaymentCCExpDate"/></span><br />
</inp2:m_if>
<select class="input-select" name="<inp2:ord_InputName field="PaymentCCExpMonth"/>">
<inp2:ord_PredefinedOptions field="PaymentCCExpMonth" render_as="inp_option_item" selected="selected"/>
</select>
/
<select class="input-select" name="<inp2:ord_InputName field="PaymentCCExpYear"/>">
<option value=''></option>
<inp2:ord_PrintYearOptions field="PaymentCCExpYear" render_as="inp_option_item" selected="selected"/>
</select>
</td>
</tr>
<inp2:m_RenderElement name="inp_edit_field_separator" is_last="0"/>
<!-- // credit card expiration -->
<!-- credit card CVV2 -->
<tr class="<inp2:m_odd_even odd="table_color1" even="table_color2"/>">
<inp2:m_RenderElement name="inp_edit_field_caption" prefix="ord" field="PaymentCVV2" title="lu_billing_CVV2"/>
<td class="field-value">
<inp2:m_if check="ord_HasError" field="PaymentCVV2">
<span class="field-error"><inp2:ord_Error field="PaymentCVV2"/></span><br />
</inp2:m_if>
<input type="text" class="input-text" name="<inp2:ord_InputName field="PaymentCVV2"/>" value="<inp2:ord_Field field="PaymentCVV2"/>" tabindex="<inp2:m_get param="tab_index"/>" style="width: 50px;">
<a href="javascript:showCVV2Help()"><inp2:m_Phrase label="lu_WhatIsThis" /></a>
</td>
</tr>
<!-- // credit card CVV2 -->
<inp2:m_RenderElement design="inp_edit_buttons">
- <input type="hidden" name="check_credit_card" value="true"/>
+ <input type="hidden" name="check_credit_card" id="check_credit_card" value="0"/>
<input type="hidden" name="preview_template" value="in-commerce/checkout/preview">
- <input class="button" type="submit" name="events[ord][OnProceedToPreview]" value="<inp2:m_Phrase label="lu_btn_ProceedToPreview" no_editing="1"/>">
+ <input class="button" type="submit" name="events[ord][OnProceedToPreview]" value="<inp2:m_Phrase label='lu_btn_ProceedToPreview' no_editing='1'/>">
+
+ <script type="text/javascript">
+ var $submit_event = '';
+
+ $(document).ready(
+ function () {
+ // mark all submit buttons on form ("Update Address" & "Proceed to preview")
+ $("input[type='submit']", '#billing_info').each(
+ function () {
+ var $me = $(this);
+
+ if ( $me.attr('name').match(/^events\[ord\]\[(.*)\]$/) ) {
+ $me
+ .attr('event_name', RegExp.$1)
+ .click(
+ function ($e) {
+ $submit_event = $(this).attr('event_name');
+ }
+ );
+
+ }
+ }
+ );
+
+ $('#billing_info').submit(
+ function ($e) {
+ $('#check_credit_card').val($submit_event == 'OnProceedToPreview' ? 1 : 0);
+ }
+ );
+ }
+ )
+ </script>
+
</inp2:m_RenderElement>
</table>
<br />
<script language="JavaScript">
function showCVV2Help(){
window.open('<inp2:m_Link template="in-commerce/checkout/cvv2help" />', null, 'scrollbars=no,menubar=no,toolbars=no,width=300,height=150');
}
</script>
</inp2:m_DefineElement>
<inp2:m_DefineElement name="order_payment_type_default">
<table>
<tr class="cart-header">
<td>
<inp2:ord_PaymentTypeDescription/>
</td>
</tr>
<tr class="form-data">
<td>
<inp2:m_if check="ord_HasGatewayError">
<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_ShowGatewayError/>
</td>
</tr>
</table>
</inp2:m_if>
<br/>
<inp2:ord_PaymentTypeInstructions/>
</td>
</tr>
</table>
<br/>
<input type="hidden" name="preview_template" value="in-commerce/checkout/preview">
<input class="button" type="submit" name="events[ord][OnProceedToPreview]" value="<inp2:m_Phrase label="lu_btn_ProceedToPreview" no_editing="1"/>">
</inp2:m_DefineElement>
<inp2:m_DefineElement name="products_total">
<tr>
<td><strong><inp2:m_Phrase label="lu_comm_ProductsTotal"/>:</strong></td>
<td><inp2:ord_Field name="SubTotal" currency="selected"/></td>
</tr>
</inp2:m_DefineElement>
<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:m_RenderElement design="content_box">
<inp2:m_Capture to_var="header">
<inp2:m_Phrase label="lu_comm_BillingOptions"/>
</inp2:m_Capture>
<inp2:m_RenderElement name="subsection" title="lu_section_CostSummary"/>
<table class="order-totals">
<inp2:ord_PrintTotals
products_render_as="products_total"
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 class="price1"><inp2:ord_Field name="TotalAmount" currency="selected"/></span></td>
</tr>
</table>
<br />
<img src="<inp2:m_TemplatesBase module="In-Portal"/>img/grey_pix.gif" width="100%" height="1" alt="" /><br /><br />
<br />
<br />
<strong><inp2:m_Phrase label="lu_comm_PaymentType"/>:</strong>
<select class="input-select" name="<inp2:ord_InputName field="PaymentType"/>" onchange="document.getElementById('events[ord][OnUpdate]').click();">
<inp2:ord_PredefinedOptions render_as="inp_option_item" field="PaymentType" selected="selected"/>
</select>
<input class="button" type="submit" value="<inp2:m_Phrase label="lu_btn_Select" no_editing="1"/>" name="events[ord][OnUpdate]" id="events[ord][OnUpdate]">
<br/><br/>
<inp2:ord_PaymentTypeForm cc_render_as="order_payment_credit_card" default_render_as="order_payment_type_default"/>
</inp2:m_RenderElement>
\ No newline at end of file
Index: branches/1.2.x/in-commerce/elements/content_boxes/checkout/shipping_options.elm.tpl
===================================================================
--- branches/1.2.x/in-commerce/elements/content_boxes/checkout/shipping_options.elm.tpl (revision 14856)
+++ branches/1.2.x/in-commerce/elements/content_boxes/checkout/shipping_options.elm.tpl (revision 14857)
@@ -1,236 +1,232 @@
<inp2:m_DefineElement name="order_shipping_type">
<option <inp2:m_param name="selected"/> value="<inp2:m_param name="ShippingId"/>"><inp2:m_param name="ShippingName"/> (<inp2:m_if check="m_param" name="ShippingFree" value="1"><inp2:m_Phrase label="lu_comm_FreeShipping" /><inp2:m_else/><inp2:m_param name="TotalCost"/></inp2:m_if>)</option>
</inp2:m_DefineElement>
+<inp2:m_include template="in-commerce/elements/options_blocks.elm"/>
+
+<inp2:m_DefineElement name="shipping_group_item">
+ <inp2:Field name="ProductName"/><inp2:m_if check="ord_BackorderFlag"> <span class="backordered-product"><inp2:m_phrase label="lu_cart_BackorderFlag" /></span></inp2:m_if><br />
+
+ <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"/>
+ </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><br />
+ </inp2:m_if>
+ </span>
+ </inp2:m_if>
+</inp2:m_DefineElement>
+
+<inp2:m_DefineElement name="order_shipment">
+ <tr class="cart-item">
+ <td class="shopping-cart-cell-item-padding"><inp2:m_param name="shipment"/><br/>
+ <b><inp2:m_Phrase label="lu_Items"/>:</b><br />
+ <inp2:ord_PrintCart item_render_as="shipping_group_item" requery="1" package_num="$package_num" product_type="1"/>
+ </td>
+ <td class="shopping-cart-cell-item-padding"><inp2:m_param name="items"/></td>
+ <td class="shopping-cart-cell-item-padding"><inp2:m_param name="weight"/></td>
+ <td class="shopping-cart-cell-item-padding">
+ <select class="input-select" name="<inp2:m_param name="field_name"/>">
+ <inp2:ord_PrintShippingTypes render_as="order_shipping_type" currency="selected"/>
+ </select>
+ </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="no_shipments">
+ <div class="field-error"><inp2:m_Recall name="usps_errors"/></div>
+ <inp2:m_Phrase label="lu_comm_ErrorNoShippingTypes"/> (<a href="mailto:<inp2:conf_ConfigValue name="Comm_Contacts_Email"/>"><inp2:conf_ConfigValue name="Comm_Contacts_Email"/></a>).
+</inp2:m_DefineElement>
+
<inp2:m_DefineElement name="shippings_table_header">
<table 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 class="sub-section-header">
<td><inp2:m_Phrase label="lu_ship_Shipment" /></td>
<td><inp2:m_Phrase label="lu_ship_ItemsNumber" /></td>
<td><inp2:m_Phrase label="lu_ship_ShippingWeight" /></td>
<td><inp2:m_Phrase label="lu_ship_ShippingType" /></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_if check="ord_CartHasBackorders">
<strong><inp2:m_Phrase label="lu_comm_Note"/>:</strong>
<inp2:m_Phrase label="lu_comm_YouHaveBackorderedItems"/>
<br />
<inp2:m_DefineElement name="order_option">
<input onclick="document.getElementById('events[ord][OnUpdate]').click();" type="radio"
<inp2:m_param name="checked"/>
name="<inp2:m_param name="field_name"/>"
id="<inp2:m_param name="field_name"/>_<inp2:m_param name="key"/>" value="<inp2:m_param name="key"/>">
<label for="<inp2:m_param name="field_name"/>_<inp2:m_param name="key"/>">
<inp2:m_phrase label="$option"/>
</label> <br />
</inp2:m_DefineElement>
<inp2:ord_PredefinedOptions field="ShippingOption" render_as="order_option" selected_param="checked" selected="checked=\"checked\""/>
<br />
</inp2:m_if>
<inp2:m_if check="m_GetEquals" var="shipping_limitations_apply" value="0"><inp2:m_else/>
<strong><inp2:m_Phrase label="lu_comm_Note"/>:</strong>
<inp2:m_if check="m_GetEquals" var="shipping_limitations_apply" value="1">
<inp2:m_Phrase label="lu_comm_ShippingTypesLimitationApply"/><br/>
<input type="hidden" name="<inp2:ord_InputName field="ShippingGroupOption"/>" id="<inp2:ord_InputName field="ShippingGroupOption"/>" value="<inp2:ord_Field name="ShippingGroupOption" db="1"/>" />
<input onclick="document.getElementById('<inp2:ord_InputName field="ShippingGroupOption"/>').value = this.checked ? 1:0; document.getElementById('events[ord][OnUpdate]').click();" type="checkbox"
<inp2:m_param name="checked"/>
name="cb_<inp2:ord_InputName field="ShippingGroupOption"/>"
id="cb_<inp2:ord_InputName field="ShippingGroupOption"/>" value="1" <inp2:ord_Field name="ShippingGroupOption" db="1" checked="checked"/> />
<label for="cb_<inp2:ord_InputName field="ShippingGroupOption"/>">
<inp2:m_phrase label="lu_AdjustShippingManually"/>
</label> <br />
<inp2:m_else/> <!-- Order canNOT be shipped with single shipping type -->
<inp2:m_Phrase label="lu_comm_ShippingTypesLimitationApply_CantSingleShip"/><br/>
<input type="hidden" name="<inp2:ord_InputName field="ShippingGroupOption"/>" value="1" />
</inp2:m_if>
</inp2:m_if>
</inp2:m_DefineElement>
+<inp2:m_DefineElement name="products_total">
+ <tr class="cart-subtotal">
+ <td> </td>
+ <td> </td>
+ <td style="text-align: right">
+ <strong><inp2:m_Phrase label="lu_comm_ProductsTotal"/>:</strong>
+ </td>
+ <td>
+ <inp2:ord_Field name="SubTotal" currency="selected"/>
+ </td>
+ </tr>
+</inp2:m_DefineElement>
+
+<inp2:m_DefineElement name="processing_total">
+ <tr class="cart-subtotal">
+ <td> </td>
+ <td> </td>
+ <td style="text-align: right">
+ <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> </td>
+ <td> </td>
+ <td align="right" class="shopping-cart-cell-item-padding">
+ <strong><inp2:m_Phrase label="lu_comm_SubTotal"/>:</strong>
+ </td>
+ <td class="shopping-cart-cell-item-padding">
+ <span class="price1"><inp2:ord_Field name="AmountWithoutVAT" currency="selected"/></span>
+ </td>
+ </tr>
+</inp2:m_DefineElement>
+
+<inp2:m_DefineElement name="vat_total">
+ <tr>
+ <td> </td>
+ <td> </td>
+ <td class="shopping-cart-cell-item-padding" align="right">
+ <strong><inp2:m_Phrase label="lu_comm_VAT"/> <inp2:ord_Field name="VATPercent"/>%:</strong>
+ </td>
+ <td class="shopping-cart-cell-item-padding">
+ <span class="price1"><inp2:ord_Field name="VAT" currency="selected"/></span>
+ </td>
+ </tr>
+</inp2:m_DefineElement>
+
<inp2:m_DefineElement name="shippings_table_footer">
<tr>
<td class="shopping-cart-cell-item-padding">
<input class="button" type="submit" name="events[ord][OnUpdate]" value="<inp2:m_Phrase label="lu_comm_UpdateShipping" no_editing="1"/>"/><br/>
</td>
<td> </td>
<td class="shopping-cart-cell-item-padding" style="text-align: right">
<strong><inp2:m_Phrase label="lu_comm_ShippingTotal" />:</strong>
</td>
<td class="shopping-cart-cell-item-padding">
<inp2:ord_Field name="ShippingCost" currency="selected"/>
</td>
</tr>
<tr class="cart-subtotal">
<td> </td>
<td> </td>
<td style="text-align: right">
<strong><inp2:m_Phrase label="lu_comm_Insurance_Fee"/>:</strong>
</td>
<td class="shopping-cart-cell-item-padding">
<inp2:ord_Field name="InsuranceFee" currency="selected"/>
</td>
</tr>
- <inp2:m_DefineElement name="products_total">
- <tr class="cart-subtotal">
- <td> </td>
- <td> </td>
- <td style="text-align: right">
- <strong><inp2:m_Phrase label="lu_comm_ProductsTotal"/>:</strong>
- </td>
- <td>
- <inp2:ord_Field name="SubTotal" currency="selected"/>
- </td>
- </tr>
- </inp2:m_DefineElement>
-
- <inp2:m_DefineElement name="processing_total">
- <tr class="cart-subtotal">
- <td> </td>
- <td> </td>
- <td style="text-align: right">
- <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> </td>
- <td> </td>
- <td align="right" class="shopping-cart-cell-item-padding">
- <strong><inp2:m_Phrase label="lu_comm_SubTotal"/>:</strong>
- </td>
- <td class="shopping-cart-cell-item-padding">
- <span class="price1"><inp2:ord_Field name="AmountWithoutVAT" currency="selected"/></span>
- </td>
- </tr>
- </inp2:m_DefineElement>
-
- <inp2:m_DefineElement name="vat_total">
- <tr>
- <td> </td>
- <td> </td>
- <td class="shopping-cart-cell-item-padding" align="right">
- <strong><inp2:m_Phrase label="lu_comm_VAT"/> <inp2:ord_Field name="VATPercent"/>%:</strong>
- </td>
- <td class="shopping-cart-cell-item-padding">
- <span class="price1"><inp2:ord_Field name="VAT" currency="selected"/></span>
- </td>
- </tr>
- </inp2:m_DefineElement>
-
- <inp2:ord_PrintTotals
- products_render_as="products_total"
- processing_render_as="processing_total"
- sub_total_render_as="sub_total"
- vat_render_as="vat_total"/>
+ <inp2:ord_PrintTotals products_render_as="products_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> </td>
<td> </td>
<td class="shopping-cart-cell-item-padding" align="right">
<strong><inp2:m_Phrase label="lu_comm_Gift_Certificate"/>:</strong>
</td>
<td class="shopping-cart-cell-item-padding">
<span class="price1"><inp2:ord_Field name="GiftCertificateDiscount" currency="selected"/></span>
</td>
</tr>
</inp2:m_if>
<tr class="cart-subtotal order-grand-total">
<td> </td>
<td> </td>
<td class="shopping-cart-cell-item-padding" align="right">
<inp2:m_Phrase label="lu_comm_GrandTotal"/>:
</td>
<td class="shopping-cart-cell-item-padding">
<inp2:ord_Field name="TotalAmount" currency="selected"/>
</td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td class="shopping-cart-cell-item-padding">
<input type="hidden" name="next_step_template" value="in-commerce/checkout/billing">
<input type="submit" name="events[ord][OnProceedToBilling]" value="<inp2:m_Phrase label="lu_comm_ProceedToBilling" no_editing="1"/>" class="button">
</td>
</tr>
-
</table>
</inp2:m_DefineElement>
-<inp2:m_include template="in-commerce/elements/options_blocks.elm"/>
-
-<inp2:m_DefineElement name="shipping_group_item">
- <inp2:Field name="Name"/><inp2:m_if check="ord_BackorderFlag"> <span class="backordered-product"><inp2:m_phrase label="lu_cart_BackorderFlag" /></span></inp2:m_if><br />
- <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"/>
- </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><br />
- </inp2:m_if>
- </span>
- </inp2:m_if>
-</inp2:m_DefineElement>
-
-<inp2:m_DefineElement name="order_shipment">
- <tr class="cart-item">
- <td class="shopping-cart-cell-item-padding"><inp2:m_param name="shipment"/><br/>
- <b><inp2:m_Phrase label="lu_Items"/>:</b><br />
- <inp2:ord_PrintCart item_render_as="shipping_group_item" requery="1" package_num="$package_num" product_type="1" header_render_as="html:" footer_render_as="html:"/>
- </td>
- <td class="shopping-cart-cell-item-padding"><inp2:m_param name="items"/></td>
- <td class="shopping-cart-cell-item-padding"><inp2:m_param name="weight"/></td>
- <td class="shopping-cart-cell-item-padding">
- <select class="input-select" name="<inp2:m_param name="field_name"/>">
- <inp2:ord_PrintShippingTypes render_as="order_shipping_type" currency="selected" />
- </select>
- </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="no_shipments">
- <div class="field-error"><inp2:m_Recall name="usps_errors"/></div>
- <inp2:m_Phrase label="lu_comm_ErrorNoShippingTypes"/> (<a href="mailto:<inp2:conf_ConfigValue name="Comm_Contacts_Email"/>"><inp2:conf_ConfigValue name="Comm_Contacts_Email"/></a>).
-</inp2:m_DefineElement>
-
-<inp2:m_DefineElement name="invalid_address">
- <inp2:m_Phrase label="lu_comm_ErrorInvalidShippingAddress"/>.
-</inp2:m_DefineElement>
-
<inp2:m_RenderElement design="content_box">
<inp2:m_Capture to_var="header">
<inp2:m_Phrase label="lu_title_ShippingOptions"/>
</inp2:m_Capture>
- <inp2:ord_PrintShippings render_as="order_shipment" currency="selected" no_shipments_render_as="no_shipments" invalid_address_render_as="invalid_address" table_header_render_as="shippings_table_header" table_footer_render_as="shippings_table_footer" />
+ <inp2:m_if check="ord_AddressValid" type="shipping">
+ <inp2:ord_PrintShippings render_as="order_shipment" currency="selected" no_shipments_render_as="no_shipments" table_header_render_as="shippings_table_header" table_footer_render_as="shippings_table_footer"/>
+ <inp2:m_else/>
+ <inp2:m_Phrase label="lu_comm_ErrorInvalidShippingAddress"/>.
+ </inp2:m_if>
</inp2:m_RenderElement>
\ No newline at end of file
Event Timeline
Log In to Comment