I'll break down the issue I have:
I login as an admin to my woocommerce platform and manually create an order for a customer. From the admin panel, i trigger the sending of the order invoice by clicking on the select option as shown in the screenshot below:
This will send an order invoice to the customer with summary of the order and a payment link that the customer can click on to make payment for the order.
Below is a screenshot of the invoice the customer receives:
This is where I'm facing issues. This is what happens:
- If the customer clicks on the Pay for this order link, if they're already logged in to the site, they'll be redirected to the order-pay page without a problem, where they can now pay for the order. This is the order-pay page they'll be redirected to:
Everything works fine.
- If the customer clicks on the Pay for this order link and they are not logged in to the site, they'll be prompted to login as shown below:
This is where the issue is: after the customer logs in, instead of being redirected to the order-pay page, they're redirected to the cart page and this is what they get:
I can't seem to figure out why this happens. Why after login, the customer is not directed to the order pay form for that order so they can make payment.