Skip to content

sfcc-solutions-share/composable-external-promotion-demo

Repository files navigation

Custom Promotions

A demo of implementing custom external promotions with Salesforce Commerce Cloud and PWA Kit.

  • Custom product hooks for shopper-products
  • Custom basket calculation based on external promotions
  • Custom endpoint, intended for MRT, implementing mock promotion services

Development

Prerequisites

npm ci
# setup your dw.json file
npm run migrate
npm start

Adding Endpoint

  • Add or update relevant file in app/endpoints
  • Include method and paths as function attribute
  • Import in ENDPOINTS var in ssr.js
  • Update app/swagger.yaml with OAS 3 spec

Deploy

npm run push

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors