This mini plugin enables you to add a table with a quantity range and discount for each range using repeatable rows on a per product basis for simple and variable products in WooCommerce. The plugin :
- Adds 3 fields for table headers so you can name your table headers anything you like on a per product basis.
- Adds a field for minimum quantity, a field for maximum quantity and a field for a discount percentage.
- Enables you to add and remove repeatable rows by the click of a button.
- Works on both simple and variable products as seen in the demo video.
- Includes both a admin.css and style.css file for styling both the front and backend.
- Enables you to copy & paste the code to your child themes functions file so you can use it as a plugin or custom code in a theme.
Demo Video
Shows the fields displaying on both single and variable product types when enabling the checkbox. Shows custom table headers, min max quantity ranges and discount percentages added on a per product basis.
Installation
Simple one click installation as any other plugin. If you’d like to use the code in your theme rather use a plugin, copy and paste the PHP code into uyour child themes functions file and the CSS to your additional CSS field or child themes stylesheet. You can then remove the PHP code for loading the 2 style sheets inside the plugin.
Table Columns
Note: If you want to display your quantity range like you see in the following screenshot, contact me and i’ll do it for you as the code is already included to do this.


Need something a bit different?
Not exactly what you’re looking for?
You must be logged in to post a comment.