Store JS API

Duda's native product catalog is built on top of the collection infrastructure.

This means that the product catalog can be filtered, sorted, searched and paginated in the same manner as the Collections JS API.


The Store JS API is initialized in the same manner as the Collections JS API

dmAPI.loadCollectionsAPI().then(api => {
	// do something with API

Once the collection has been initialized, use the method storeData.

  • To access the product catalog, pass catalog_product as the collection name.
  • To access the product categories, pass catalog_category as the collection name.
api.storeData("catalog_product").get().then(data => {...})