Introduction

Note: This service plugin is currently in beta and is subject to change.

The eCommerce Custom Discount Triggers service plugin (formerly SPI) allows you to provide custom triggers that specify when an item can be discounted.

Custom triggers play a part in the definition of discount rules - sets of triggers and scopes that together define the necessary conditions for a discount to apply to items in the cart/checkout.

Before you begin

To use a custom trigger:

Learn more:

To add a service plugin

  1. Add the plugin to your site.
  2. Update the getConfig() function in the -config.js file that is added to your site during step 1.
  3. Update the listTriggers() and getEligibleTriggers() functions in the .js file that is added to your site during step 1.
Did this help?