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)

Rob Barclay 08-27-2011 04:55 AM

Cant add address to the register.php page
 
Hi I am creating at trade site for a client and the register.php page will not display the address fields.

I am using 4.4.3 gold version I cannot force customers to enter Billing address on Register page. Changing settings in admin have no result on front-page. It looks to me that common_files/customer/main/register_address_info.tpl is old, 'cause it uses variables that do not exist in runtime.

Can anyone please confirm that register_address_info.tpl (and address_fields.tpl) are up-to-date with the version 4.4.3 gold? I really need new customers to register with Billing address.

http://shop.cliptec.co.uk/register.php

Matthew Austin 09-22-2011 07:56 AM

Re: Cant add address to the register.php page
 
I am having the same problem!:(

chamberinternet 09-22-2011 08:05 AM

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

Originally Posted by Rob Barclay
Can anyone please confirm that register_address_info.tpl (and address_fields.tpl) are up-to-date with the version 4.4.3 gold? I really need new customers to register with Billing address.

http://shop.cliptec.co.uk/register.php


Looks like you've resolved the issue on your site.
How did you get around it?

Rob Barclay 09-22-2011 08:25 AM

Re: Cant add address to the register.php page
 
Hi, because this is a trade site and I set the customer to not be able to purchase until their account was activated I created the address fields as Additional fields and as such the data is emailed to the client when they register so the client can approve/decline the application, but unfortunately this does not add the address to the customers address book.

So when the customers account is approved and they are ready to make a purchase when they checkout they would need to add their address again.

Because my client wont be activating these accounts without prior company checks its not a big issue, but if the client was to be registering and then expecting to checkout instantly then they would be confused at why they then have to add their address again.

I submitted a ticket to xcart and it was confirmed that this was not going to be possible with the standard structure. I looked at how I could achieve this and its not a simple procedure. If I needed the address to populate the Address book I would probably write a php script to clone the fields in the database to the required Address book tables so its already present when required.

Not a great solution but I dont see many other options.

qualiteam 09-29-2011 10:20 PM

Re: Cant add address to the register.php page
 
In the X-Cart v4.4 the address fields are really unavailable on the registration page, because the Address Book feature is used to store the users addresses. On the registration page it is necessary to enter the general information only (personal info + login and password). After registration the customer will see the "Address Book" tab, where he/she is able to manage his/her addresses.

epi 11-10-2011 02:27 AM

Re: Cant add address to the register.php page
 
I have the same problem, my new customers are synchronized with my CRM software and need address info to be validated. I just can't rely on customer's willingness to add their address info Аfter they registered.

I think it's really stupid that this is not a feature, especially because it always worked like this in previous versions. How can you just totally erase proper functionality?

Don't get me wrong, I think the address book is awesome, but why don't combine it with the registration page, it just doesn't make sense to me.

I'm now going to build it myself, if anyone has tips, let me know :)

Rob Barclay 11-10-2011 02:30 AM

Re: Cant add address to the register.php page
 
I would create a little sql/php and get it to populate the data into the other table with the updated information on a cron every 30 minutes or as required.

proboscidian 01-21-2012 06:30 PM

Re: Cant add address to the register.php page
 
Has anyone succeeded in modifying the register page to include the address book?

hues 07-21-2012 12:02 AM

Re: Cant add address to the register.php page
 
I was also looking for this. Need to modify register.php to include addresses. Has anyone done this ?
thanks

qualiteam 07-25-2012 01:22 AM

Re: Cant add address to the register.php page
 
This is possible, but a slight modification is required:

1. alter the "skin/common_files/customer/main/register.tpl" template and replace this code:
Code:

{include file="customer/main/register_address_info.tpl"}
with this:
Code:

{include file="customer/main/register_address_info.tpl" need_address_info='Y'}

2. add corresponding smarty assign statement in "include/register.php" script.

PHP Code:

$smarty->assign('address_fields'$address_fields); 



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

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