This solution applies to Web Stores that are using the default Checkout Process.
If the Reference Cart and One Page Checkout is deployed in the Web Store, the Company Field does not appear in the Shipping and Billing step.
In Setup > Site Builder > Setup Website > Shopping Tab > Registration Page section, when the Display Company Field on Registration Page Preference is False, the Company field still shows in the Shipping and Billing Address Page in the checkout process.
To hide that field:
1. Create a custom website tag. Navigate to Setup > Site Builder > Tags > New.
2. Enter a name in the Label field for the custom website tag. Leave the Default Value field blank.
3. Click Save.
4. Navigate to Setup > Site Builder > Themes.
5. Click the Edit link next to the current theme being used in the webstore.
6. Go to the Body subtab. In the Footer template field, enter the custom tag you just created.
7. Click Save.
8. Navigate to Lists > Website > Tabs.
9. Click the Edit link next to the Checkout tab.
10. In the Tag Substitution tab, select the custom tag. Enter the sample script below in the Substitution Value column.
For reference, other fields in the Shipping/Billing Page:
Name attention_input_fs_lbl
attention_input_fs
Address 1 addr1_fs_lbl
addr1_fs_
Address 2 addr2_fs_lbl
addr2_fs
State dropdownstate_fs_lbl
dropdownstate_fs
City city_fs_lbl
city_fs
Country country_fs_lbl
country_fs
Zip zip_fs_lbl
zip_fs
Phone phone_fs_lbl
phone_fs
Note: This has been filed as Enhancement 166299 - Setup > Web Site > Site Builder > Shopping Tab > when Display Company Field on Registration Page field is off, Company field is still showing in the Shipping and Billing Address in the Checkout page.
Disclaimer: The sample code described herein is provided on an"as is" basis, without warranty of any kind, to the fullest extentpermitted by law. NetSuite Inc. does not warrant or guarantee the individualsuccess developers may have in implementing the sample code on theirdevelopment platforms or in using their own Web server configurations.
NetSuite Inc.does not warrant, guarantee or make any representations regarding the use,results of use, accuracy, timeliness or completeness of any data or informationrelating to the sample code. NetSuite Inc. disclaims all warranties, express orimplied, and in particular, disclaims all warranties of merchantability,fitness for a particular purpose, and warranties related to the code, or anyservice or software related thereto.
NetSuite Inc. shall not be liablefor any direct, indirect or consequential damages or costs of any type arisingout of any action taken by you or others related to the sample code.
No comments:
Post a Comment