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
  • Discount Ninja's storefront components
  • Extending and integrating
  • Widgets

Was this helpful?

  1. Discount Ninja Developer Hub

Storefront API

This section documents the API available to theme developers and app developers to interact with Discount Ninja on a Shopify storefront.

NextPromotion Engine

Last updated 1 year ago

Was this helpful?

Discount Ninja's storefront components

Discount Ninja includes frontend components that interact with the storefront and allow the app to:

  • Discover available promotions based on the user's context

  • Calculate discounts for products based on applicable promotions

  • Apply those discounts to the products displayed on the storefront on the product pages (PDP), collection pages (PLP) and the cart

The key storefront component is the Price Rule Engine, documented .

Extending and integrating

Check out our if you want to extend the capabilities of Discount Ninja's Price Rule Engine or integrate it with your theme or your app.

The functions and events provided by the JavaScript API can be used to integrate with:

  • custom drawer carts

  • subscription apps

  • loyalty apps

  • ...

Widgets

Additionally, the app includes components that help to increase Average Order Value and increase Conversion Rate by effectively displaying promotions using widgets.

Learn more about widgets .

here
JavaScript API
here