WooCommerce Integration

Dave Hilditch

If WooCommerce is installed and active, the plugin can add an “Email Preferences” tab to the WooCommerce My Account page.

Enabling the Tab

  1. Go to SSE Emails > Settings > WooCommerce
  2. Check “Add Email Preferences tab to WooCommerce My Account”
  3. Optionally change the Endpoint Slug (default: email-preferences)
  4. Click Save Settings

Rewrite rules are flushed automatically when you toggle the tab or change the slug — no need to visit Settings > Permalinks.

The tab will now appear in the My Account sidebar, just above “Log out”.

What Customers See

The tab shows the same interface as the standalone subscription management page:

  • A list of all active lists with checkboxes
  • Checked = subscribed, unchecked = not subscribed
  • A “Save Preferences” button
  • Changes saved via AJAX without page reload

Since WooCommerce My Account requires the user to be logged in, there’s no email lookup step — the subscriber is identified by their WordPress user account.

URL

The tab is accessible at:

https://yoursite.com/my-account/email-preferences/

The email-preferences part is the endpoint slug, which you can change in settings.

Changing the Endpoint Slug

  1. Go to SSE Emails > Settings > WooCommerce
  2. Change the Endpoint Slug field (e.g. newsletter-settings)
  3. Save

The new URL will be https://yoursite.com/my-account/newsletter-settings/. Rewrite rules are flushed automatically on the slug change — no manual permalink re-save needed.

Tab Position

The “Email Preferences” tab is inserted just before the “Log out” link in the My Account navigation. The position is not configurable via settings, but can be adjusted with the standard WooCommerce filter:

add_filter( 'woocommerce_account_menu_items', function( $items ) {
    // Reorder items as needed
    return $items;
}, 20 );

When WooCommerce Is Not Installed

The WooCommerce tab in Settings is only visible when WooCommerce is active. If WooCommerce is deactivated, the My Account endpoint silently stops working — no errors, it just doesn’t register. The standalone subscription management page (via shortcode) continues to work regardless.

Using Both

You can have both the WooCommerce My Account tab and the standalone management page active at the same time. They show the same content and make the same AJAX calls. This can be useful if you want:

  • The My Account tab for registered customers
  • The standalone page for non-WooCommerce users or guest subscribers

Leave a Reply

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

×
1/1