This PR improves the way document data are displayed in the metabox. It includes a check for pending jobs and displays a message if the document is still in the queue. It also adds an AJAX request that refreshes document data, eliminating the need to refresh the page.
close https://github.com/wpovernight/woocommerce-pdf-invoices-packing-slips/issues/756
This PR improves the way document data are displayed in the metabox. It includes a check for pending jobs and displays a message if the document is still in the queue. It also adds an AJAX request that refreshes document data, eliminating the need to refresh the page.
Note: For the Pro extension compatibility, this branch should be used: https://github.com/wpovernight/woocommerce-pdf-ips-pro/pull/407
For test purposes, the below snippet can be used to stop the queue from running jobs:
Then, the job can be manually run to test the AJAX update.