View Single Post
  #25  
Old 07-26-2014, 04:15 AM
 
Ben G Ben G is offline
 

Advanced Member
  
Join Date: Nov 2006
Posts: 100
 

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

The missing address fields according my Webmaster mode is from customer/main/register_address_fields.tpl - see Alex's code below (from page 1 of this thread).

Quote:
Originally Posted by qualiteam
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); 

I don't see this file in your list of modified files.

Sounds like you missed this one or you applied to just the common files.
If you are using a custom skin (e.g. Ideal Responsive) you need to make the change to
Quote:
ideal_responsive/customer/main/register_address_fields.tpl

Any other skin changes in the code mentioned also need to be made to your custom skin files (if they exist), not just common files.

I just registered a test customer on my site and can confirm the code does work properly in 4.6.3.

Hope it helps.
__________________
Ben
X-Cart 4.6.6 Gold Plus - lots of modules
X-Cart 4.7.9 Gold Plus - lots of modules
Reply With Quote