How to set up unsubscribe link in woocommerce ?

Adding an “Unsubscribe” link to your WooCommerce emails allows customers to opt out of receiving unwanted messages, improving user experience and compliance with email marketing regulations. Below are different methods to set up an unsubscribe link in WooCommerce.


1. Adding an Unsubscribe Link to WooCommerce Email Templates

By default, WooCommerce sends transactional emails, such as order confirmations and shipping notifications. If you want to allow customers to unsubscribe from marketing emails, follow these steps:

Steps:

  1. Go to WooCommerce Email Settings

    • Navigate to WooCommerce > Settings > Emails in your WordPress dashboard.
    • Select the email template you want to modify (e.g., “Completed Order”).
  2. Edit the Email Template

    • If your theme allows, edit the email content directly through WooCommerce.
    • Otherwise, copy the template to your theme by clicking “Copy file to theme” under WooCommerce > Settings > Emails.
  3. Add an Unsubscribe Link

    • Edit the email template (wp-content/themes/your-theme/woocommerce/emails/email-footer.php) and add:
    php
    <p style="text-align: center;">
    <a href="<?php echo site_url('/unsubscribe/'); ?>" style="color: red;">Unsubscribe</a>
    </p>
    • Replace '/unsubscribe/' with your actual unsubscribe page URL.

2. Creating an Unsubscribe Page

If you don’t already have an unsubscribe page, you need to create one.

Steps:

  1. Go to WordPress Admin Panel > Pages > Add New
  2. Title the Page “Unsubscribe”
  3. Add an Explanation (e.g., “Enter your email below to unsubscribe from our mailing list.”)
  4. Insert an Email Unsubscribe Form (using a plugin or custom shortcode)

If you’re using a mailing list plugin (like Mailchimp or Sendinblue), you can generate an unsubscribe form and embed it.


3. Using a Plugin for Unsubscribing

If you want an easy, no-code solution, you can use a plugin such as:

  • WP Email Users – Allows adding an unsubscribe link to WooCommerce emails.
  • Mailchimp for WooCommerce – Automatically includes an unsubscribe option for marketing emails.
  • YITH WooCommerce Email Templates – Provides advanced email customization with an unsubscribe option.
See also  Where do you set thank you message in woocommerce ?

Steps to Add an Unsubscribe Link Using a Plugin

  1. Install and activate the plugin from Plugins > Add New.
  2. Go to the plugin settings and enable “Include unsubscribe link”.
  3. Customize the unsubscribe message and link.

4. Manually Handling Unsubscriptions

If you want to handle unsubscriptions manually:

  1. Set up an email address (e.g., unsubscribe@yourstore.com).

  2. In the WooCommerce email footer, add:

    html
    <p>If you no longer want to receive emails from us, reply to this email with "Unsubscribe".</p>
  3. Manually remove users from your email list when requested.


Conclusion

Setting up an unsubscribe link in WooCommerce is essential for email compliance and customer satisfaction. You can do this by: ✔ Editing email templates
✔ Creating an unsubscribe page
✔ Using a plugin for automation
✔ Manually handling unsubscriptions

Would you like assistance with implementing any of these methods?

Leave a Reply

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