Coupon / Discount Description

Is there a way in Shopify to attach a description to the Discounts object, so that when configured in the admin, a description can be paired with a discount. Effectively showing a message to a customer in the cart when a discount is active.

We have our cart coupon code checker working via the

{discount/{code}

snippet & we noticed shopify does not allow custom metafields on the Discounts page.

The biggest challenge is that discount_application in Liquid neither gives you access to the ID, nor the metafields of the original discount.

If it did, then you could try calling metafieldsSet() on your discount, then querying the value of that metafield in Liquid.

As a workaround, you could maybe store a metafield on the shop itself, an object where each key-value pair corresponds to the title of a discount, and then use that for lookups.

Best,

Tobe

gotchaaa, yeah that sounds like might be the only way. Thank you so much for your suggestion! Bummer it’s not out of the box Shopify, but this will have to do for now. Really appreciate it