Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

Function Discount Not showing discount message in Checkout

Function Discount Not showing discount message in Checkout

sanjar
Shopify Partner
21 1 2

Here is my output: 

{
  "discounts": [
    {
      "message": "20% OFF VIP CUSTOMER",
      "targets": [
        {
          "productVariant": {
            "id": "gid://shopify/ProductVariant/XXXXX",
            "quantity": 2
          }
        }
      ],
      "value": {
        "percentage": {
          "value": 20
        }
      }
    }
  ],
  "discountApplicationStrategy": "ALL"
}

And in Checkout it only shows Discount Code, but not custom message.  Maybe there are some other pre-requisites I'm missing?

Reply 1 (1)

serkanboztepe
Shopify Partner
23 0 1

Is the combination selected for the special discount? Could it conflict with other discounts?

- Need a Shopify developer? Chat on WhatsApp +90-5453606783
- Coffee Tip: Buymeacoffee  | Email: serkanboztepe02@gmail.com
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
Best regards,
Serkan Boztepe