X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Dev Questions (https://forum.x-cart.com/forumdisplay.php?f=20)
-   -   Compact Attractive Invoice (https://forum.x-cart.com/showthread.php?t=39868)

hoosierglass 02-25-2010 11:52 AM

Re: Compact Attractive Invoice
 
1 Attachment(s)
Finally have this one figured out. :D/

The $order.display items are found in func.order.php. This is what I did....
around line 137 you will find:
# Assign the display_* vars for displaying in the invoice
if (@$order["extra"]["tax_info"]["display_taxed_order_totals"] == "Y" && !empty($order["extra"]["tax_info"]["taxed_subtotal"]))
$order["display_subtotal"] = $order["extra"]["tax_info"]["taxed_subtotal"];
else
$order["display_subtotal"] = $order["subtotal"];

I changed it to this:

if (@$order["extra"]["tax_info"]["display_taxed_order_totals"] == "Y" && !empty($order["extra"]["tax_info"]["taxed_subtotal"]))
$order["display_subtotal"] = $order["subtotal"];

else
$order["display_subtotal"] =
$order["subtotal"];

I did this for discounted subtotal and for shipping since my ignorant state collects sales tax for shipping.

Then i went into the order_data.tpl file and mover the sales tax from the bottom of the invoice to the line before Total. So now it looks like this:

Attachment 1878


All times are GMT -8. The time now is 04:00 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.