Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improvements for "PDF document data" metabox #756

Open
MohamadNateqi opened this issue Mar 28, 2024 · 0 comments · May be fixed by #782
Open

Improvements for "PDF document data" metabox #756

MohamadNateqi opened this issue Mar 28, 2024 · 0 comments · May be fixed by #782

Comments

@MohamadNateqi
Copy link
Contributor

This https://github.com/wpovernight/woocommerce-pdf-ips-pro/pull/374 had the intention to solve the issue of not displaying generated document data in the PDF document data metabox, but it doesn't fix the underlying issue

This issue can still be reproduced when, for instance, three documents are created automatically for a specific order. Changing the priority doesn't make a difference because the issue is that these documents are being generated via AS. When changing the order status via the order edit page, these documents haven't been generated yet when the page reloads.

The only solution would be to check for pending AS actions on page loading. And display a message like 'Invoice is being generated in the background. Please reload the page to see the document data.'

It would be even better to run a callback when the action is finished and load the document data via AJAX.

This issue also has been mentioned here: https://github.com/wpovernight/woocommerce-pdf-ips-pro/issues/388.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment