Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Different State on invoice from General Settings

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 06-23-2006, 08:15 PM
  peggyr's Avatar 
peggyr peggyr is offline
 

X-Adept
  
Join Date: Dec 2005
Posts: 635
 

Default 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
__________________
X-Cart GP 4.7.12 | XCARTMODS.CO.UK reBOOT (reDUX)4.7.12.8 | Live
IONOS Hosting | Linux | PHP 7.4.33 | MySQL 5.7
Reply With Quote
  #2  
Old 06-24-2006, 03:07 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default

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
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 06-24-2006, 02:40 PM
  peggyr's Avatar 
peggyr peggyr is offline
 

X-Adept
  
Join Date: Dec 2005
Posts: 635
 

Default 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!
__________________
X-Cart GP 4.7.12 | XCARTMODS.CO.UK reBOOT (reDUX)4.7.12.8 | Live
IONOS Hosting | Linux | PHP 7.4.33 | MySQL 5.7
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 07:18 AM.

   

 
X-Cart forums © 2001-2020