Jump to content

Beta Testers Wanted: Make Payment on Pending Order


Recommended Posts

A solution to the Github issue #2606 "Can't Complete Payment of a Pending Order" is being tested.

It works for me, but I need others to try and break it.

The scenario is this:

  • The store is set to decrement stock when the order moves to the Pending state.
  • The customer has not already made any attempt at making payment.
  • The customer understands that the order is now fixed - it cannot be changed.
  • The admin understands that the one-of-a-kind item is in the customer's basket - out of stock for all others.

The problem has been that when CubeCart, at checkout, verifies the contents of a basket, stock levels are checked, and now determining that the item is out of stock, removes it from the basket.

This solution is to deny CubeCart from verifying the basket, based on certain conditions ('finalizing' a checkout). Nor allowing the basket contents to be changed.

The process starts at the customer's Order History. Eligible orders have a button "Complete Payment" which takes then straight to checkout.

Note:  choosing a payment gateway at checkout (such as POF) makes the order ineligible for "Complete Payment".

Note: This may also provide a means for an administratively-created customized order to allow the customer to Complete Payment", but I have not tried this as yet.

The attachment is a compressed text file containing the necessary code changes.



Link to comment
Share on other sites

  • 10 months later...

Join the conversation

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

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