Skip to content

BackInStockModule

Module in @evolve-framework/commercetools

"Mail me when it is back": shoppers sign up for a sold-out variant, are sent a confirmation with a link to withdraw, and createBackInStockHandler mails them once commercetools reports stock.

import { BackInStockModule } from "@evolve-framework/commercetools";

Serves the Back in stock part of the GraphQL API: productVariantBackInStockSubscribe, productVariantBackInStockUnsubscribe, productVariantBackInStockUnsubscribeByToken.

new BackInStockModule(options: WithClientFactory & { notificationClient?: UserNotificationClient | undefined; })

Extends AbstractModule<CommercetoolsLoaderContext>.