Documentation

Here is flow to test

insertOrder script is called by the pwOrder/util script which will insert order into 3dc database

Cron script will periodically check updates from pw and update accordingly

Ship tracking is another script which will call hook from pw to ship_order.php and will send emails to customers

Run following in your browser by providing pw_order_id and new_run=1, where new_run=1 means to reset order and all its items to Status = New

http://prima2go.com/3dcpwupdates/run-test.php?pw_order_id=204044&new_run=1

you will see the logs what it is doing

Then you can run it without new_run=1, so it doesn't reset status to New to check it again as

http://prima2go.com/3dcpwupdates/run-test.php?pw_order_id=204044

and now it shouldn't show any log if order is already completed

Reference

Running orders

https://prima2go.com/3dcpwupdates/running_orders.php

Archive Orders

https://prima2go.com/3dcpwupdates/archive.php