﻿
=== Prevent Customers To Cancel WooCommerce Orders ===
Contributors: tychesoftwares, ashokrane
Tags: woocommerce cancel order
Author URI: https://www.tychesoftwares.com/
Requires at least: 1.3
Tested up to: 5.6
Stable tag: trunk
Requires PHP: 5.6
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Donate link: https://www.paypal.me/TycheSoftwares

This plugin prevents customers from cancelling a WooCommerce order. It will hide the Cancel button on My Account page for all user roles, except administrator.

== Description ==

This plugin prevents customers from cancelling a WooCommerce order. It will hide the Cancel button on My Account page for all user roles, except administrator.

The plugin also prevents an order from being cancelled directly via the URL.

The plugin doesn't have any settings. When activated, it will prevent all roles except the administrator to cancel any WooCommerce orders.

**Some of our Pro plugins:**

1. **[Booking & Appointment Plugin for WooCommerce](https://www.tychesoftwares.com/store/premium-plugins/woocommerce-booking-plugin/?utm_source=wprepo&utm_medium=link&utm_campaign=PreventCancelOrdersLite "Booking & Appointment Plugin for WooCommerce")**

2. **[Order Delivery Date Pro for WooCommerce](https://www.tychesoftwares.com/store/premium-plugins/order-delivery-date-for-woocommerce-pro-21/?utm_source=wprepo&utm_medium=link&utm_campaign=PreventCancelOrdersLite "Order Delivery Date Pro for WooCommerce")**

3. **[Abandoned Cart Pro for WooCommerce](https://www.tychesoftwares.com/store/premium-plugins/woocommerce-abandoned-cart-pro/?utm_source=wprepo&utm_medium=link&utm_campaign=PreventCancelOrdersLite "Abandoned Cart Pro for WooCommerce")**

4. **[Product Delivery Date Pro for WooCommerce](https://www.tychesoftwares.com/store/premium-plugins/product-delivery-date-pro-for-woocommerce/?utm_source=wprepo&utm_medium=link&utm_campaign=PreventCancelOrdersLite "Product Delivery Date Pro for WooCommerce")**

5. **[Deposits For WooCommerce](https://www.tychesoftwares.com/store/premium-plugins/deposits-for-woocommerce/?utm_source=wprepo&utm_medium=link&utm_campaign=PreventCancelOrdersLite "Deposits For WooCommerce")**

6. **[Payment Gateway Based Fees and Discounts for WooCommerce](https://www.tychesoftwares.com/store/premium-PreventCancelOrdersLite/payment-gateway-based-fees-and-discounts-for-woocommerce-plugin/?utm_source=wprepo&utm_medium=link&utm_campaign=WCDeliveryNotes "Payment Gateway Based Fees and Discounts for WooCommerce")**

7. **[Custom Order Status for WooCommerce](https://www.tychesoftwares.com/store/premium-plugins/custom-order-status-woocommerce/?utm_source=wprepo&utm_medium=link&utm_campaign=PreventCancelOrdersLite "Custom Order Status for WooCommerce")**

8. **[Custom Order Numbers for WooCommerce](https://www.tychesoftwares.com/store/premium-plugins/custom-order-numbers-woocommerce/?utm_source=wprepo&utm_medium=link&utm_campaign=PreventCancelOrdersLite "Custom Order Numbers for WooCommerce")**

9. **[Product Input Fields for WooCommerce](https://www.tychesoftwares.com/store/premium-plugins/product-input-fields-for-woocommerce/?utm_source=wprepo&utm_medium=link&utm_campaign=PreventCancelOrdersLite "Product Input Fields for WooCommerce")**

10. **[Call for Price for WooCommerce](https://www.tychesoftwares.com/store/premium-plugins/woocommerce-call-for-price-plugin/?utm_source=wprepo&utm_medium=link&utm_campaign=PreventCancelOrdersLite "Call for Price for WooCommerce")**

11. **[Price based on User Role for WooCommerce](https://www.tychesoftwares.com/store/premium-plugins/price-user-role-woocommerce/?utm_source=wprepo&utm_medium=link&utm_campaign=PreventCancelOrdersLite "Price based on User Role for WooCommerce")**

12. **[Currency per Product for WooCommerce](https://www.tychesoftwares.com/store/premium-plugins/currency-per-product-for-woocommerce/?utm_source=wprepo&utm_medium=link&utm_campaign=PreventCancelOrdersLite "Currency per Product for WooCommerce")**

**Some of our other free plugins:**

1. **[Abandoned Cart for WooCommerce](https://wordpress.org/plugins/woocommerce-abandoned-cart/ "Abandoned Cart for WooCommerce")**

2. **[Order Delivery Date for WooCommerce - Lite](https://wordpress.org/plugins/order-delivery-date-for-woocommerce/ "Order Delivery Date for WooCommerce - Lite")**

3. **[Product Delivery Date for WooCommerce - Lite](https://wordpress.org/plugins/product-delivery-date-for-woocommerce-lite/ "Product Delivery Date for WooCommerce")**

4. **[WooCommerce Print Invoice & Delivery Note](https://wordpress.org/plugins/woocommerce-delivery-notes/ "WooCommerce Print Invoice & Delivery Note")**

5. **[Payment Gateway Based Fees and Discounts for WooCommerce](https://wordpress.org/plugins/checkout-fees-for-woocommerce/ "Payment Gateway Based Fees and Discounts for WooCommerce")**

6. **[Custom Order Status for WooCommerce](https://wordpress.org/plugins/custom-order-statuses-woocommerce/ "Custom Order Status for WooCommerce")**

7. **[Custom Order Numbers for WooCommerce](https://wordpress.org/plugins/custom-order-numbers-for-woocommerce/ "Custom Order Numbers for WooCommerce")**

8. **[Product Input Fields for WooCommerce](https://wordpress.org/plugins/product-input-fields-for-woocommerce/ "Product Input Fields for WooCommerce")**

9. **[Call for Price for WooCommerce](https://wordpress.org/plugins/woocommerce-call-for-price/ "Call for Price for WooCommerce")**

10. **[Price based on User Role for WooCommerce](https://wordpress.org/plugins/price-by-user-role-for-woocommerce/ "Price based on User Role for WooCommerce")**

11. **[Currency per Product for WooCommerce](https://wordpress.org/plugins/currency-per-product-for-woocommerce/ "Currency per Product for WooCommerce")**

== Installation ==

Method 1:
<ol>
<li> Go to WordPress Dashboard->Plugins->Add New </li>
<li> Search Prevent Customers To Cancel WooCommerce Orders using search option </li>
<li> Find the plugin and click Install Now button </li>
<li> After installation, click on Activate Plugin link to activate the plugin. </li>
</ol>

Method 2:
<ol>
<li> Download the plugin file woocommerce-prevent-cancel-order.zip </li>
<li> Unpack the woocommerce-prevent-cancel-order.zip file and extract the woocommerce-prevent-cancel-order folder </li>
<li> Upload the plugin folder to your /wp-content/plugins/ directory </li>
<li> Go to WordPress dashboard, click on Plugins from the menu </li>
<li> Locate the Prevent Customers To Cancel WooCommerce Orders plugin and click on Activate link to activate the plugin. </li>
</ol>

Method 3:
<ol>
<li> Download the plugin woocommerce-prevent-cancel-order.zip </li>
<li> Go to WordPress Dashboard-Plugins-Add New </li>
<li> Click on Upload Plugin link from top </li>
<li> Upload the downloaded woocommerce-prevent-cancel-order.zip file and click on Install Now </li>
<li> After installation, click on Activate Plugin link to activate the plugin. </li>
</ol>

== Frequently Asked Questions ==

= Where are the options for this plugin in admin? =

This plugin currently has no settings in admin. Upon activation, all roles except administrator will not be able to cancel WooCommerce orders.

= Can I prevent some other roles apart from administrator to be able to cancel the order? =

Currently it is not possible to specify additional roles.

= Does this plugin have a Pro version? =

Currently there is no Pro version of this plugin.


== Screenshots ==

1. Cancel button hidden for Customer on My Account page.


== Changelog ==

= 1.2 (16.11.2019) =
* Updated plugin as per WPCS standards.

= 1.1 (04.05.2017) =
* Changed priority of function in the plugin so it executes after other plugins have done their actions.

= 1.0 (04.05.2017) =
* Initial release.

== Upgrade Notice ==
Initial release

