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

making billing & shipping address same and show on invoi

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 10-25-2005, 06:25 PM
 
bobbyftk bobbyftk is offline
 

Senior Member
  
Join Date: Jun 2005
Posts: 167
 

Default making billing & shipping address same and show on invoi

ok so i've been having some problems with chargebacks.

bought the verisign basic fraud protection, and turned on my AVS filters.

so now i need to make customers only use the billing address for shipping as well. I went into user profile options and unticked all the shipping info boxes, so they can only input data in the billing address area.

i also changed the Billing Address label, to read
Billing & Shippping Address (must be same)

everything seems to be cool, but now the invoices show in the shipping address half:

Shipping Address

"customer first name"
"customer last name"

and thats it.

makes the invoice look a little off. is there a way I can just have the invoice populate the shipping address with the same as the billing address? I tried to edit the template and in that area i changed all the

s_ (s_address, s_city, etc...)
areas of code to
b_

but that didnt seem to work.
any suggestions? is there a better way to do this?

any help is appreciated!
-bobby
__________________
4.2.2
Reply With Quote
  #2  
Old 10-26-2005, 12:03 AM
  pauldodman's Avatar 
pauldodman pauldodman is online now
 

X-Guru
  
Join Date: Jul 2003
Location: Spain / UK
Posts: 3,054
 

Default

Not sure if this will help do exactly what you want; if not may give you some pointers. It is a mod that allows the user to tick a box to make shipping address the same as the billing address.

http://forum.x-cart.com/viewtopic.php?t=20344&highlight=

However, the problem that it was written to address has been fixed in later versions of x-cart.
__________________
Paul Dodman
e-business & m-commerce consultant
w: www.luminointernet.com
e: xcart@luminointernet.com

Professional X-Cart help, advice, support and services, specialists in Mobile X-Cart.
Reply With Quote
  #3  
Old 10-26-2005, 12:23 AM
 
bobbyftk bobbyftk is offline
 

Senior Member
  
Join Date: Jun 2005
Posts: 167
 

Default

hey thanks for the reply.
i had seen that thread, and others similar after doing a search (before posting). but i couldnt fish anything out that would help me do what i want to do.

i'm probably going to upgrade my version in the near future, but for now still want the exact same address to show on both parts of the invoice.

anyone?
__________________
4.2.2
Reply With Quote
  #4  
Old 10-26-2005, 12:32 AM
  pauldodman's Avatar 
pauldodman pauldodman is online now
 

X-Guru
  
Join Date: Jul 2003
Location: Spain / UK
Posts: 3,054
 

Default

Just trying to see what it is exactly you want to do then;

you don't want to give people the option of entering a shipping address?
so all deliveries will go to their billing address in effect.

in other words you only want to provide one address, and having done that you want to tidy up the invoice so that the one address they enter appears in both address sections on the invoice?
__________________
Paul Dodman
e-business & m-commerce consultant
w: www.luminointernet.com
e: xcart@luminointernet.com

Professional X-Cart help, advice, support and services, specialists in Mobile X-Cart.
Reply With Quote
  #5  
Old 10-26-2005, 12:44 AM
 
bobbyftk bobbyftk is offline
 

Senior Member
  
Join Date: Jun 2005
Posts: 167
 

Default

right.

customer will only have one place to enter info.
which i have labeled now as

billing & shipping address

now just want the invoice to show the exact same address in both areas (which are normally billing address, shipping address)

the way its working now (the default)
in the shipping space, it only lists the first name and last name of the customer. no address.
__________________
4.2.2
Reply With Quote
  #6  
Old 10-26-2005, 12:52 AM
  pauldodman's Avatar 
pauldodman pauldodman is online now
 

X-Guru
  
Join Date: Jul 2003
Location: Spain / UK
Posts: 3,054
 

Default

OK, so all you are doing then is editing the file:
skin1/mail/html/order_invoice.tpl

And you have basically copied across the variables that are used in the billing section, so that you have for example:
{$order.b_city} in both sections.

If the billing section works then this should work as all you are now doing is asking it to display the value twice.
__________________
Paul Dodman
e-business & m-commerce consultant
w: www.luminointernet.com
e: xcart@luminointernet.com

Professional X-Cart help, advice, support and services, specialists in Mobile X-Cart.
Reply With Quote
  #7  
Old 10-26-2005, 12:56 AM
  pauldodman's Avatar 
pauldodman pauldodman is online now
 

X-Guru
  
Join Date: Jul 2003
Location: Spain / UK
Posts: 3,054
 

Default

Right, I think if that is what you are basically doing, then you need to remove the if statements that are in the billing section.

Code:
{if $_userinfo.default_fields.s_address} <TR> <TD>{$lng.lbl_address}: </TD> <TD>{$order.s_address} {$order.s_address_2}</TD> </TR> {/if}

Because of the if statements around here, you are getting nothing.
I reckon if you lose them, and change the s to b, you should get the value displayed.

Code:
<TR> <TD>{$lng.lbl_address}: </TD> <TD>{$order.b_address} {$order.s_address_2}</TD> </TR>
__________________
Paul Dodman
e-business & m-commerce consultant
w: www.luminointernet.com
e: xcart@luminointernet.com

Professional X-Cart help, advice, support and services, specialists in Mobile X-Cart.
Reply With Quote
  #8  
Old 10-26-2005, 01:34 AM
 
bobbyftk bobbyftk is offline
 

Senior Member
  
Join Date: Jun 2005
Posts: 167
 

Default

yeah thats the ticket!

it worked with a few different trys.
i just removed all the if statements in the billing and shipping areas.

i actually left all the "s_" parts in there and it returns the right info.
makes sense, because if the customer isnt allowed to enter any different shipping address, x-cart takes that as if the customer left the fields blank to show that its the same address right? so therefore all the "s_" variables should be the same as all the "b_" ones right? looks that way.

thanks for the help!
__________________
4.2.2
Reply With Quote
  #9  
Old 10-26-2005, 01:40 AM
 
bobbyftk bobbyftk is offline
 

Senior Member
  
Join Date: Jun 2005
Posts: 167
 

Default

just an added note.

i also switched these around.

Code:
{foreach from=$_userinfo.additional_fields item=v} {if $v.section eq 'S'}

(changed the S to B, and vice versa)

i use it to note "residential? Y or N"
this way this shows up on the shipping side (not the billing side)
since its a user option, and user only has the billing area to enter stuff in.

hope that makes sense.
__________________
4.2.2
Reply With Quote
  #10  
Old 10-01-2016, 07:20 AM
 
nfc5382 nfc5382 is offline
 

X-Adept
  
Join Date: Nov 2002
Posts: 477
 

Default Re: making billing & shipping address same and show on invoi

In 4.7.6 disabling the "Display 'Shipping information' section during registration and checkout" option appears to have a similar effect.
__________________
-----------------------
x-cart v4.7.6 [LIVE]
x-cart v4.0.18 [retired 2004-2016]
x-cart v3.5.13 [retired]
x-cart v3.4.14 [retired]
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 08:54 AM.

   

 
X-Cart forums © 2001-2020