Scenario
There are instances where web stores have to hide “Sign me up for exclusive offers and promotions” checkbox on the registration page.
Solution
- Copy register_form_field_macro.txt from Reference Checkout to the Custom Checkout folder on a similar path: Web Site Hosting Files > Live Hosting Files > SSP Applications > NetSuite Inc. – Checkout 2.0x.0 > Custom Checkout > templates > login_register > macros
- Edit the file
- Find and remove the following lines of code:
<div class="control-group">
<label class="checkbox">
<input type="checkbox" name="emailsubscribe" id="register-emailsubscribe" value="T" <%= email_subscribe_checked ? 'checked' : '' %> >
<%= _('Yes, Please sign me up for $(0) exclusive offers and promotions').translate(site_name) %>
</label>
</div>
- Copy
- Replace it with the following code:
<div class="control-group" style="display:none">
<label class="checkbox">
<input type="checkbox" name="emailsubscribe" id="register-emailsubscribe" value="T" <%= email_subscribe_checked ? 'checked' : '' %> >
<%= _('Yes, Please sign me up for $(0) exclusive offers and promotions').translate(site_name) %>
</label>
</div>
- Copy
- Save the file
- Deploy the changes to NetSuite