Product Specific Email Content for WooCommerce

Plugin Banner

Product Specific Email Content for WooCommerce

by petermorlion

Download
Description

If you want to add custom content to your order emails, on a per-product basis, this is
the plugin for you. With this plugin, you can add text to your order emails for each product
that your customer bought. Only the content for the bought products will be added to the
email.

This is useful if you want to send some extra info to the customer, depending on the products
they bought.

Workflow

Develop in Git and on GitHub as normal. Then:

  • git svn rebase
  • git svn dcommit
  • git rebase origin/master master
  1. Upload product-specific-email-content-for-woocommerce.php to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. Go to your product and you will see a new ‘Email’ tab under the product data.
  1. Adding the email text to the product.

    Adding the email text to the product.

  2. What the email will look like.

    What the email will look like.

Can my other plugin add to the content?

Yes! There are two actions that you can hook into:

  • product_specific_email_content_before_content
  • product_specific_email_content_after_content

Both accept a two arguments:

  • $item: the current Order item
  • $product: the current Product

With these hooks, you can add extra info before or after the content defined through this plugin.

1.4.0

  • Tested with WordPress 6.5

1.3.0

  • Declare HPOS compatibility

1.2.3

  • Tested with WordPress 6.3

1.2.2

  • Remove empty admin JS
  • Remove empty public JS and CSS.

1.2.1

  • Sanitize input and escape output
  • Update “tested up to” version
  • Add nonce and verify

1.2.0

  • Add product_specific_email_content_before_content and product_specific_email_content_after_content

1.1.0

  • Increase height of editor

1.0.0

  • Initial version
Back to top