Plugin documentation

Product Codes in Customer Emails for WooCommerce

Free 0.1.2 and Pro 0.1.2 setup, testing, billing, privacy, troubleshooting, rollback, and StoreFixKit Support.

Free 0.1.2 and Pro 0.1.2 documentation.

Product Codes in Customer Emails tells WooCommerce's native order-items template to show the SKU already saved on each product or variation in core customer order emails. Free provides one customer-email switch. Pro selects core customer email types and can optionally include core store-owner order emails. It does not generate SKUs, edit products or orders, replace templates, or change recipients.

Requirements

Component Requirement
WordPress 6.2 or newer
PHP 7.4 or newer
WooCommerce 8.9 or newer, active
Free rule Existing SKU codes in WooCommerce core customer order emails
Pro plan One site, $39/year after a 14-day trial

Show product codes with Free

  1. Install and activate WooCommerce.
  2. Give one test product or variation an SKU in WooCommerce.
  3. Install the supplied Free 0.1.2 ZIP. After WordPress.org approves the listing, the same Free plugin can be installed from the directory.
  4. Open WooCommerce > SKU in Customer Emails.
  5. Turn on Show product codes in customer emails and save.
  6. Send a core customer order email for an order containing the test item.
Product Codes in Customer Emails settings with the customer-email switch and Pro email choices
Free adds one customer-email switch; Pro uses plain names for bounded email choices.
Product Codes in Customer Emails settings at a mobile viewport
The settings remain readable and keyboard-usable at a phone-width viewport.

Verify the email

  1. Use a product and a variation that already have distinct SKU codes.
  2. Send one WooCommerce core customer order email.
  3. Confirm each existing code appears under the correct item name through the native template.
  4. Confirm prices, quantities, totals, addresses, recipients, and product names are unchanged.
  5. Turn the switch off and confirm WooCommerce's native email output returns.

What Free changes

Free stores one local option, sfk_sce_settings, containing the enabled state. During a verified WooCommerce core customer email, it changes only the native order-items argument show_sku to true.

Free returns every incoming argument unchanged for admin emails, malformed input, uncertain email context, a disabled switch, or missing WooCommerce. A product without an SKU simply renders through WooCommerce's native template without an added code.

What Pro adds

Pro adds two bounded choices:

  • select customer email IDs from a fixed WooCommerce core allowlist;
  • optionally include core store-owner order emails.

The default remains customer-only. Pro does not edit third-party quote emails, membership emails, subscription templates, recipients, HTML, CSS, labels, or product data. If Pro or licensing is unavailable, the valid Free customer-email behavior continues.

Start the 14-day Pro trial

  1. Open the Product Codes in Customer Emails product page.
  2. Select Start 14-day trial. No card is required to begin.
  3. Stripe returns to StoreFixKit after checkout, and a signed webhook creates a product-bound license.
  4. Copy the license key and download the Pro 0.1.2 ZIP.
  5. Keep Free active, upload and activate Pro, then activate its license.
  6. Add a payment method before day 14 only if you want the $39/year subscription to continue. Without one, Stripe cancels it at trial end.

Compatibility boundary

This release uses WooCommerce's documented before-order-table, order-items-arguments, and after-order-table hooks to retain a verified core email context. It changes only show_sku while that context is valid.

WooCommerce core customer HTML and plain-text order emails are supported. Third-party email builders and extension-specific messages may own different templates or hooks and stay unchanged.

StoreFixKit does not provide an email builder, template override, HTML or CSS editor, SKU generator, custom label, image repair, recipient editor, or product-data tool.

Privacy, security, and resource use

  • Settings writes require manage_woocommerce and WordPress's settings nonce.
  • The plugin changes one native argument only inside a verified email context.
  • Each email reads at most two owned options.
  • Pro selects from at most eight reviewed core email IDs.
  • Products, variations, SKU values, orders, customers, recipients, totals, addresses, and templates are never written.
  • The email workflow performs no StoreFixKit or third-party HTTP request and stores no personal data.
  • There is no custom table, cron, Action Scheduler job, queue, telemetry, frontend JavaScript, or stylesheet.

Troubleshooting

No product code appears

Confirm the product or variation has an SKU, the switch is saved, and the message is a WooCommerce core customer order email. Resend a test email after clearing email-template cache if an email customizer has one.

The code appears in a store-owner email

Check the Pro store-owner order emails setting. Free does not enable SKU output for administrator messages.

A third-party email stayed unchanged

That is the supported boundary. Quote, subscription, membership, and custom email systems may not use WooCommerce's core order-items arguments.

The wrong variation code appears

Check the SKU saved on the exact variation in WooCommerce. The plugin does not generate, copy, or repair SKU values.

Pro choices do not apply

Confirm Free and Pro 0.1.2 are active, the license belongs to this product, and at least one core email type is selected. A license failure leaves the valid Free customer-email behavior in place.

Rollback and uninstall

  1. Back up the database and keep the deterministic 0.1.2 Free and Pro ZIPs.
  2. Deactivate Pro and confirm the Free customer-email switch still works.
  3. Deactivate Free and resend one test email to confirm native output returns.
  4. Install the previous deterministic ZIP if needed, reactivate, and repeat the customer-email check.
  5. Verify products, variations, SKU values, orders, recipients, and templates are unchanged.

The verified release drill updated, downgraded, rolled forward, deactivated, reactivated, and exercised both uninstall modes while preserving WooCommerce product and order data.

Normal uninstall preserves settings and the license for accidental recovery. Define STOREFIXKIT_DELETE_DATA as true before deletion only when you deliberately want Free to remove sfk_sce_settings and Pro to remove sfk_sce_pro_settings plus its license option. Product, SKU, order, customer, and template data are never deleted.

StoreFixKit Support

Use StoreFixKit Support and include the WooCommerce core email name, whether it is sent to the customer or store owner, whether the exact product or variation has an SKU, expected and actual result, active email customizer, Free and Pro versions, WordPress and WooCommerce versions, and a redacted email screenshot. Never send credentials, customer addresses, order details, API keys, payment data, or a complete license key.

For feedback, describe the shortest repeatable setup and whether the same order works in a default WooCommerce core customer email. After resolution, support will provide the correct WordPress.org review link once the official listing exists.