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

move address field to first registration screen

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 06-07-2011, 04:36 AM
  vasilis's Avatar 
vasilis vasilis is offline
 

X-Adept
  
Join Date: Feb 2009
Posts: 761
 

Default 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.
__________________
Vasilis Vrontisis
X-Cart Development, Maintenance & Customization
https://[URL="http://www.craftforweb.com"]craftforweb.com[/url]
vasilis@craftforweb.com
Reply With Quote
  #2  
Old 07-18-2011, 04:32 AM
 
bugaminute bugaminute is offline
 

Senior Member
  
Join Date: Oct 2004
Posts: 126
 

Default 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.
__________________
Xcart Version Gold 4.7.12
Prod Sys- Debian 9 Stretch
Prod Sys - Apache/2.4.25 (Debian)
CDSEO Pro- 2.2
Mysql Community Edition 5.7.32
PHP 7.3
Reply With Quote
  #3  
Old 07-18-2011, 05:08 AM
 
bugaminute bugaminute is offline
 

Senior Member
  
Join Date: Oct 2004
Posts: 126
 

Default 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....
__________________
Xcart Version Gold 4.7.12
Prod Sys- Debian 9 Stretch
Prod Sys - Apache/2.4.25 (Debian)
CDSEO Pro- 2.2
Mysql Community Edition 5.7.32
PHP 7.3
Reply With Quote
  #4  
Old 07-18-2011, 05:40 AM
  vasilis's Avatar 
vasilis vasilis is offline
 

X-Adept
  
Join Date: Feb 2009
Posts: 761
 

Default 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.
__________________
Vasilis Vrontisis
X-Cart Development, Maintenance & Customization
https://[URL="http://www.craftforweb.com"]craftforweb.com[/url]
vasilis@craftforweb.com
Reply With Quote
  #5  
Old 07-18-2011, 06:14 AM
 
bugaminute bugaminute is offline
 

Senior Member
  
Join Date: Oct 2004
Posts: 126
 

Default 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
__________________
Xcart Version Gold 4.7.12
Prod Sys- Debian 9 Stretch
Prod Sys - Apache/2.4.25 (Debian)
CDSEO Pro- 2.2
Mysql Community Edition 5.7.32
PHP 7.3
Reply With Quote
  #6  
Old 02-13-2012, 12:04 PM
 
MAPerformance MAPerformance is offline
 

Senior Member
  
Join Date: Dec 2005
Posts: 145
 

Default 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
__________________
www.maperformance.com

X-Cart Version: 4.4.3 Gold
Reply With Quote
  #7  
Old 02-17-2012, 06:16 AM
 
MAPerformance MAPerformance is offline
 

Senior Member
  
Join Date: Dec 2005
Posts: 145
 

Default 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.
__________________
www.maperformance.com

X-Cart Version: 4.4.3 Gold
Reply With Quote
  #8  
Old 02-23-2012, 10:28 AM
 
MAPerformance MAPerformance is offline
 

Senior Member
  
Join Date: Dec 2005
Posts: 145
 

Default Re: move address field to first registration screen

Please help
__________________
www.maperformance.com

X-Cart Version: 4.4.3 Gold
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 10:14 PM.

   

 
X-Cart forums © 2001-2020