Discount Ninja
  • Discount Ninja Developer Hub
    • Storefront API
      • Promotion Engine
        • Enable
        • JavaScript API
          • Functions
          • Events
          • Objects
      • Widgets
        • Guiding principles
          • Accessibility
          • Localization
          • Integration
          • Style
        • Announcement Bar
        • Notification
        • Offer Rules Popup
        • Product Banner
        • Promotion Summary
        • Promotion Code Field
        • Promotional Badge
    • Integration
    • Theme edits
      • App blocks
        • Product Page Banner
        • Promo Code Field
        • Promotion Summary
      • Code edits
        • Product Detail Page (PDP)
          • Price
          • Banner
          • Badge
        • Product List Page (PLP) and Collections
          • Attributes
          • Price
            • Searchanise Search & Filter
            • Globo Smart Product Filter & Search (aka SPF)
            • AI Search & Product Filter (Ultimate Search)
            • Boost AI Search & Filter (aka PFS)
          • Badge
          • Pagination
          • Quick View
        • Cart
          • Root
          • Cart item
          • Promo Code Field
          • Promotion Summary
          • Subtotal
        • Gift With Purchase
Powered by GitBook
On this page

Was this helpful?

  1. Discount Ninja Developer Hub
  2. Storefront API
  3. Promotion Engine

JavaScript API

Documentation of the JavaScript API that can be used to extend Discount Ninja's Promotion Engine.

PreviousEnableNextFunctions

Last updated 4 months ago

Was this helpful?

The documentation below describes the API as of version 9.x of the script.

Documentation

  • : documents all properties and functions available in the public API

  • : documents the events published and subscribed to by the Price Rule Engine

  • : documents the objects returned by the functions and properties

Functions
Events
Objects