marianokit / magento-w2p

Automatically exported from code.google.com/p/magento-w2p
0 stars 0 forks source link

500 on orders #238

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Do not allow orders to go through without a successful reply from ZP. 

Original issue reported on code.google.com by zetapri...@gmail.com on 16 Jun 2010 at 5:53

GoogleCodeExporter commented 8 years ago

Original comment by Anatoly....@gmail.com on 23 Jun 2010 at 11:46

GoogleCodeExporter commented 8 years ago
Need to somehow break the order complete on ZetaPrint side to test it.

Test it on magento (DEV)

Original comment by Anatoly....@gmail.com on 24 Jun 2010 at 9:06

GoogleCodeExporter commented 8 years ago

Original comment by Anatoly....@gmail.com on 25 Jun 2010 at 3:28

GoogleCodeExporter commented 8 years ago
OK, change of plans.
We need to capture saved order id for tracing and make a failed order as 
PROBLEMS with a comment "File generation failed. Please, contact us.".

In the end, the order goes through. Hopefully the admin can trace the orders 
and fix them. Otherwise they will need to issue a refund.

Original comment by zetapri...@gmail.com on 25 Jun 2010 at 3:38

GoogleCodeExporter commented 8 years ago

Original comment by zetapri...@gmail.com on 30 Jun 2010 at 4:32

GoogleCodeExporter commented 8 years ago

Original comment by Anatoly....@gmail.com on 30 Jun 2010 at 8:20

GoogleCodeExporter commented 8 years ago
api-order-complete has a new param (IDs) to pass the final order ID (a GUID 
generated by mage).

We need to: 
1. store saved order id and final order id
2. act differently depending on success or failure

On success:
1. delete saved order id
2. use the final order ID in the link to order details on ZP

On failure:
1. send a request to ZP to see if the saved order still exists
   exists: try once more to complete the order
   not exists: check if the final order was created with the final order id and act as if "success"

2. if all failed and the saved order still exists: use saved order id in the 
link to ZP order under "Saved order" link. Mark it as "PROBLEMS" to inform the 
admin.

3. if all failed and neither saved order nor the final order exist it is a bug 
and we need to know about it. Present a message to the admin: "Failed order. 
Contact admin@zetaprints.com ASAP to resolve."

Grrrr
Home it all makes sense.
A diagram would be good here.

The point is that we need to have some sort of a link to the order on ZP and 
the link must be valid. The admin shouldn't be combing through a pile of orders 
trying to find the right one. 

Original comment by zetapri...@gmail.com on 30 Jun 2010 at 9:13

GoogleCodeExporter commented 8 years ago

Original comment by zetapri...@gmail.com on 30 Jun 2010 at 9:47

GoogleCodeExporter commented 8 years ago

Original comment by Anatoly....@gmail.com on 4 Jul 2010 at 11:44

GoogleCodeExporter commented 8 years ago
Test it on magento (DEV)

Original comment by Anatoly....@gmail.com on 6 Jul 2010 at 5:11

GoogleCodeExporter commented 8 years ago
Please provide testing instructions

Original comment by agur...@gmail.com on 7 Jul 2010 at 12:17

GoogleCodeExporter commented 8 years ago
You have to simulation some error situations on ZetaPrints side while 
completing the order. Don't know how you can do it.

Original comment by Anatoly....@gmail.com on 7 Jul 2010 at 5:36

GoogleCodeExporter commented 8 years ago
Easy.
Create a new template. Import it. Generate a preview. Add to cart. Go to 
checkout. Kill the template on ZP just before checking out. It will come back 
with an error.

Original comment by zetapri...@gmail.com on 8 Jul 2010 at 5:53

GoogleCodeExporter commented 8 years ago
Issue 243 has been merged into this issue.

Original comment by zetapri...@gmail.com on 8 Jul 2010 at 10:41

GoogleCodeExporter commented 8 years ago
Folowed the instructions.
Added the product to my cart and deleted the template from w2p site before 
clicking "Proceed to checkout". Checkout was not interrupted and I didn't see 
any err messages in the ordering process.

Got this err (err.png) when I clicked re-order or when I try to navigate to the 
template again. there's also no err message in order details page in M admin. 
What am I suppose to see and where?

Original comment by agur...@gmail.com on 8 Jul 2010 at 3:42

Attachments:

GoogleCodeExporter commented 8 years ago
I suggest we test it together. I'll keep an eye on ZP logs to see what's 
happening there. If the template was deleted and an order went through OK with 
all the files generated then it wasn't this template anyway. Double-check. 

Original comment by zetapri...@gmail.com on 9 Jul 2010 at 1:42

GoogleCodeExporter commented 8 years ago
The change in behavior must be described in a Wiki.
It's pretty much a copy n paste from the task description.
We need to know what happens and when.
How the status changes, what comes through and what doesn't.

The testing can resume after that.

Original comment by zetapri...@gmail.com on 9 Jul 2010 at 10:17

GoogleCodeExporter commented 8 years ago
Probably make a separate page.
CheckOutProcess

Put the info on upselling there too.
We need to describe what happens when they click on the upsell, etc.

Original comment by zetapri...@gmail.com on 9 Jul 2010 at 10:20

GoogleCodeExporter commented 8 years ago
Wiki page is CheckOutProces

Original comment by Anatoly....@gmail.com on 14 Jul 2010 at 11:15

GoogleCodeExporter commented 8 years ago
The only hint of an err order I get is the "Template currently unavailable" 
message in the order details page on w2p site and the missing output file links 
from the order details page in M admin.
Still get the same err as in comment #15 once I click reorder.

Status is "Pending" in M admin and "Saved" on w2p site. I don't see any 
"Problems" status as a customer or as an admin.

Original comment by agur...@gmail.com on 14 Jul 2010 at 4:05

GoogleCodeExporter commented 8 years ago

Original comment by zetapri...@gmail.com on 15 Jul 2010 at 3:34

GoogleCodeExporter commented 8 years ago
A bug was fixed. Please, test it again.

Original comment by Anatoly....@gmail.com on 15 Jul 2010 at 10:42

GoogleCodeExporter commented 8 years ago
1. Personalized a product and updated the preview
2. Added the product to my shopping cart
3. Deleted the template from the w2p site
4. Proceeded to the checkout and placed the order in the store
5. Order status shows up as "Problems" in order list on Magento admin panel 
(orders_list.png)
6. Order status shows as "Problems" in Order details page on M admin panel and 
the output files are missing, leaving just the link to order details page on 
w2p site (problems.png)
7. Order details page on w2p site shows the order under "Saved" status.

Original comment by agur...@gmail.com on 15 Jul 2010 at 11:55

Attachments:

GoogleCodeExporter commented 8 years ago

Original comment by zetapri...@gmail.com on 16 Jul 2010 at 11:33