From c8dae3d41baabab59b7d7d56c039c57f3bfc3020 Mon Sep 17 00:00:00 2001 From: Phillip Ball Date: Thu, 16 Jun 2011 14:10:57 -0700 Subject: [PATCH] Cleaned up cart show.tpl --- .../modules/ecommerce/assets/css/cart.css | 7 ++ .../modules/ecommerce/views/cart/show.tpl | 68 ++++++++----------- 2 files changed, 36 insertions(+), 39 deletions(-) diff --git a/framework/modules/ecommerce/assets/css/cart.css b/framework/modules/ecommerce/assets/css/cart.css index 996dc3842d..a20e1c6089 100755 --- a/framework/modules/ecommerce/assets/css/cart.css +++ b/framework/modules/ecommerce/assets/css/cart.css @@ -153,6 +153,13 @@ table#cart table td { white-space:nowrap; } +/* discount code styles */ +.input-code .control { + display:inline-block; + *display:inline; + zoom:1; + vertical-align:bottom; +} /************* END CART STYLES ****************/ diff --git a/framework/modules/ecommerce/views/cart/show.tpl b/framework/modules/ecommerce/views/cart/show.tpl index 4a23fd49bc..a00d87017f 100755 --- a/framework/modules/ecommerce/views/cart/show.tpl +++ b/framework/modules/ecommerce/views/cart/show.tpl @@ -14,7 +14,7 @@ * *} - {css unique="cart" link="`$asset_path`css/cart.css" corecss="panels"} + {css unique="cart" link="`$asset_path`css/cart.css" corecss="tables,panels"} {/css} @@ -32,15 +32,12 @@

{ecomconfig var='cart_title_text' default="Your Secure Shopping Cart"}

{ecomconfig var='cart_description_text' default=""}
-
-
- Continue Shopping - {if $items|@count gt 0} - Checkout Now - {/if} -
-
[Empty Cart]
-
+
+ Continue Shopping + {if $items|@count gt 0} + Checkout Now + {/if} + Empty Cart
@@ -52,18 +49,12 @@ {/if} {currency_symbol}{$order->total|number_format:2}
- {if $coupons} - {img src="`$smarty.const.ICON_RELATIVE`/ecom/cart-coupon-btn.png"} - {/if} - - checkout now -
{include file="show_cart_only.tpl"} {if $items|@count gt 0} - +
- + - {if isset($discounts[0])} {if $discounts[0]->isCartDiscount()} - + @@ -94,7 +85,7 @@ - + @@ -106,7 +97,7 @@ {/if} {/if} - + - - + - {if $order->surcharge_total != 0} - + - {/if} - + - - - +
@@ -72,19 +63,19 @@
{gettext str="Subtotal"}: {currency_symbol} {$order->subtotal|number_format:2} + {$order->subtotal|number_format:2}
[remove coupon code] ({$discounts[0]->coupon_code}) {gettext str="Total Discounts"}: -{$order->total_discounts|number_format:2}
{gettext str="Cart Total"}:
{gettext str="Tax - "} {foreach from=$order->taxzones item=zone} @@ -118,10 +109,10 @@ {currency_symbol} {$order->tax|number_format:2} + {$order->tax|number_format:2}
{if isset($discounts[0])} {if $discounts[0]->isShippingDiscount()} @@ -135,42 +126,40 @@ {currency_symbol} + {$order->shipping_total|number_format:2}
{gettext str="Freight Surcharge"} {currency_symbol} {$order->surcharge_total|number_format:2} + {$order->surcharge_total|number_format:2}
{gettext str="Order Total"}: {currency_symbol} {$order->grand_total|number_format:2} + {$order->grand_total|number_format:2}
+
{if !$discounts} -
+
{form action="addDiscountToCart"} -
{gettext str="Enter a Discount Code"}:
-
{control type="text" name="coupon_code" label=" "}
-
{control type="buttongroup" submit="Apply Code"}
+ {control type="text" name="coupon_code" label="Enter a Discount Code"} + {control type="buttongroup" submit="Apply Code"} {/form} -
{/if}
@@ -180,10 +169,11 @@
{/if}
-
- Continue Shopping +
+ Continue Shopping {if $items|@count gt 0} - Checkout Now + Checkout Now {/if} + Empty Cart