The Email Integration method is recommended for CrateJoy retailers, even though CrateJoy does not allow invoice emails to be BCC’ed.
Step 1: CrateJoy Dashboard
Go to your CrateJoy dashboard.
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”.
Step 2: ReferralCandy Dashboard
Go to your ReferralCandy dashboard.
Go to “Edit Referral Program > Integration”.
Under “1. Forward purchases to ReferralCandy”, copy the ReferralCandy BCC email address in the grey box. This BCC email address is unique to your store.
Step 3: Email client
1. Go to your email client (e.g. www.gmail.com).
2. You’ll need to set up automatic forwarding of emails based on these criteria:
Sent from “support@cratejoy.com”
Subject “New Order #”
3. Forward all emails matching the criteria to your ReferralCandy BCC email address.
4. If you are using Gmail, you might receive a message asking you to enter a verification code before they’ll allow you to forward your emails to ReferralCandy’s email address. To obtain the verification code:
Go to your store and make a purchase.
CrateJoy will send you an “Order Received” email, and Gmail will try to forward it to the ReferralCandy email address.
Now, go to ReferralCandy, and go to “Manage > Invoice Emails”.
You should see a new invoice email on the page. If you don’t see it, refresh the page.
Click on the new invoice email.
There will be a whole bunch of text in this email, but within it you should see a line that tells you to insert the verification code on Gmail. The code will probably be a string of numbers. Copy that code.
Go to Gmail, and navigate to “Settings” (click the gear icon on the right of the page).
Go to the “Forwarding and POP/IMAP” tab.
Paste the verification code into the input field.
Step 4: Send us an email
Send an email to support@referralcandy.com
Use the subject line: "CrateJoy integration: I've followed the integration steps"
Mention this in the email: "Hi there, I've followed the steps in your Help Article to integrate ReferralCandy with my CrateJoy store. Please help ensure my invoice emails get parsed correctly! "
Step 5: ReferralCandy Dashboard
Go to “Edit Referral Program > Integration”.
Go to Add referral tracking code and copy the JavaScript code inside the grey box.
Step 6: CrateJoy Dashboard
Go back to CrateJoy.
Paste the code after the closing </section> tag.
Step 7: CrateJoy Dashboard
Go to “Settings > Notifications”.
Under “Admin Notifications”, look for “Order received” and click on it. This is the email that gets sent to you after a customer places an order at your store.
Paste this code before the {% if order.gifts_only %} part & save the email:
Email address of customer:
<blockquote>
#{{ order.customer.email }}
</blockquote>
Step 8: ReferralCandy Dashboard
Go back to ReferralCandy.
Go to "Edit Referral Program > Integration".
Click the "Test integration" button.
Click "Begin test" and go through the instructions you see on the screen.
It may take up to 12 hours for ReferralCandy to analyze and extract data from your first invoice email. (Once this is done the first time, subsequent invoice emails with the same data layout will be extracted instantly)
If you encounter any error that you're unsure about, contact us at support@referralcandy.com. Otherwise, you should be good to go!