Coder Social home page Coder Social logo

woocommerce / woocommerce-subscriptions-cancel-on-refund Goto Github PK

View Code? Open in Web Editor NEW
17.0 9.0 1.0 19 KB

Cancel a subscription when the most recent order is fully refunded. Both refunds on a parent or renewal order will trigger cancellation, as long as it is the most recent order.

License: GNU General Public License v3.0

PHP 100.00%

woocommerce-subscriptions-cancel-on-refund's Introduction

IMPORTANT: This code is made available in the hope that it will be useful, but without any warranty. See the GNU General Public License included with the code for more details. Automattic or WooCommerce support services are also not available to assist with the use of this code.

WooCommerce Subscriptions - Cancel on Refund

Cancel a subscription when its parent order or last renewal order is fully refunded.

The subscription will be transitioned immediately to the cancelled status. It will not go via pending cancellation.

If the refund is not on the most recent order, the subscription will not be cancelled. For example, if a subscription has both a renewal order and a parent order, and only the parent order is refunded.

Installation

To install:

  1. Download the latest version of the plugin here
  2. Go to Plugins > Add New > Upload administration screen on your WordPress site
  3. Select the ZIP file you just downloaded
  4. Click Install Now
  5. Click Activate

Updates

To keep the plugin up-to-date, use the GitHub Updater.

Reporting Issues

If you find an problem or would like to request this plugin be extended, please open a new Issue.


woocommerce-subscriptions-cancel-on-refund's People

Contributors

thenbrent avatar

Stargazers

Ryan Ray avatar MAD CITY MULTIMEDIA avatar Mike Bowyer avatar Brock Martin avatar  avatar Sébastien Dumont avatar The Perfect Will avatar Tyler Richards avatar Saul Sampson avatar Hiranthi Herlaar avatar Robert C avatar Adam Ellis avatar Kai Mindermann, M.Sc. avatar Leho Kraav avatar Maciej Swoboda avatar  avatar Luke Cavanagh avatar

Watchers

Leho Kraav avatar  avatar Jason Conroy avatar Sébastien Dumont avatar James Cloos avatar Nick avatar  avatar  avatar MAD CITY MULTIMEDIA avatar

Forkers

theperfectwill

woocommerce-subscriptions-cancel-on-refund's Issues

Partial refund

Hi,
Does the plugin support partial refunds?
Let's say you want to refund only the remaining days (for example) before a subscription ends.
Thanks in asvance!

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.