Remove Checkbox “Yes, Please sign me up for exclusive offers and promotions” in Reference Checkout

Scenario

There are instances where web stores have to hide “Sign me up for exclusive offers and promotions” checkbox on the registration page.

Solution
  1. 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
  2. Edit the file
  3. 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>

  1. Copy
  2. 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>

  1. Copy
  2. Save the file
  3. Deploy the changes to NetSuite

Leave a comment

Your email address will not be published. Required fields are marked *