Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/nechodom/discount-on-cheapest-product

This WordPress plugin provides a discount for the cheapest product in the cart when a specified number of products are in the cart.
https://github.com/nechodom/discount-on-cheapest-product

opensource woocommerce-payment woocommerce-plugin woocommerce-products woocoommerce wordpress wordpress-development wordpress-plugin

Last synced: about 23 hours ago
JSON representation

This WordPress plugin provides a discount for the cheapest product in the cart when a specified number of products are in the cart.

Awesome Lists containing this project

README

        

# Discount for Cheapest Product Plugin

**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

## Description

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.

## Features

- 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.

## Installation

1. Download the plugin zip file.
2. Go to your WordPress dashboard, navigate to Plugins > Add New > Upload Plugin.
3. Select the downloaded zip file and click "Install Now".
4. Activate the plugin through the 'Plugins' menu in WordPress.
5. Go to Settings > Discount Settings to configure the plugin.

## Usage

1. After activation, go to Settings > Discount Settings.
2. Enable the discount by checking the "Enable Discount" checkbox.
3. Set the discount percentage in the "Discount Percentage" field.
4. Set the minimum number of products required to activate the discount in the "Minimum Products in Cart" field.
5. Customize the discount text in the "Discount Text" field.
6. 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.

## Screenshots

### Settings Page
![Settings Page](https://i.imgur.com/P0tf2EE.png)

## Changelog

### 1.3
- Added option to customize the discount text.

### 1.2
- Added option to set the minimum number of products required to activate the discount.

### 1.1
- Added option to set the discount percentage in the plugin settings.

### 1.0
- Initial release with the basic functionality to apply a 100% discount to the cheapest product when 3 products are in the cart.

## Frequently Asked Questions

### How do I enable the discount?
Go to Settings > Discount Settings and check the "Enable Discount" checkbox.

### How do I set the discount percentage?
Go to Settings > Discount Settings and enter the desired percentage in the "Discount Percentage" field.

### How do I set the minimum number of products required to activate the discount?
Go to Settings > Discount Settings and enter the desired number in the "Minimum Products in Cart" field.

### How do I customize the discount text?
Go to Settings > Discount Settings and enter the desired text in the "Discount Text" field.

## License

This project is licensed under the GNU General Public License v3.0 (GPL-3.0).

## Credits

Developed by Matěj Kevin Nechodom.