Development discussions around Shopify APIs
I hope this got directly to developers. Thank you for your attention...
In Admin panel, your can add special variables to your thank you page (Settings> Checkout> Order processing> Additional scripts). There is a variable for discount type ( {{discount.type}} ). Cool.
The problem is that the Thank you page has a JS object Shopify.checkout which also has a lot of useful info, it even has some info about discount (Shopify.checkout.discount.code) but the type is not available.
To make work with code pushed by webhooks easier (as I cannot use {{discount.type}} there) it would be great to have the same options in Shopify.checkout object. If not all, please add discount type if possible.
Thank you,
Martin
May we have a developer response to this?
Any reply here, preferrably from developers?
User | RANK |
---|---|
48 | |
11 | |
8 | |
6 | |
6 |
Thanks to all who participated in our AMA with 2H Media on planning your 2023 marketing bu...
By Jacqui Mar 30, 2023Thanks to all Community members that participated in our inaugural 2 week AMA on the new E...
By Jacqui Mar 10, 2023Upskill and stand out with the new Shopify Foundations Certification program
By SarahF_Shopify Mar 6, 2023