diff --git a/templates/frontOffice/default/assets/css/styles.css b/templates/frontOffice/default/assets/css/styles.css index 7dc795170..30248dcbd 100644 --- a/templates/frontOffice/default/assets/css/styles.css +++ b/templates/frontOffice/default/assets/css/styles.css @@ -8258,6 +8258,10 @@ fieldset[disabled] .checkout-progress .btn-step.active { .table-cart tbody td.unitprice .old-price .price { font-size: 14px; } +.table-cart tbody td.unitprice .secondary-price .price { + font-size: 14px; + font-weight: normal; +} .table-cart tbody td.qty .group-qty { margin-bottom: 0; } @@ -8275,6 +8279,20 @@ fieldset[disabled] .checkout-progress .btn-step.active { border-bottom-color: transparent; border-left-color: transparent; } +.table-cart-total td { + width: 50%; +} +.table-cart-total td.shipping .price { + color: #7a7a7a; + font-size: 19px; +} +.table-cart-total td.total .price { + font-size: 19px; +} +.table-cart-total td.empty { + border-bottom-color: transparent; + border-left-color: transparent; +} .cart-warning { clear: both; padding: 15px; diff --git a/templates/frontOffice/default/assets/less/thelia/cart.less b/templates/frontOffice/default/assets/less/thelia/cart.less index c56b52255..44751f75c 100644 --- a/templates/frontOffice/default/assets/less/thelia/cart.less +++ b/templates/frontOffice/default/assets/less/thelia/cart.less @@ -47,6 +47,12 @@ font-size: @font-size-base; } } + .secondary-price { + .price { + font-size: @font-size-base; + font-weight: normal; + } + } } &.qty { .group-qty { @@ -82,6 +88,21 @@ } } +.table-cart-total{ + td { + width: 50%; + &.coupon {} + &.total { + .price { + font-size: ceil(@font-size-base * 1.3); + } + } + &.empty { + border-bottom-color: transparent; border-left-color: transparent; + } + } +} + // Message if no product in the cart .cart-warning { clear: both; diff --git a/templates/frontOffice/default/cart.html b/templates/frontOffice/default/cart.html index 8662d1ba3..47ec10ec1 100644 --- a/templates/frontOffice/default/cart.html +++ b/templates/frontOffice/default/cart.html @@ -16,7 +16,7 @@

{intl l="Your Cart"}

- {nocache} + {ifloop rel="cartloop"} {include file="misc/checkout-progress.tpl" step="cart"} @@ -182,7 +182,7 @@ {intl l="Warning"}! {intl l="You have no items in your shopping cart."} {/elseloop} - {/nocache} + {ifloop rel="product_upsell"} diff --git a/templates/frontOffice/default/layout.tpl b/templates/frontOffice/default/layout.tpl index e2d113c18..8b0bcb72e 100644 --- a/templates/frontOffice/default/layout.tpl +++ b/templates/frontOffice/default/layout.tpl @@ -181,6 +181,7 @@ GNU General Public License : http://www.gnu.org/licenses/ + {if {count type="lang" exclude="{lang attr='id'}"} != 0 }
{intl l="Language:"} {lang attr="title"} @@ -190,7 +191,9 @@ GNU General Public License : http://www.gnu.org/licenses/ {/loop}
+ {/if} + {if {count type="currency" exclude="{currency attr='id'}"} != 0 }
{intl l="Currency:"} {currency attr="code"} @@ -200,6 +203,7 @@ GNU General Public License : http://www.gnu.org/licenses/ {/loop}
+ {/if} diff --git a/templates/frontOffice/default/order-invoice.html b/templates/frontOffice/default/order-invoice.html index a5150662a..426075c91 100644 --- a/templates/frontOffice/default/order-invoice.html +++ b/templates/frontOffice/default/order-invoice.html @@ -53,6 +53,10 @@ {intl l="Price"} + + + {intl l="Taxed Price"} + {intl l="Qty"} @@ -68,8 +72,8 @@ {loop type="cart" name="cartloop"} - {assign "cart_count" $LOOP_COUNT} + {ifloop rel='product-image'} {loop type="image" name="product-image" product=$PRODUCT_ID limit="1" width="118" height="85" force_return="true"} Product #{$cart_count} @@ -78,10 +82,11 @@ {elseloop rel="product-image"} {images file='assets/img/product/1/118x85.png'}Product #{$cart_count}{/images} {/elseloop} +

- {$TITLE} + {$TITLE}

@@ -100,6 +105,15 @@
+ +
+ {if $IS_PROMO == 1} + {$PROMO_PRICE} {currency attr="symbol"} + {else} + {$PRICE} {currency attr="symbol"} + {/if} +
+ {if $IS_PROMO == 1} {assign "real_price" $PROMO_TAXED_PRICE} @@ -107,7 +121,7 @@ {intl l="instead of"} {$TAXED_PRICE} {currency attr="symbol"} {else} {assign "real_price" $TAXED_PRICE} -
{$TAXED_PRICE} {currency attr="symbol"}
+
{$TAXED_PRICE} {currency attr="symbol"}
{/if} @@ -121,56 +135,72 @@ {/loop} - - - -   - {intl l="Discount"} - -
- {order attr="discount"} {currency attr="symbol"} -
- - - - {intl l="Shipping Tax"} - -
- {order attr="postage"} {currency attr="symbol"} -
- - - - - - {form_field form=$form field='success_url'} - - {/form_field} - {form_field form=$form field='coupon-code'} -
-
- - - - - -
- {if $error}{$message}{/if} -
- {/form_field} - - - - - {intl l="Total"} - -
- {{cart attr="total_taxed_price"} + {order attr="postage"}} {currency attr="symbol"} -
- - - + +
+
+ + + {$discount={order attr="discount"}} + {if $discount} + + + + + {/if} + + + + + + + + + + + + + + + + + +
{intl l="Discount"} +
+ {$discount} {currency attr="symbol"} +
+
+ {form_field form=$form field='success_url'} + + {/form_field} + {form_field form=$form field='coupon-code'} +
+
+ + + + + +
+ {if $error}{$message}{/if} +
+ {/form_field} + +
{intl l="Shipping Tax"} +
+ {order attr="postage"} {currency attr="symbol"} +
+
{intl l="Total excl. taxes"} +
+ {{cart attr="total_price"} + {order attr="postage"}} {currency attr="symbol"} +
+
{intl l="Total incl. taxes"} +
+ {{cart attr="total_taxed_price"} + {order attr="postage"}} {currency attr="symbol"} +
+
+
+
{/form} @@ -244,7 +274,6 @@ {/loop} - @@ -266,15 +295,15 @@ {loop type="payment" name="payments" force_return="true"} {assign "paymentModuleId" $ID}
  • -
  • {/loop} diff --git a/templates/pdf/default/invoice.html b/templates/pdf/default/invoice.html index e6def76e1..9d71c337a 100644 --- a/templates/pdf/default/invoice.html +++ b/templates/pdf/default/invoice.html @@ -67,7 +67,10 @@ -{loop name="order.invoice" type="order" id=$order_id customer="*"} + + {$taxes = []} + + {loop name="order.invoice" type="order" id=$order_id customer="*"} {loop name="currency.order" type="currency" id=$CURRENCY} {assign "orderCurrency" $SYMBOL} {/loop} @@ -153,13 +156,18 @@ {assign "realTax" $PRICE_TAX} {assign "realTaxedPrice" $TAXED_PRICE} {/if} + + {$taxes[{$TAX_RULE_TITLE}][] = $realTax * $QUANTITY} + -

    {$TITLE}

    - {ifloop rel="combinations"} - {loop type="order_product_attribute_combination" name="combinations" order_product=$ID} + +

    {$TITLE}

    + {ifloop rel="combinations"} + {loop type="order_product_attribute_combination" name="combinations" order_product=$ID} {$ATTRIBUTE_TITLE} - {$ATTRIBUTE_AVAILABILITY_TITLE}
    - {/loop} - {/ifloop} + {/loop} + {/ifloop} + [[ {$TAX_RULE_TITLE} = {$realTax * $QUANTITY} ]]

    {$orderCurrency} {$realPrice}

    {$orderCurrency} {$realTax}

    @@ -200,5 +208,26 @@

    {$orderCurrency} {$TOTAL_TAXED_AMOUNT}

    + + + + + {foreach $taxes as $name=>$prices} + {assign var="_price_taxe_" value="0"} + {foreach $prices as $price} + {$_price_taxe_= $_price_taxe_ + $price} + {/foreach} + {if $_price_taxe_ != 0} + + + + + {/if} + {/foreach} +
    + {$name} + + {format_number number={$_price_taxe_}} {$orderCurrency} +
    {/loop} \ No newline at end of file