![]() |
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 |
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 |
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 |
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. |
how would i accomplish that?
it seems to be storing the rest of the order info ok. |
It depends, where are you trying to display that information?
Which template file? |
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. |
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>"; 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. |
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. |
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.