storeAPI is mostly events based. As a user of this plugin, you will have to register listeners to changes happening to the products you register.
when()method. It allows you to be notified of changes to one or a set of products using a query mechanism:
updatedevent is fired whenever one of the fields of a product is changed (its
ownedstatus for instance).
verbosityproperty defines how much the code in the
store.jsfile writes to the console. Available values:
0to disable all logging (default)
1to show only the error messages
2to show also the warnings
3to show also the information messages
4to show also the internal debugging messages.
store.ready()without arguments will return the