Jump to content

Help modifying order_detail.tpl


Recommended Posts

I been killing myself getting this to work

On the order detail, on both order history and in the order_conf.html, the order detail uses the following for summarizing the products.


           {if $priceDisplay}


                       {l s='Total products (tax excl.):'} {displayWtPriceWithCurrency price=$order->getTotalProductsWithoutTaxes() currency=$currency convert=0}


           {/if}


                   {l s='NY Sales Tax 8.875%:'} {displayWtPriceWithCurrency price=$order->getTotalProductsWithTaxes() currency=$currency convert=0}


           {if $order->total_discounts > 0}


                   {l s='Total vouchers:'} {displayWtPriceWithCurrency price=$order->total_discounts currency=$currency convert=1}


           {/if}
           {if $order->total_wrapping > 0}


                   {l s='Total gift-wrapping:'} {displayWtPriceWithCurrency price=$order->total_wrapping currency=$currency convert=0}


           {/if}


                   {l s='Total shipping (tax incl.):'} {displayWtPriceWithCurrency price=$order->total_shipping currency=$currency convert=0}




                   {l s='Total:'} {displayWtPriceWithCurrency price=$order->total_paid currency=$currency convert=0}





I am trying to get a display of:
Subtotal (Total Products excl tax)
Tax (Total Product including tax - Total Products excl. Tax)
Total Shipping
Total Discounts (if any)
Total (total paid)

When i try to do some simple math for the tax, it either breaks the script completely or gives me zero.

Any guidance would be greatly appreciated.

THanks,

Kit

Link to comment
Share on other sites

  • 7 months later...

In order-detail.tpl I was able to display the tax by itself with:

 

{l s='Sales tax'}:  
{displayPrice price= ($order->total_products_wt - $order->total_products)}

 

I believe I had to edit PaymentModule.php and add something to get the sales tax in the order_conf.html e-mail.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...