Skip to content

After purchasing a shipping label logic #14053

Closed
@atorresveiga

Description

@atorresveiga

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

Metadata

Metadata

Assignees

Labels

category: woo extensionsRelated to WC extensions or plugins.feature: shipping labelsRelated to creating, ordering, or printing shipping labels.type: taskAn internally driven task.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions