Coder Social home page Coder Social logo

nechodom / discount-on-cheapest-product Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 29 KB

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

Home Page: https://www.nechodom.cz

License: GNU General Public License v3.0

PHP 100.00%
woocommerce-payment woocommerce-plugin woocommerce-products woocoommerce wordpress-plugin opensource wordpress wordpress-development

discount-on-cheapest-product's Introduction

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

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.

discount-on-cheapest-product's People

Contributors

nechodom avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.