Error: This item cannot be paid for.


I have purchased this plugin and it works well. Ran into an issue today where an order was placed as Pay Later. The Shop Admin goes back to the Woocommerce Orders screen and selects "Customer payment page" and this error message displays on the web front end. What is causing this issue?



Add Comment
1 Answer(s)

RESOLVED - I figured this out. Upgrading to the latest version of Woocommece broke the functionality of allowing an admin to pay for an order not owned by them. You have to comment out the following lines of code in woocommerce/includes/shortcodes/class-wc-shortcode-checkout.php:


// Logged in customer trying to pay for someone else's order.
//if ( ! current_user_can( 'pay_for_order', $order_id ) ) {
// throw new Exception( __( 'This order cannot be paid for. Please contact us if you need assistance.', 'woocommerce' ) );

Answered on February 21, 2018.

Great... Glad you figured it out 🙂

We will check this out on our side and made sure it works.


on February 22, 2018.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.