X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Dev Questions (https://forum.x-cart.com/forumdisplay.php?f=20)
-   -   Cant add address to the register.php page (https://forum.x-cart.com/showthread.php?t=60688)

Zizilu 07-28-2015 04:48 PM

Re: Cant add address to the register.php page
 
Having same issue.. I want the customer to enter all info needed once (when registering) and not have to enter it again to address book or when checking out. I have login/registration needed to checkout. Would someone please post all procedures needed to solve this issue please :)

cflsystems 07-28-2015 05:25 PM

Re: Cant add address to the register.php page
 
I guess you are looking for something like this - https://www.cflsystems.com/register.php

This requires changes in numerous files both php and tpl types. It is not a simple 1. 2. 3. list....

Zizilu 07-28-2015 05:40 PM

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

Originally Posted by cflsystems
I guess you are looking for something like this - https://www.cflsystems.com/register.php

This requires changes in numerous files both php and tpl types. It is not a simple 1. 2. 3. list....


Exactly! And once customers enter this info during registration they wouldn't have to enter it again on checkout right?
Can you list the steps to achieving that please :)

cflsystems 07-28-2015 09:41 PM

Re: Cant add address to the register.php page
 
Yes this is one time info enter and it goes directly in the address book as billing/shipping.
Like I said it is not a simple change here or there. I can integrate it for you but can't list all steps required and codes changes.

Zizilu 07-29-2015 01:09 PM

Re: Cant add address to the register.php page
 
Ok how can we do that please?

cflsystems 07-30-2015 06:33 PM

Re: Cant add address to the register.php page
 
You can open a ticket here https://www.cflsystems.com/support/ with details and I can give you an estimate for the integration.

ElegantXMods.com 07-06-2016 03:53 AM

Re: Cant add address to the register.php page
 
Hi
as for:
Quote:

Originally Posted by Zizilu
Having same issue.. I want the customer to enter all info needed once (when registering) and not have to enter it again to address book or when checking out. I have login/registration needed to checkout. Would someone please post all procedures needed to solve this issue please :)


just +1 to what cflsystems say
Quote:

Originally Posted by cflsystems
I guess you are looking for something like this - https://www.cflsystems.com/register.php

This requires changes in numerous files both php and tpl types. It is not a simple 1. 2. 3. list....


meaning if all of the files adjustments done and you are still not getting address book filled then the registration process needs debug.. Maybe you register page's HTML does not have fields like:
HTML Code:


<input type="text" id="b_firstname" name="address_book[b][firstname]" size="32" maxlength="128" value="" autofocus />

and it should be added in order to fix that.. Or another method is to manually create the address book array like:
PHP Code:

$address_book['B'] = array ( 
        
'firstname' => $_POST['firstname'],
        
'lastname' => $_POST['lastname'],
        
'address' => $_POST['no']. ', '$_POST['address-line1'] .', '.$_POST['address-line2'], 
        
'city' => $_POST['city'], 
        
'country' => $_POST['country'], 
        
'zipcode' => $_POST['zip'], 
        
'phone' => $_POST['phone'],
        
'fax' => '',
    ); 

it depends on your store and HTML.
Hope it helps:-)


All times are GMT -8. The time now is 10:22 AM.

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