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

After purchasing a shipping label logic #14053

Open
atorresveiga opened this issue Sep 26, 2024 · 1 comment
Open

After purchasing a shipping label logic #14053

atorresveiga opened this issue Sep 26, 2024 · 1 comment
Labels
category: woo extensions Related to WC extensions or plugins. feature: shipping labels Related to creating, ordering, or printing shipping labels. type: task An internally driven task.

Comments

@atorresveiga
Copy link

The purchase label probably won't happen immediately, and it passes through different states: PURCHASE_IN_PROGRESS and then PURCHASED. To display the status of the shipping labels, we should pull the label status using the endpoint GET /wcshipping/v1/label/purchase/{order_id}

We should follow this pull strategy:

We should have the mocks on how the UI will behave while the status is different than PURCHASED, but in the mean time these are the design recommendations:

I should mock this up but in the meantime, can you put the print button here into a loading state, and change the top text to something about loading

More context:
https://a8c.slack.com/archives/C05VBLKHHV1/p1727367981691889
https://woomobilep2.wordpress.com/2021/03/18/shipping-labels-purchase-api/
https://a8c.slack.com/archives/C02KUCFCSFP/p1724411724439349?thread_ts=1724258545.625349&cid=C02KUCFCSFP

@dangermattic
Copy link
Collaborator

dangermattic commented Sep 26, 2024

Thanks for reporting! 👍

@atorresveiga atorresveiga added type: task An internally driven task. category: woo extensions Related to WC extensions or plugins. feature: shipping labels Related to creating, ordering, or printing shipping labels. labels Sep 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category: woo extensions Related to WC extensions or plugins. feature: shipping labels Related to creating, ordering, or printing shipping labels. type: task An internally driven task.
Projects
None yet
Development

No branches or pull requests

2 participants