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

Configure Feed

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

feat: customer name on referral

+3 -2
+3 -2
templates/pages/account/inbox.html
··· 1 1 {{#partial "page"}} {{> components/common/breadcrumbs breadcrumbs=breadcrumbs}} 2 2 <h1 class="page-heading page-heading--account">Rewards</h1> 3 3 {{> components/account/navigation account_page='messages'}} {{inject 4 - "customerEmail" customer.email}} 4 + "customerEmail" customer.email}} {{inject "customerName" customer.name}} 5 5 6 6 <div class="account account--fixed"> 7 7 <div class="account-body"> ··· 290 290 const friendReferralForm = document.querySelector('#friend-referral-form') 291 291 const friendReferralInput = document.querySelector('#reward-friend-refer-email') 292 292 const customerEmail = friendJsContext.customerEmail 293 + const customerName = friendJsContext.customerName 293 294 const friendErrorMsg = document.querySelector('#friendError') 294 295 // errorMsg.textContent = ""; 295 296 friendReferralForm.addEventListener('submit', (e) => { ··· 305 306 return; 306 307 } 307 308 308 - fetch(`https://purrform-apps-027e.onrender.com/friendReferralForm?friendEmail=${friendReferralInput.value}&customerEmail=${customerEmail}`, { 309 + fetch(`https://purrform-apps-027e.onrender.com/friendReferralForm?friendEmail=${friendReferralInput.value}&customerEmail=${customerEmail}&customerName=${customerName}`, { 309 310 method: "GET", 310 311 headers: { 311 312 'Content-Type': 'application/json'