WDOnline Quantity Discounts for WooCommerce

Description

WDOnline Quantity Discounts for WooCommerce lets you define fixed unit-price or dynamic percentage tiers directly on products, variations, and product categories.

Example rules:

3|8
5|7

This means:

  • From 3 items, the unit price becomes 8.
  • From 5 items, the unit price becomes 7.

The plugin automatically applies the correct unit price in the cart and checkout.

Frontend, product-editor, and validation text can be customized under WD Online > WDOnline Quantity Discounts for WooCommerce, making it easy to use the plugin in any language without editing code.

Features:

  • Fixed unit-price quantity tiers per product.
  • Independent quantity-discount rules for each variation.
  • Automatic pricing in cart and checkout.
  • Optional savings display per cart item or as one combined cart and checkout saving.
  • Editable cart and checkout savings label under Text settings.
  • Custom colors, font size, and font weight for cart and checkout savings.
  • Six product-page placement choices plus shortcode and block output.
  • List or table layouts with optional percentage savings.
  • Optional message on shop and category pages.
  • Optional start and end dates for direct product and variation rules.
  • Configurable savings comparison against regular price, sale price, or the lowest price.
  • CSV import and export by product ID or SKU, with optional category filtering.
  • Dynamic category percentage discounts with multiple quantity tiers.
  • Automatic fixed-price calculation from quantity and percentage tiers.
  • Visual fixed-price and percentage rule builder for products and variations.
  • Editable category rules and configurable handling of overlapping categories.
  • Product-list columns and filters for rule type, source, category rule, and lowest tier price.
  • Product-list columns and filters for direct or missing discounts.
  • Customizable text strings from plugin settings.
  • Optional frontend styling controls with Classic, Minimal, Modern, and Custom presets.
  • Live styling preview in the plugin settings.
  • Custom colors, spacing, font sizes, tier markers, border radius, and box shadow.
  • Detailed line validation detects malformed rules, duplicate quantities, invalid values, wrong tier order, increasing prices, and prices above the selected comparison price.
  • Translation-ready code.
  • No external services or tracking.
  • HPOS compatible.
  • Includes a translation template and supports translations created with Loco Translate.

Shortcode and Block

Select “Manual shortcode or block only” to use [wdonline_qd_table] on a product page, or [wdonline_qd_table id="123"] for a specific product. The Quantity Discounts block provides the same dynamic output in the block editor. When an automatic product-page position is selected, a shortcode or block inside that product’s content is suppressed to prevent duplicate discount boxes. Shortcodes with an explicit product ID can still be used on other pages.

CSV Import and Export

The settings page can export direct product and variation rules from all products or one selected category, optionally including subcategories. Choose comma or semicolon as the CSV column separator; semicolon is recommended for many European Excel installations. The importer detects both separators automatically and supports UTF-8 files with an Excel byte-order mark. The CSV contains product ID, SKU, product name, product type, regular price, sale price, current fixed discount prices, visual rule rows, start date, and end date. Imports identify products by ID first and SKU second. Regular and sale prices can be updated for simple products and individual variations; an empty sale_price removes the sale price. Multiple tiers inside the quantity_discounts cell are always separated with semicolons. Editing quantity_discounts converts the changed tiers to fixed-price rules, while unchanged percentage rules retain their percentage type. A visible result message confirms each import and reports skipped rows. When WooCommerce’s built-in product exporter includes custom meta, this plugin also formats its quantity-discount meta with semicolons.

Category Percentage Discount

Under WD Online > WDOnline Quantity Discounts for WooCommerce, select a product category and add one or more quantity and percentage tiers. You can optionally include subcategories. Percentage prices are calculated dynamically from each product’s current comparison price. Created rules can be viewed, edited, and removed on the same page.

Direct product or variation rules take precedence over category rules. When several category rules match, choose whether the highest discount, lowest discount, most specific category, or manual rule priority wins.

Blocks

This plugin provides 1 block.

  • Quantity Discounts Display the effective quantity discount tiers for a WooCommerce product.

Installation

  1. Upload the plugin ZIP through Plugins > Add Plugin > Upload Plugin.
  2. Activate the plugin.
  3. Edit a WooCommerce product and find the Quantity discounts field in the pricing section.
  4. Add one or more tiers and choose a fixed unit price or percentage discount for each tier.
  5. Optionally enter campaign start and end dates.
  6. Go to WD Online > WDOnline Quantity Discounts for WooCommerce to configure display, CSV tools, text, and styling.

FAQ

What does 3|8 mean?

It means that when a customer buys 3 or more units, the unit price becomes 8 in the store currency.

Can I use decimal prices?

Yes. Both decimal points and decimal commas are accepted in product rules.

How do variation rules work?

Each variation has its own quantity-discount rules. The displayed tiers update when the customer selects a variation.

Which rule does a variation use?

A variation uses its own direct rules when selected. If it has no direct rules, a matching category rule can apply; rules from the parent variable product are not inherited.

Can I translate the visible text without a translation plugin?

Yes. Go to WD Online > WDOnline Quantity Discounts for WooCommerce and change the text strings directly.

Can I translate the plugin with Loco Translate?

Yes. The plugin uses the wdonline-quantity-discounts-for-woocommerce text domain and includes a translation template in its languages directory. In Loco Translate, select Plugins > WDOnline Quantity Discounts for WooCommerce and create your language file in Loco Translate’s recommended custom location.

Which placeholders can I use in the discount tier text?

Use {qty} for the minimum quantity and {price} for the formatted unit price.

Can I change the appearance of the quantity discount box?

Yes. Go to WD Online > WDOnline Quantity Discounts for WooCommerce and enable the frontend styling controls. You can choose Classic, Minimal, or Modern, or select Custom to configure colors, spacing, font sizes, tier markers, border radius, and box shadow.

Will updating change my existing design automatically?

No. Enhanced styling is disabled by default after updating, so existing stores keep the previous frontend appearance until styling is enabled.

Can savings be shown in the cart and checkout?

Yes. Under Display and pricing, choose whether to show the quantity-discount saving for each eligible item, show one combined saving in the totals, or hide savings. The setting is disabled by default.

Reviews

There are no reviews for this plugin.

Contributors & Developers

“WDOnline Quantity Discounts for WooCommerce” is open source software. The following people have contributed to this plugin.

Contributors

Changelog

1.3.17

  • Aligned the plugin directory and main plugin filename with the assigned WordPress.org slug.
  • Resolved all Plugin Check text-domain mismatch errors for the WordPress.org review package.

1.3.16

  • Aligned the translation template and text domain with the assigned WordPress.org slug.
  • Preserved all existing settings and product metadata keys for backward compatibility.

1.3.15

  • Only shows quantity-discount savings when an active quantity tier supplies the final cart item price.
  • Prevents wholesale and other pricing adjustments from being labelled as quantity-discount savings.

1.3.14

  • Renamed the plugin display name to WDOnline Quantity Discounts for WooCommerce for clearer identification and searchability.
  • Updated the administration heading, diagnostics name, support text, readme, and translation template to match.
  • Added the public WD Online product page as the Plugin URI.

1.3.13

  • Reused an existing WD Online parent menu to prevent duplicate top-level menus when other WD Online plugins are active.
  • Kept the unique wdonline-admin slug when this plugin creates the shared menu itself.

1.3.12

  • Replaced the generic shared admin-menu slug with a unique WD Online slug.
  • Strengthened CSV upload validation before imported data is read.
  • Registered frontend and administration assets before enqueueing them.

1.3.11

  • Added styling controls for the cart and checkout savings label and amount.
  • Added separate label and amount colors plus configurable font size and weight.

1.3.10

  • Added an editable cart and checkout savings label under Text settings.

1.3.9

  • Added an optional quantity-discount savings display in the cart and checkout.
  • Added a choice between savings per item and one combined saving.

1.3.8

  • Renamed the plugin to WDOnline Quantity Discounts for a more distinctive WordPress.org identity.
  • Aligned the plugin folder, main file, translation template, and text domain with the former wdonline-quantity-discounts working slug.
  • Prepared the plugin for its first WordPress.org submission.
  • Removed the non-unique Plugin URI until a public product page is available.
  • Resolved Plugin Check nonce-analysis warnings for read-only admin URL parameters.
  • Completed removal of plugin-owned product metadata during uninstall.
  • Reduced the public changelog to the initial WordPress.org release entry.