X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Billing address on invoice (https://forum.x-cart.com/showthread.php?t=49728)

Warwick 09-17-2009 12:08 AM

Billing address on invoice
 
Is there any way to not show the billing address on the invoice when it is the same as the shipping address?

This is causing mistakes when order picking/handling orders and I really wonder why everytime both adresses are shown on the invoice even when they are the same: then it is of no value at all.

cflsystems 09-17-2009 03:48 AM

Re: Billing address on invoice
 
If statement. You can compare any 2 lines to see if there is a match. In /mail/html/order_invoice.tpl

{if $order.b_address eq $order.s_address && $order.b_zipcode eq $order.s_zipcode}
show all lines for billing address
{/if}

Warwick 09-17-2009 03:59 AM

Re: Billing address on invoice
 
So basically I need to make the statement not eq to let it not show.

Thats like:
{if $order.b_address ne $order.s_address && $order.b_zipcode ne $order.s_zipcode} ?

cflsystems 09-17-2009 04:06 AM

Re: Billing address on invoice
 
Sorry yes, if you want it to show when they are different make it "ne"

Warwick 09-17-2009 07:04 AM

Re: Billing address on invoice
 
No problem, meanwhile I got i working almost perfectly :)


All times are GMT -8. The time now is 10:17 AM.

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