The Back In Stock Settings API allows you to manage whether or not to collect requests from customers to receive back in stock notifications.
Learn more about back in stock notification settings.
It’s important to note the following points before starting to code:
collectionStates
must be set to true
. Use startCollectingRequests()
to update collection states.To use the BackInStockSettings API, install the @wix/ecom
package using npm or Yarn:
or
Then import { backInStockSettings }
from @wix/ecom
: