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
  • Location
  • Snippet

Was this helpful?

  1. Discount Ninja Developer Hub
  2. Theme edits
  3. Code edits
  4. Cart

Promo Code Field

PreviousCart itemNextPromotion Summary

Last updated 5 months ago

Was this helpful?

Do not enable the Promo Code Field widget using a code edit if your theme supports App Blocks. Please refer to for instructions on using the App Block.

Location

The Promo Code Field widget displays a field similar to the native discount code field available at checkout. It accepts Discount Ninja promo codes and Shopify discount codes.

Place it below the subtotal on your cart page and drawer cart.

Snippet

Use the following snippet to add the Promo Code Field widget:

{% comment %}
The placeholder below is used by Limoni Apps Discount Ninja to 
display the cart promotion code field configured in the settings of the app.
This widget can be configured or disabled in the app.
{% endcomment %}
<div data-la-dn-promocodefield-placeholder></div>
this section