Hi,
No, I didn't get any IOPN notifications and it's because of the Super Orders' bug I mentioned in my last post, plus, I have no idea how to tell if my cron job is working or not. I think it may be working now, but as I posted in an earlier post about my cron jobs, I don't know if my latest result using CURL means it's working or not. If there's a way to test if cron is actually doing what it's supposed to, that would be great.
Also, I'd really like clarification about IOPN and Cron. Is it true that when you're using IOPN that the cron job is just a backup if IOPN fails and is serving no function if IOPN is working correctly?
Now the solution to my Super Orders problem, which I solved very easily and it seems to be working perfectly, but it's a real hack. Again, if you are using Super Orders you will have to do what I did, or something similar, to make this work.
In checkout_by_amazon_admin.php search for "FILENAME_ORDERS".
Existing code:
Code:
//ajaxFunction();
// -->
</script>
<? echo zen_draw_form('amazon_payments', FILENAME_ORDERS, zen_get_all_get_params(array('action')) . 'action=doVoid', 'post', '', true) . zen_hide_session_id(); ?>
The constant FILENAME_ORDERS is changed from 'orders' to 'super_orders" when Super Orders is installed. The problem is that super_orders.php does not contain the switch statement "doVoid" that the Amazon checkout code is calling, it's only in orders.php. So all I did was take the constant out and hard-coded 'orders' in the function call.
New Code:
Code:
//ajaxFunction();
// -->
</script>
<? echo zen_draw_form('amazon_payments', 'orders', zen_get_all_get_params(array('action')) . 'action=doVoid', 'post', '', true) . zen_hide_session_id(); ?>
This seems to be working perfectly. I was able to Cancel my order with the display in the order details page updating immediately saying it was processing the cancel, and when it was completed it correctly updated the ZC order detail page and it was also correct in Amazon Seller Central saying it was cancelled successfully.
Bookmarks