WP Manifestindependent plugin directory
manifest / ecommerce / wc-new-functions-ramalho

RWP - WooCommerce Extensions

WordPress/WooCommerce plugin: virtual fitting room with size recommender and order tracking code in emails.

★ 1stars

Install

Download source zip No release zip yet

This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.

Install straight from GitHub with WP-CLI:

wp plugin install https://github.com/rairamalho/wc-new-functions-ramalho/archive/refs/heads/master.zip
No built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.

A WordPress plugin that adds practical WooCommerce features: a virtual fitting room for apparel products and an order tracking code displayed in transactional emails.

Features

Virtual Fitting Room

  • Adds a measurement-based size recommender to WooCommerce product pages.
  • Customer enters height, weight and waist — the plugin cross-checks against size rules and recommends the best fit.
  • Size rules are managed through Advanced Custom Fields in the WordPress admin.
  • Supports global rules (default) and per-product overrides.

Order Tracking Email

  • Automatically injects a tracking code block into WooCommerce order confirmation emails.
  • Reads the tracking code from a custom ACF field (shipping-code) attached to the order.

Requirements

Requirement Version
PHP 8.1+
WordPress 6.5+
WooCommerce 7.0+
Advanced Custom Fields (ACF) Any recent version

Installation

  1. Clone or download this repository into your wp-content/plugins/ directory.
  2. Make sure WooCommerce and Advanced Custom Fields are installed and active.
  3. Activate RWP - WooCommerce Extensions from the WordPress admin.
  4. Navigate to RWP WooCommerce → Virtual Fitting Room to configure size rules.

Configuration

Size Rules

Size rules are stored in a WordPress post (ID configurable in provador-virtual/provador-virtual.php). Each rule is a repeater row with:

Field Description
Size name e.g. P, M, G, GG
Weight Max weight (kg) for this size
Height Max height (cm) for this size
Waist Max waist (cm) for this size

Rules can also be overridden at the product level by enabling the Provador Virtual field group on individual products.

Tracking Code

Add an ACF text field named shipping-code to your WooCommerce orders. The plugin will display it automatically in order emails when the field is not empty.

Usage

Once activated, the fitting room appears automatically on product pages where the Exibir o link para provador virtual? field is set to Sim. No shortcode is required.

Development

# PHP lint
php -l wc-new-functions-ramalho.php

License

GPL v2 or later — see LICENSE.

Author

Raimundo Ramalho — github.com/rairamalho