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

Need to add phone numbers for both billing & shipping addresses

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 10-04-2007, 06:42 PM
 
AndrewTN AndrewTN is offline
 

Newbie
  
Join Date: Sep 2007
Posts: 9
 

Default Need to add phone numbers for both billing & shipping addresses

Since majority of our orders are gifts we need the customer to enter phone number for both their billing info and also the recipients number under the billing address.

First, what template includes the customer personal information that they fill out when they enter their billing & shipping addresses? I'm assuming that I will need to add for example {$order.s_phone} to this page so the customer can enter the shipping phone number.

Also, I have been editing order_invoice.tpl to format our invoice.

will adding this:

Code:
{if $_userinfo.default_fields.phone} <tr> <td><b>{$lng.lbl_phone}:</b></td> <td>{$order.phone}</td> </tr> {/if}

into each table for the billing and shipping address work or do I need to modify it for the shipping address to be the same format as all the other fields, e.g. use the following for the shipping address. Does adding the s_ to the field automatically become recognizable to x-cart as part of the shipping address if I add {$order.s_phone} to the personal details page?

Code:
{if $_userinfo.default_fields.phone} <tr> <td><b>{$lng.lbl_phone}:</b></td> <td>{$order.s_phone}</td> </tr> {/if}

Or is there more to it than that? Hopefully I'm starting to get an understanding how this whole thing works!

Thanks for any help.
__________________
Andrew Beattie
A Bountiful Harvest
http://www.abountifulharvest.com
x-cart v 4.1.8
Reply With Quote
  #2  
Old 10-04-2007, 06:45 PM
 
balinor balinor is offline
 

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

Default Re: Need to add phone numbers for both billing & shipping addresses

You are making this way too complicated...just use the 'General Settings/User Profiles' option to add new fields and assign one to the Billing Area and one to the Shipping area.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 10-05-2007, 05:55 PM
 
AndrewTN AndrewTN is offline
 

Newbie
  
Join Date: Sep 2007
Posts: 9
 

Default Re: Need to add phone numbers for both billing & shipping addresses

Wow that's easy! Wish I'd asked before wasting a couple hours trying to figure it all out!!!

Thanks as always!

Andrew
__________________
Andrew Beattie
A Bountiful Harvest
http://www.abountifulharvest.com
x-cart v 4.1.8
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 01:06 AM.

   

 
X-Cart forums © 2001-2020