Monday, July 15, 2019

Add a Date of Birth Field on the New Customer Registration Form of Reference Checkout

Image


Note: Applicable for Reference Checkout  v2.02 (Bundle ID 41420)

There are use cases for the web store where the Date of Birth of the shopper is needed in the Customer Registration. To include this information in the Registration Form in Reference Checkout, follow these steps:

I. Create a custom Entity Field for the shopper's Date of Birth.
1. Navigate to Setup > Customization > Entity Fields > New.

2. Populate the following fields:
- Label = Date of Birth
- ID = _dob
- Type = Date
- Store Value = True

3. On the Applies To tab, mark the checkbox for the following: Customer, Web Site

4. Click Save.

II. Display the field in the Registration Form of Reference Checkout.
1. Navigate to Documents > Files > File Cabinet, then open this folder: Web Site Hosting Files > Live Hosting Files > SSP Applications > NetSuite Inc. - Checkout 2.02.0 > Reference Checkout.

2. Copy the file listed below from the Reference Checkout application folder to their corresponding folders in the Custom Checkout application folder:

 

/templates/login_register/macros/register_form_field_macro.txt

 

3. Navigate to Documents > Files > File Cabinet, then open this folder: Web Site Hosting Files > Live Hosting Files > SSP Applications > NetSuite Inc. - Checkout 2.02.0 > Custom Checkouttemplates login_register > macros. Click Edit next to the register_form_field_macro.txt file, and click the Edit link in the file record.

 

4. Locate the following code:

5. Add this code after the closing DIV tag above:

6. Click the Save button.

The Date of Birth field will be added after the Last Name field in the Registration Form of Reference Checkout. 

No comments:

Post a Comment