View Single Post
  #83  
Old 06-21-2005, 06:37 AM
 
cconway cconway is offline
 

Member
  
Join Date: May 2005
Posts: 28
 

Default

Quote:
Originally Posted by r.jones
This is the code IБ─≥m currently using:

Step 1:

General Settings : User Profile options

Set "First Name" and "Last Name" to Active and Required.

Step 2:

Apply this patch, http://forum.x-cart.com/download.php?id=9 which allows the ship to names to be left blank. Shoppers will see a message: Shipping Address (leave empty if same as billing address). The patch changes only a few lines in two files. The "-" (minus sign) indicates the code that is removed, and the "+" (plus sign) indicates the code that replaces it.

Step 3:

Hide the billing names if javascript is enabled by changing main/register_billing_address.tpl starting at about line 28 from:

...

Step 4:

Add a four (lines end with a semi colon) lines to the check_registerform_fields() function in customer/main/register.tpl:

...

This works perfectly for me on X-Cart 4.0.13 Gold. Quick and easy changes.

Thanks r.jones!
__________________
X-Cart Gold 4.1.3 on Linux with
PHP 4.4.1, MySQL 4.0.25

Installed mods:
1. X-Cart 4 Level Vertical Flyout Menus for 4.1.x by
http://www.xcartmods.co.uk
2. XC SEO 1.1.5 by intel352
http://forum.x-cart.com/showthread.php?p=142953
Reply With Quote