WP Manifestindependent plugin directory
manifest / ecommerce / woo-customer-price

Woo Customer Price (Name Your Price)

Let customers enter their own price for Simple & Variable products with min/max/step/suggested controls.

by Faisal Ahammed · github.com/faisalahammed044274/woo-customer-price

0stars
0forks

Install

No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:

wp plugin install https://github.com/faisalahammed044274/woo-customer-price/archive/refs/heads/main.zip

Readme

Woo Customer Price (Name Your Price)

Version: 1.0.1
Author: Faisal Ahammed Author URI: https://github.com/faisalahammed044274 License: GPL-2.0-or-later
Text Domain: woo-customer-price


Description

Woo Customer Price allows your customers to set their own price for WooCommerce Simple and Variable products. It comes with options for:

  • Minimum and Maximum price
  • Step (increment) value
  • Suggested price
  • Custom label for the price input

Perfect for donation products, “Pay What You Want” items, or flexible pricing strategies.


Features

  • Works on Simple and Variable products
  • Admin options for enabling/disabling customer price per product or variation
  • Min, Max, Step, and Suggested price controls
  • Input label customization
  • Validates price on Add to Cart
  • Shows custom price in cart, checkout, and order items
  • Automatically rounds price to 2 decimals to avoid WooCommerce errors
  • Fully compatible with WooCommerce front-end variations
  • Lightweight JS for dynamic variation price inputs

Installation

  1. Upload the plugin folder to the /wp-content/plugins/ directory
  2. Activate the plugin via the Plugins menu in WordPress
  3. Make sure WooCommerce is installed and active
  4. Edit any product and enable "Customer Price" under the pricing options

Usage

Simple Products

  1. Go to the product editor
  2. Scroll to Product Data → Pricing
  3. Enable Customer Price
  4. Set:
    • Input Label
    • Suggested Price
    • Minimum Price
    • Maximum Price
    • Step (increment)

Variable Products

  1. Go to the product editor
  2. Under Variations, enable Customer Price for each variation
  3. Set your desired min, max, step, and suggested values

Frontend

  • On the product page, a number input field appears
  • Users can enter their price (validated against min, max, step)
  • Custom price will show in cart, checkout, and order details

Screenshots

  1. Admin: Enable Customer Price on simple products
  2. Admin: Enable Customer Price per variation
  3. Frontend: Custom price input field for simple products
  4. Frontend: Custom price input field for selected variation

Frequently Asked Questions

Q: Can this plugin work without WooCommerce?
A: No. Woo Customer Price requires WooCommerce to be installed and active.

Q: Can I set different prices per variation?
A: Yes. Each variation has its own min, max, step, suggested price, and label.

Q: Can I prevent users from entering zero or negative values?
A: Yes. All input is validated, and WooCommerce errors are avoided.


Changelog

1.0.1

  • Fixed decimal precision issue causing WooCommerce validation errors
  • Updated to_price() function to round to 2 decimals
  • Minor code improvements

1.0.0

  • Initial release
  • Simple & variable product support
  • Min, Max, Step, Suggested price
  • Custom input label
  • Cart, checkout, and order integration

License

This plugin is licensed under the GPL-2.0-or-later.

Read the full README on GitHub →