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

need help - {$userinfo.b_firstname} not bring written

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 05-19-2004, 02:27 PM
  thundernugs's Avatar 
thundernugs thundernugs is offline
 

Senior Member
  
Join Date: May 2003
Location: Bend, OR
Posts: 117
 

Default need help - {$userinfo.b_firstname} not bring written

i've been editing my checkout/registration format and now the customer's first and last name are not being recorded anymore.

when i try to modify profile via the link under the minicart, the first and last name fields do not even show up to be able to edit.

but, if i use the modify link from the payment details section above the cc info area, the fields do show up and the names then are stored.

can anyone help me explain this?

i've removed some fields (title, website) and used others (fax, company) as address 2 fields. i've also modified register.php and register.tpl a bit, and the register_billing_address and register_shipping_address

thanks

http://digiez.com/store/customer/home.php
__________________
X-Cart Gold 4.0.17 & 4.0.18
Linux Server
Hands-On Hosting
http://www.CoreCases.com - Ipod Cases
http://www.InnovativeOutlet.com - Pet Plants and other cool stuff you need
Reply With Quote
  #2  
Old 05-19-2004, 04:13 PM
 
Mod King Mod King is offline
 

Senior Member
  
Join Date: May 2004
Posts: 115
 

Default

I can't seem to access your sites pages right now, they all give a smarty error.

But i think the first and last name of a person are
{$userinfo.firstname} {$userinfo.lastname}

I checked out the table structure for the version of x-cart that i am running and b_firstname doesn't exist

Does your form ask for a billing first and last name? if so i am wrong
__________________
Mod King
Reply With Quote
  #3  
Old 05-19-2004, 04:24 PM
  thundernugs's Avatar 
thundernugs thundernugs is offline
 

Senior Member
  
Join Date: May 2003
Location: Bend, OR
Posts: 117
 

Default

thanks - the smarty error is fixed, but still having my problem.

i am only asking for billing address and shipping address at checkout - i am using the billing address name as the main contact.

the names are
{$userinfo.b_firstname} {$userinfo.b_lastname}
{$userinfo.s_firstname} {$userinfo.s_lastname}

b for billing, s for shipping

i think it's a new feature in 3.5 to have three different name options
__________________
X-Cart Gold 4.0.17 & 4.0.18
Linux Server
Hands-On Hosting
http://www.CoreCases.com - Ipod Cases
http://www.InnovativeOutlet.com - Pet Plants and other cool stuff you need
Reply With Quote
  #4  
Old 05-19-2004, 04:29 PM
 
Mod King Mod King is offline
 

Senior Member
  
Join Date: May 2004
Posts: 115
 

Default

Oh I see where those are stored now

the b_fistname, b_lastname, and the s_ ones are all stored in the orders table

But not in the customer info table, so the only way to get that information would be to use the order information.
__________________
Mod King
Reply With Quote
  #5  
Old 05-19-2004, 04:48 PM
  thundernugs's Avatar 
thundernugs thundernugs is offline
 

Senior Member
  
Join Date: May 2003
Location: Bend, OR
Posts: 117
 

Default

how would i accomplish that?

it seems to be storing the rest of the order info ok.
__________________
X-Cart Gold 4.0.17 & 4.0.18
Linux Server
Hands-On Hosting
http://www.CoreCases.com - Ipod Cases
http://www.InnovativeOutlet.com - Pet Plants and other cool stuff you need
Reply With Quote
  #6  
Old 05-19-2004, 04:49 PM
 
Mod King Mod King is offline
 

Senior Member
  
Join Date: May 2004
Posts: 115
 

Default

It depends, where are you trying to display that information?
Which template file?
__________________
Mod King
Reply With Quote
  #7  
Old 05-19-2004, 04:53 PM
  thundernugs's Avatar 
thundernugs thundernugs is offline
 

Senior Member
  
Join Date: May 2003
Location: Bend, OR
Posts: 117
 

Default

customer_details.tpl - 2 pages ahead shows all the billing info but the name

and all the e-mail confirmations

it just doesn't seem to be storing it.
__________________
X-Cart Gold 4.0.17 & 4.0.18
Linux Server
Hands-On Hosting
http://www.CoreCases.com - Ipod Cases
http://www.InnovativeOutlet.com - Pet Plants and other cool stuff you need
Reply With Quote
  #8  
Old 05-19-2004, 05:11 PM
 
Mod King Mod King is offline
 

Senior Member
  
Join Date: May 2004
Posts: 115
 

Default

hmm, that is so strange, its getting the address but not those names (i tried checking out on your site)

You can try adding this line to your ./customer/cart.php
at around line 559 after:

$smarty->assign("userinfo",@$userinfo);

Code:
print "<pre>"; print_r($userinfo); print "<pre>";

It will print out all the information stored in that variable so you can see if its there and a smarty problem, if its not there its a php problem.
__________________
Mod King
Reply With Quote
  #9  
Old 05-19-2004, 05:27 PM
  thundernugs's Avatar 
thundernugs thundernugs is offline
 

Senior Member
  
Join Date: May 2003
Location: Bend, OR
Posts: 117
 

Default

hey, that's a neat trick

it wasn't there, so i'm thinking register.php?

again, i was able to have it store only when i use the modify link on the page where the cc info is entered. but, not the "modify profile" link under minicart.
__________________
X-Cart Gold 4.0.17 & 4.0.18
Linux Server
Hands-On Hosting
http://www.CoreCases.com - Ipod Cases
http://www.InnovativeOutlet.com - Pet Plants and other cool stuff you need
Reply With Quote
  #10  
Old 05-19-2004, 05:32 PM
 
Mod King Mod King is offline
 

Senior Member
  
Join Date: May 2004
Posts: 115
 

Default

Yah it must be how its storing the values, because in the confirmation e-mail i received for registering it had the names blank as well.
__________________
Mod King
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:44 AM.

   

 
X-Cart forums © 2001-2020