Jump to content

Customer Cancelling Order


Guest Ant_89

Recommended Posts

Hi,

Does anyone know if it possible to disable the option for customers to cancel their order from their account? If a customer wanted to cancel I would prefer them to call up.

Thanks

Ant

Link to comment
Share on other sites

  • 5 months later...

I have not found a way for a simple one-step solution to disallowing a customer from cancelling their order.

But if you want to try this (CC507):

1. In the file /classes/cubecart.class.php, near line 1949, find:

$order['cancel'] = (in_array($order['status'], array(1, 2))) ? true : false;


Make it like this:


$order['cancel'] = false; // (in_array($order['status'], array(1, 2))) ? true : false;


This will cause the link that cancels the order from being displayed. (See #3)



2. In the same file, near line 1915, find:


if (isset($_GET['cancel'])) {


Make it like this:


if (false) { // (isset($_GET['cancel'])) {

This will cause a direct attempt at submitting a properly formatted URL from being processed. (I think cancelling an order from the admin backend will not be hindered.)

(3.) You may wish to consider adding some sort of notice to the file /skins/name/templates/content.orders.php in a conspicuous location that mentions your request that you prefer to be contacted if an order needs to be cancelled by the customer.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...