Plugin Name: Discount for Cheapest Product
Description: Provides a discount for the cheapest product when a specified number of products are in the cart.
Version: 1.3
Author: Matěj Kevin Nechodom
This WordPress plugin provides a discount for the cheapest product in the cart when a specified number of products are in the cart. The discount percentage, the minimum number of products required to activate the discount, and the discount text can be set in the plugin settings.
- Apply a discount to the cheapest product in the cart.
- Set the discount percentage in the plugin settings.
- Set the minimum number of products required to activate the discount.
- Customize the discount text.
- Enable or disable the discount through the plugin settings.
- Download the plugin zip file.
- Go to your WordPress dashboard, navigate to Plugins > Add New > Upload Plugin.
- Select the downloaded zip file and click "Install Now".
- Activate the plugin through the 'Plugins' menu in WordPress.
- Go to Settings > Discount Settings to configure the plugin.
- After activation, go to Settings > Discount Settings.
- Enable the discount by checking the "Enable Discount" checkbox.
- Set the discount percentage in the "Discount Percentage" field.
- Set the minimum number of products required to activate the discount in the "Minimum Products in Cart" field.
- Customize the discount text in the "Discount Text" field.
- Save changes.
The discount will now be applied to the cheapest product in the cart when the specified number of products are added to the cart.
- Added option to customize the discount text.
- Added option to set the minimum number of products required to activate the discount.
- Added option to set the discount percentage in the plugin settings.
- Initial release with the basic functionality to apply a 100% discount to the cheapest product when 3 products are in the cart.
Go to Settings > Discount Settings and check the "Enable Discount" checkbox.
Go to Settings > Discount Settings and enter the desired percentage in the "Discount Percentage" field.
Go to Settings > Discount Settings and enter the desired number in the "Minimum Products in Cart" field.
Go to Settings > Discount Settings and enter the desired text in the "Discount Text" field.
This project is licensed under the GNU General Public License v3.0 (GPL-3.0).
Developed by Matěj Kevin Nechodom.