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)
-   -   move address field to first registration screen (https://forum.x-cart.com/showthread.php?t=59678)

vasilis 06-07-2011 04:36 AM

move address field to first registration screen
 
Has anybody moved the address field in the profile registration procedure to the first "Create Profile" screen (working on a 4.4.2 site), so the customer is required to fill in his/her address? Normally, the address fields display after the customer clicks on the "Address book" link, so if he doesn't do that, no address is filled.
I also have set the 'Address' field, required in the 'User Profiles' form options. Also, the new-address-book link doesn't need to display, since the customer will already have filled his/her address (besides, no other address book fields need to be filled, since no products are shipped from this particular site, only services ordered).
I have started searching the template files (register.tpl, address_book.tpl, address.tpl) to edit them accordingly - I was just wondering if anybody has done this already and save me the trouble.

bugaminute 07-18-2011 04:32 AM

Re: move address field to first registration screen
 
It is a good idea. As it stands now it is quite confusing for the user. If they register, then click on submit, they are brought to the address book. If the cancel and clickon the address tab and hit submit again, it is essentially updating the profile.

At a minimum, the address book should have an option to fill in any previous fields. When i get a minute, I may add that and will post my code.

I also added some notes to the language variable lbl_address_book to help eliminate confusion.

bugaminute 07-18-2011 05:08 AM

Re: move address field to first registration screen
 
Oops - When I changed lbl_address_book, it made a mess of the address book page. So, I created a new language Variable which I called lbl_address_book_note1. Then I added it after line line 9 in /skin/common_files/customer/main/address_book.tpl

<h1>{$lng.lbl_address_book}</h1>
{* added New Language Variable below *}
{$lng.lbl_address_book_note1}

This works. This new language variable tells my customer they are registered and that they can add an address now or later blah blah blah....

vasilis 07-18-2011 05:40 AM

Re: move address field to first registration screen
 
so, actually you added some address-related instructions for the customer, on the popup window, right?
But this, doesn't force the customer to fill-in an address, as stated in my initial post.
The initial reason I wanted to get the customer fill the address is, that there is a problem with paypal express checkout, with customers that haven't filled their address and they don't have a paypal account either. Paypal outputs an error message about the address missing.

bugaminute 07-18-2011 06:14 AM

Re: move address field to first registration screen
 
No. I am not using single page ajax checkout. I use fastlane which eliminates the popups. Anyway, the instructions for the language variable I mentioned above as well the template, appears for initial registration.

To solve your issue, I think some code is needed to mandate the user to fill in the billing and ship to information upon initial registration.

The single page of which you spoke is still there. It actually appears upon checkout (again using fastlane) for users that do not have any billing information yet. I think these are

common_files/customer/main/register_personal_info.tpl
common_files/customer/main/register_additional_info.tpl
common_files/customer/main/register_address_info.tpl

MAPerformance 02-13-2012 12:04 PM

Re: move address field to first registration screen
 
I'd like to bring this thread back to life because I'm looking for the exact same thing as OP.

We use the BCS Quote module, which requires the user to be registered to submit a quote request. The problem is that if a customer registers simply to use use the quote module, they're never *required* to add an address to their address book. It can cause the problem of us not knowing where they need their stuff shipped for proper shipping quotes. If the registration page included the address fields marked as required, then the problem would be eliminated as EVERYONE who registered would have an address filled out. There is no reason for a customer to register on our site and not have an address in their profile, as for them to make use of our site they have to buy something that is shipped to them ;)

MAPerformance 02-17-2012 06:16 AM

Re: move address field to first registration screen
 
Bump. I have tried to figure this out but I can't wrap my head around the Smarty system well enough to get this to work.

MAPerformance 02-23-2012 10:28 AM

Re: move address field to first registration screen
 
Please help :)


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

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