View Single Post
  #1  
Old 04-25-2008, 09:36 AM
 
spacetoast spacetoast is offline
 

Member
  
Join Date: May 2005
Posts: 29
 

Default Highlight Product Quantity on Invoice

Hi!

When we print out our invoices to make orders, we have to carefully examine each invoice to verify the quantity because there have been times where we've just missed the fact that there were 2 items ordered rather than 1.

To avoid these errors, we would use a highlighter to highlight any product that had more than 1 item. I finally got tired of doing this and decided to figure out how to have x-cart do it.

This is for 4.0.17, but I'm sure it is pretty similar for other versions.

In skin1/mail/html/order_data.tpl

Near line 50, Find:
Code:
<TD align="center">{$product.amount}</TD>

Replace with:
Code:
<TD align="center"> {if $product.amount eq 1} {$product.amount} {else} <FONT style="BACKGROUND-COLOR: yellow">&nbsp {$product.amount} &nbsp</FONT> {/if} </TD>

This will highlight a quantity greater than 1.

I haven't tried yet, but if I were to throw in an if statement to filter the user type for Admin only, would that make it so that the emails sent to customers were not highlighted?

I hope this can help someone!


Edit: If you aren't printing on a color printer, you might want to change the background color to something that works better with black and white if the yellow isn't doing it for you.

Edit2: You also have to make sure that in your browser options you have it set to print background color otherwise it won't work.
__________________
Curtis Durham
4.6.4
www.bathnation.com
Reply With Quote