This JavaScript snippet should allow you to apply the discount to the current session. // Setup the Apply Discount Code URL
let shopDomain = "somesite.myshopify.com";
let discountCode = "MYDISCOUNTCODE123";
let discountApplyUrl = "https://" + shopDom...