RS Image Editor Tool
An advanced WooCommerce product variations manager that lets you create custom option-based pricing, calculate prices dynamically, and add products to cart securely via REST API and modern JavaScript interactions for a smooth, flexible buying experience.
Install
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/devshakilhossain/rs-image-editor-tool/archive/refs/heads/main.zipProduct Variations Manager (WooCommerce) Product Variations Manager is an advanced WooCommerce plugin that allows you to create custom, option-based product variations with dynamic price calculation and secure add-to-cart functionality using the WordPress REST API and Interactivity API.
Requirements Before installing, make sure the following plugins are active:
WooCommerce (required) WordPress 6.5+ (recommended, for Interactivity API support) PHP 7.4 or higher The plugin will not activate if WooCommerce is inactive. Installation Upload the plugin folder to /wp-content/plugins/ Activate Product Variations Manager from the WordPress admin panel Ensure WooCommerce is active
How It Works Product variations are created using custom post meta Prices are calculated dynamically on the frontend Final price is validated on the server before adding to cart Uses REST API to prevent price tampering from the browser
Required Product Meta Fields Add the following meta fields to your WooCommerce product (via custom fields, ACF, or code): rs_length rs_closure_size rs_hair_type rs_styling rs_cap_size rs_hair_density Each meta field should contain variation data in array format with name and price.
Shortcode Usage Use the shortcode below on a single product page or inside a WooCommerce product description: [rs_product_variations] This shortcode will: Render variation select fields Show dynamic price updates Display an “Add to Cart” button with live interaction
REST API Endpoint The plugin registers a secure REST API endpoint: POST /wp-json/rs-product-variation/v1/send
This endpoint: Validates variation data Calculates final price on the server Adds the product to the WooCommerce cart Returns updated cart fragments Security Notes Product ID and prices are validated server-side Frontend price manipulation is prevented Only allowed variation keys are accepted
Recommended Use Case Hair products Custom-size products Option-based pricing Advanced WooCommerce customization Support & Customization
This plugin is developer-friendly and can be extended via: Custom hooks Additional variation keys Custom frontend templates