(Accurate as of 15 Dec 2016)
This article outlines the steps needed to install the Post-Purchase Popup Widget specifically on the CrateJoy platform. Please ensure that you've integrated ReferralCandy properly before inserting the Post-Purchase Popup.
Step 1: ReferralCandy Dashboard
Go to ReferralCandy.
Go to the Widgets page.
Go to “Post-Purchase Popup Widget” and copy the code inside the yellow box.
Step 2: CrateJoy Dashboard
Go to CrateJoy.
Go to the “Design” tab.
Click “Code”. You may wish to make a copy of your theme before editing the code.
Navigate to “components > customer > thank_you > Customer Thank You Content > component.html”.
Paste the copied code after the Integration code </script>.
Replace:
data-fname=”John” with
data-fname={{ order.customer.first_name }}data-lname=”Smith” with
data-lname={{ order.customer.last_name }}data-email=”......” with
data-email={{ order.customer.email }}
To test whether the installation is correct:
Make a purchase at your store.
On the Thank You page, a popup should appear. The referral link in the popup should be generated based on the first and last name that you used during checkout (e.g. http://example.refr.cc/johns).