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)
-   -   Different State on invoice from General Settings (https://forum.x-cart.com/showthread.php?t=22736)

peggyr 06-23-2006 08:15 PM

Different State on invoice from General Settings
 
Hi,

I have just setup 'real time shipping' for UPS, and to make it work, I had to specify the Admin->General Settings->Company Options, company address, city, state with those associated w/ my UPS account. This address then appears on the customer invoice in the /mail/html/order_invoice.tpl template.

My fulfillment center/warehouse is out of a different city/state which I want to print on the invoice, and not my business office address which is a different city/state.

I think I need to 'hard code' this information in the order_invoice.tpl template, but I'm new to PHP and don't know how to do this.

I think I need to modify the following section, but not sure of the syntax. If anyone has ideas to suggest, I'd appreciate it.

Thanks in advance

{$config.Company.location_address}, {$config.Company.location_city}

{$config.Company.location_zipcode}, {$config.Company.location_state_name}

{$config.Company.location_country_name}


I'd liked to just have the City and State appear on the invoice

balinor 06-24-2006 03:07 AM

That isn't PHP, it is Smarty :) Just put plain html in place of the smarty variables....replace the code you posted with a simple address:

address

City, State Zip

peggyr 06-24-2006 02:40 PM

Different State on invoice from General Settings
 
Thanks! :) Worked like a champ!.

PS, I also have been struggling for the past few weeks trying to figure out how to enable State Sales Tax for Nevada. I read 'numerous' posts, had a 'long' question to post.. then discovered the answer, in one post, that the state has to be 'enabled' highlighted in the Products area.

In my 4.0.17, when I changed products from 'tax exempt' from YES to NO, I could only 'select' the state, I couldn't 'highlight' it. I had to 'save with Tax Exempt=No, then I could 'highlight' (enable) the state.

I didn't go and post this info, as you see most/all and respond to most/all shipping / invoice types of questions, so, thought.. you may update this info in existing related posts, if you agree.

THANKS AGAIN for quick speedy response!


All times are GMT -8. The time now is 02:56 AM.

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