WP Manifestindependent plugin directory
manifest / ecommerce / rs-woocommerce-order-messages

RS WooCommerce Order Messages WP Registry grade C-. High-severity findings · 1 findingWP RegistryHigh-severity findings · 1 findingOpen the reportC-

[WordPress Plugin] Allows you to add one or more messages to your WooCommerce products. These messages can be displayed on the order email and thank you page.

★ 1stars
19release downloads
≈10active sites
v1.2.1latest · 2 years ago

Install

Download RS-WooCommerce-Order-Messages.zip From the v1.2.1 release on GitHub, Jun 10, 2024

Upload it under Plugins → Add New Plugin → Upload Plugin, then activate.

Install straight from GitHub with WP-CLI:

wp plugin install https://github.com/radgh/rs-woocommerce-order-messages/releases/download/v1.2.1/RS-WooCommerce-Order-Messages.zip
No built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.

RS WooCommerce Order Messages

This plugin allows you to add one or more messages to your products which are displayed on the order email and thank you page.

Supports multiple products, and each product can have multiple messages. Messages can be set to display only for certain order statuses.

Author: Radley Sustaire
Author URI: https://radleysustaire.com/
Contributors: radgh
Donate link: https://paypal.me/radgh
Tags: woocommerce, email
Requires at least: 3.2
Tested up to: 6.2
Stable tag: 1.1.1
License: GPLv3
License URI: http://www.gnu.org/licenses/gpl-3.0.txt

Installation

  1. Upload the plugin files to /wp-content/plugins/rs-woocommerce-order-messages/, or install the plugin through the WordPress plugins screen.
  2. Activate the plugin through the 'Plugins' screen in WordPress
  3. Find global settings in WooCommerce > Order Messages or find per-product settings when editing a product under WooCommerce Order Messages
  4. Add one or more messages.
  5. View your message by viewing an order results page, or sending a customer email.

Frequently Asked Questions

What is Menu Order?

The menu order is used when multiple messages are displayed in the same location. Lower numbers appear first, and negative numbers are allowed.

Can multiple products use the same message without showing duplicate content?

Yes! Since version 1.1.0, messages with duplicate content are only shown once per location.

Screenshots

The settings page showing an option to appear on completed orders. The message from the settings page showing in an email.

Changelog

1.2.1

  • Updated language to "WooCommerce Order Messages" instead of "Product Order Messages", for consistency

1.2.0

  • Added support for Git Updater, allowing this plugin to automatically receive updates

1.1.1

  • Removed unnecessary classes from message items (use parent container instead)
  • HTML and trailing whitespace is now ignored when checking for duplicate messages
  • Now sorts items before removing duplicates, which keeps high priority messages on top

1.1.0

  • Improved code style, naming conventions, and comments
  • Removed inconsistent filters
  • Replaced "AA" references with "RS"
  • Added a new filter to modify messages before being displayed:
    $messages = apply_filters( 'wom/messages', $messages, $order, $location, $type );

1.0.1

  • Fixed PHP warning when menu order was blank
  • Set menu order default value to 0

1.0

  • First release

Upgrade Notice

None yet.

Releases

3 releases. Each count is every asset in that release; expand a row for the breakdown.

Tag
Published
Assets
Downloads
v1.2.1 latest
Jun 10, 2024 2 years ago
RS-WooCommerce-Order-Messages.zip
8
Jun 10, 2024 2 years ago
RS-WooCommerce-Order-Messages.zip
3
May 30, 2023 3 years ago
rs-woocommerce-order-messages.zip
8

Active-site estimate ≈10 comes from the median of recent superseded releases. Method.

C- grade

Security

RS WooCommerce Order Messages 1.2.1 · audited by WP Registry

High-severity findings.

1 high
Audited release
1.2.1
Findings
1
Worst severity
high
Content hash
d6bd661e6ab994c9855fd7be…

Findings

  • high ACF order-messages options page is writable with edit_posts and echoed unescaped on thank-you pages and emails

    xss_stored

    acf_add_options_sub_page() for slug wom-order-messages omits 'capability'. ACF Pro validate_page() therefore defaults capability to edit_posts and registers add_submenu_page('woocommerce', ..., 'edit_posts', 'wom-order-messages'). WordPress user_can_access_admin_page() allows any user with edit_posts to load and POST that screen (ACF nonce only; no manage_woocommerce). That includes editor, author, and contributor — not only shop_manager/admin. Saved repeater content is later printed with echo do_shortcode($msg['content']) and no escaping on woocommerce_order_details_* (order-received / My Account view-order) and woocommerce_email_* hooks. On a single-site install the editor role has unfiltered_html, ACF skips wp_kses_post_deep, and a <script> or payment-skimmer snippet in the WYSIWYG runs for every customer who views a matching receipt or email. Author/contributor are kses-filtered on save but can still inject links and images into those transactional surfaces. Shop managers (intended operators) lack unfiltered_html, so this is inverted privilege versus editor. Per-product ACF location (post_type product) is gated by edit_products and is not this issue.

    rs-woocommerce-order-messages.php:35-42

    Recommendation

    Pass 'capability' => 'manage_woocommerce' (or manage_options) into acf_add_options_sub_page so only shop managers and administrators can edit global messages. Keep product-level fields on edit_products. On output, run the message through wp_kses_post() before do_shortcode() unless the stored author had unfiltered_html, and do not execute arbitrary shortcodes from untrusted roles.

WP Registry hashes the installable build and reports on that exact bytes-for-bytes copy. Embargoed findings are withheld until they are disclosed, so a clean verdict means nothing public is outstanding. WP Manifest does not audit code itself.