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

Cant add address to the register.php page

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions
 
Thread Tools Search this Thread
  #11  
Old 07-25-2012, 01:54 AM
 
hues hues is offline
 

Advanced Member
  
Join Date: Jul 2006
Posts: 90
 

Default Re: Cant add address to the register.php page

Thanks Alex.
Please help in modifying "include/register.php" Where to add the code
PHP Code:
$smarty->assign('address_fields'$address_fields); 


Around line 1690 on include/register.php we have

PHP Code:
$smarty->assign('address_fields'$address_fields);
        if (!empty(
$address_book)) {
            
$smarty->assign('address_book'$address_book);
        } 

Thanks again for the help.
__________________
X-Cart 4.4.5 ... www.drugteststrips.com
X-Cart 4.4.5 ... www.drugalcoholtest.com

Hues Technologies
http://www.huestechnologies.com
Reply With Quote
  #12  
Old 07-25-2012, 02:15 AM
  qualiteam's Avatar 
qualiteam qualiteam is offline
 

X-Guru
  
Join Date: Dec 2010
Posts: 6,373
 

Default Re: Cant add address to the register.php page

Try adding this code at the bottom where the other smarty variables are defined:
PHP Code:
if (empty($userinfo)) {
  
$smarty->assign('address_fields'$address_fields);


e.g. after this after this one:
PHP Code:
$smarty->assign('is_areas'$is_areas); 
__________________
Alex Solovev,
Qualiteam

---

User manual Video tutorials X-Cart FAQ

You are welcome to press "Thanks" button
if you find this post useful

Click here to learn how to apply patches

X-Cart Extensions
Reply With Quote

The following user thanks qualiteam for this useful post:
hues (08-04-2012)
  #13  
Old 08-04-2012, 07:28 PM
 
hues hues is offline
 

Advanced Member
  
Join Date: Jul 2006
Posts: 90
 

Default Re: Cant add address to the register.php page

Thank you Alex. This is exactly what was needed.
__________________
X-Cart 4.4.5 ... www.drugteststrips.com
X-Cart 4.4.5 ... www.drugalcoholtest.com

Hues Technologies
http://www.huestechnologies.com
Reply With Quote
  #14  
Old 08-10-2012, 08:51 AM
 
hues hues is offline
 

Advanced Member
  
Join Date: Jul 2006
Posts: 90
 

Default Re: Cant add address to the register.php page

Alex I implemented this modification but it is not working properly. When a user registers, address fields are there on registration form but address does not appear in address book. User has to fill in address again so it does not make sense.
__________________
X-Cart 4.4.5 ... www.drugteststrips.com
X-Cart 4.4.5 ... www.drugalcoholtest.com

Hues Technologies
http://www.huestechnologies.com
Reply With Quote
  #15  
Old 08-29-2012, 11:30 AM
 
tagteam tagteam is offline
 

eXpert
  
Join Date: Jan 2012
Posts: 227
 

Default Re: Cant add address to the register.php page

I have the same issue with one of my companies. Has a way been found to tie the registration to the address book so there is no need for double entry of address?
__________________
Version 4.7.8
Reply With Quote
  #16  
Old 09-06-2012, 03:37 PM
 
paul@dimoda.com.au paul@dimoda.com.au is offline
 

Senior Member
  
Join Date: Aug 2007
Location: Perth, Australia
Posts: 148
 

Default Re: Cant add address to the register.php page

This is really helpful. I would also like to add the "additional Feilds" from the user profiles to the register form. Is this possible as we are using it as an internal account application form to approve accounts.
__________________
X-Cart Gold 4.1.10, 4.1.18, 4.4.4, 4.4.5
Reply With Quote
  #17  
Old 09-26-2012, 07:25 AM
  mcanitano's Avatar 
mcanitano mcanitano is offline
 

eXpert
  
Join Date: Feb 2006
Location: Melbourne, FL
Posts: 216
 

Default Re: Cant add address to the register.php page

Getting the Customer Registered e-mail with Customer's Personal Information along with Address Information is a need for our company as well, since we incorporate the customers onto our system as they register.

I see we can change that with some of the coding provided here, but we would also like it for our customers to not have to enter in their address twice (registration, then address book)! So as they register and enter their personal/address info, that information gets transfered to the address book.
__________________
Marcello Canitano
New Site: X-Cart v4.5.5 GOLD
X-Cart Mobile v1.4.3
X-Payments v1.0.6
CDSEO Pro v2
Total Server Solutions xCDN

www.silverhorseracing.com
Reply With Quote
  #18  
Old 10-23-2012, 05:24 PM
 
Chrisweb2 Chrisweb2 is offline
 

Member
  
Join Date: Feb 2008
Posts: 10
 

Default Re: Cant add address to the register.php page

After adding Alex's code add the below to include/address_book.php

Code:
} elseif ($current_area == 'C' && !empty($address_book)) { $address_book = func_customer_save_address_book_indb($address_book, @$ship2diff, @$existing_address, @$new_address); }

Worked for me.
__________________
X-Cart Gold 4.4.5
Reply With Quote

The following user thanks Chrisweb2 for this useful post:
qualiteam (10-23-2012)
  #19  
Old 10-30-2012, 02:28 PM
 
tagteam tagteam is offline
 

eXpert
  
Join Date: Jan 2012
Posts: 227
 

Default Re: Cant add address to the register.php page

If you dont mind me asking, where did you put it on the page to make it work for you?

Did you just edit the block around line 76 or did you enter this as a whole new block.
Thanks
__________________
Version 4.7.8
Reply With Quote
  #20  
Old 10-30-2012, 02:29 PM
 
tagteam tagteam is offline
 

eXpert
  
Join Date: Jan 2012
Posts: 227
 

Default Re: Cant add address to the register.php page

Looking at the code it seems to be what they already have

Code:
} elseif ($current_area != 'C' && !empty($address_book)) { 77 // Update request from admin area 78 if (!empty($delete_address)) { 79 $address_book = func_delete_from_address_book($address_book, $delete_address); 80 }
__________________
Version 4.7.8
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions



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 11:22 AM.

   

 
X-Cart forums © 2001-2020