The repo for Purrform's main BigCommerce store.
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix: typo

+4 -3
+1 -1
config.json
··· 1 1 { 2 - "name": "DEV Theme - Fix delivery dates 4", 2 + "name": "DEV Theme - Fix delivery dates 5", 3 3 "version": "6.10.0", 4 4 "template_engine": "handlebars_v4", 5 5 "meta": {
+3 -2
templates/pages/checkout.html
··· 96 96 // Handles the loyalty points 97 97 var jsContext = JSON.parse({{jsContext}}); 98 98 99 + 99 100 let loyaltyInterval = setInterval(loyaltyCheck, 1000); 100 101 function loyaltyCheck() { 101 102 const elementParentType = document.querySelector('.layout-main') ··· 182 183 183 184 cancelButton.addEventListener('click', () => { 184 185 console.log("Received Click"); 185 - const ID = jsContext.checkoutID; 186 + const ID = jsContext.checkoutId; 186 187 fetch(`https://purrform-apps-027e.onrender.com/applyDiscountToCheckout?checkoutId=${ID}&loyaltyPointsUsed=0`) 187 188 .then((response) => { 188 189 cancelButton.setAttribute('disabled', 'true') ··· 237 238 if (input.value === '') { 238 239 return; 239 240 } 240 - const ID = jsContext.checkoutID; 241 + const ID = jsContext.checkoutId; 241 242 const loyaltyPoints = document.querySelector('#points-input').value 242 243 if (loyaltyPoints === "") { 243 244 console.log("The input is empty.");