Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Version History

« Previous Version 3 Current »

Adding a consent field for receiving email newsletters:

  1. Go to the theme template editing section (take item #1 from here: [IMPORTANT] Create a custom template necessary for the correct operation of the application ).

  2. In the left list, under the Sections group, find the main-register.liquid file and click on it to edit.

  3. In the editor field, find the HTML code with the button tag and add an additional field before it.

<!-- accepts_marketing -->
<p style="text-align: left">
    <input style="width: 20px;min-width: 20px;display: inline;" type="checkbox" name="customer[accepts_marketing]" checked="checked" value="true" id="acceptsMarketing" />
    <span style="display: inline;">Keep me up to date on news and exclusive offers</span>
</p>
<!-- /accepts_marketing -->
  1. Click Save button.

See the example here:

The structure of templates may vary from theme to theme - it depends on the theme developer. Therefore, this guide may not correspond to the theme used in the store, and you may need to contact our Support or make changes yourself using additional information from the Shopify documentation https://shopify.dev/docs/themes/customer-engagement/email-consent#customer-registration-form-checkbox .

  • No labels