Paypal error message
Hi, I'm having issues when it comes to the order confirmation in the shop app. I've had to revert to sandbox to find out what error is. Once you go through checkout and the payment gateway is completed, The page it redirects to appears with 'sorry' as though the transaction has not gone through and then the order does not appear in the control panel. However the money has been taken. I have used the below code. is there something I'm doing wrong?
this is the debug on the orders page in the control panel
Debug on a successful payment page:
What do you have listed under Shop > Statuses?
New Order with the index of 1
That's all? None of the defaults? There should be 9 defaults from Created to Refunded.
What are they? I didn't see that in the docs
They're part of the app, they wouldn't appear in the docs because they should be there. Run this.
Where and how do I run it?
It's SQL, so you'd run it as a query against your database.
That worked, thanks Drew!
The only issue that I have now is that the variants are not showing on the orders? I have included it in the cart but it doesn't appear. Code below
On the order or in the cart? Which page function ate you using at which point of the process?
In the cart and on the order. I'm using the <?php perch_shop_cart();?> on the cart page, And I have included the product variant in the cart template but it doesn't appear. I'm guessing that because it's not pulled through the the orders because it's not on the cart?
Are you adding a variant or a parent product to the cart?
If it's not in the cart it'll never be in the order.
I'm not really sure. I think it's the parent product. See below
That looks like it's ok. What does the line entry in the cart say? Does it list the variant details?
Make sure you include
<perch:cartitem id="variant_desc" />
else you won't see that it's a variant.It still doesn't seem to be showing