View Single Post
  #21  
Old 02-25-2010, 11:52 AM
  hoosierglass's Avatar 
hoosierglass hoosierglass is offline
 

X-Adept
  
Join Date: Aug 2006
Location: Zionsville, IN
Posts: 974
 

Default Re: Compact Attractive Invoice

Finally have this one figured out.

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:

Click image for larger version

Name:	newinvoice.jpg
Views:	140
Size:	50.9 KB
ID:	1878
__________________
X-Cart Gold 4.7.7
Custom Work from www.luminointernet.com
www.indy-pen-dance.com
Reply With Quote