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)
-   -   need help - {$userinfo.b_firstname} not bring written (https://forum.x-cart.com/showthread.php?t=7664)

thundernugs 05-19-2004 02:27 PM

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. :x

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

Mod King 05-19-2004 04:13 PM

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

thundernugs 05-19-2004 04:24 PM

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

Mod King 05-19-2004 04:29 PM

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.

thundernugs 05-19-2004 04:48 PM

how would i accomplish that?

it seems to be storing the rest of the order info ok.

Mod King 05-19-2004 04:49 PM

It depends, where are you trying to display that information?
Which template file?

thundernugs 05-19-2004 04:53 PM

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.

Mod King 05-19-2004 05:11 PM

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.

thundernugs 05-19-2004 05:27 PM

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.

Mod King 05-19-2004 05:32 PM

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.


All times are GMT -8. The time now is 07:40 PM.

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