Skip to content

Instantly share code, notes, and snippets.

@wzieba
Created November 10, 2022 16:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wzieba/bdc12e68349de5c9320b2418872a8a64 to your computer and use it in GitHub Desktop.
Save wzieba/bdc12e68349de5c9320b2418872a8a64 to your computer and use it in GitHub Desktop.
sequenceDiagram

autonumber
participant mobile as Woo Mobile App
participant core as WooCommerce Core

mobile->>mobile:generate list of possible variations
loop Until all variations created
mobile->>core:products/<id>/variations/batch
note right of mobile: "with JSON of **max 100** generated variations ☝️"
	core->>core:create variations
	core->>mobile:inform about success
	mobile->>mobile:sync local state & request creating new variations
end
core->>mobile:inform user about created variations
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment