How to connect Fomo with Cratejoy
Cratejoy is the leading platform for growing subscription box companies.
If you sell products on Cratejoy, you can connect your account with Fomo to showcase new orders on your store, in real-time.
Note: if you have already connected Cratejoy, skip to Step 2.
Step 1 - Enable Cratejoy
While logged in to Fomo, navigate to Notifications, click ‘Add Notifications’, then ‘All Notifications’. Search for 'Cratejoy' and click to open the integration.
This will request a few details about your Cratejoy account. Go here to learn more about those inputs.
![](http://d33v4339jhl8k0.cloudfront.net/docs/assets/6630e7894c3ddc1d4e7a2400/images/66509e95e1989867dcefd12c/cratejoy_1.png)
Step 2 - Plant the Fomo Script Tag
While logged in to Cratejoy, visit Design (left side menu) and click the 'Code' button near your published theme.
![](http://d33v4339jhl8k0.cloudfront.net/docs/assets/6630e7894c3ddc1d4e7a2400/images/66509e955940934e140f3db7/qqh66ub6byalk14fw1hix5rkqxs5zepadpye7py4jy96pk86zo_3F1478583236.png)
Note: if you're using the legacy theme, follow the instructions below titled 'Legacy Theme.' If your store has a newer theme, skip to the 'Modern Theme' section further down this page.
Legacy Theme
After selecting the 'Code' button on the Design page, navigate to the html folder (left side) and then open the 'base.html' file. It may take several seconds for these folders to load, so if you don't see anything right away, just keep waiting.
![](http://d33v4339jhl8k0.cloudfront.net/docs/assets/6630e7894c3ddc1d4e7a2400/images/66509e955173914f806c0e2a/a8q2far7nbpx9vaoizvj49x8g6k9t7sbmt4duenewpladcs5ty_3F1478583492.png)
After clicking the 'base.html' file, scroll down the file until you find a closing head tag, which looks like:
""
Next, copy the script tag from your Fomo application (Log in > Applications > Your Website > Embed button at bottom) and paste it directly above this closing head tag.
Modern Theme
If you want Fomo on every page of your store, follow the same instructions as the Legacy Theme section above.
If you want to specify a few pages where Fomo should be active, navigate to that page template by finding its parent folder, then clicking 'components' and opening the components.js folder.
![](http://d33v4339jhl8k0.cloudfront.net/docs/assets/6630e7894c3ddc1d4e7a2400/images/66509e96e1989867dcefd12d/ayxge6yxxykg8xlgae3robsna4zw1vdgbl4leaxzyatpnjrxo0_3F1478584222.png)
You can then add the Fomo snippet from your Embed page, to that component only. In the example above, we're choosing to only show Fomo notifications on product pages.
(Optional) Disable on Checkout
You may want to disable Fomo on sensitive sales funnel pages, such as your cart or checkout.
To do this, simply paste this snippet on the "components.html" file of the checkout folder (or any area you want to exclude Fomo).
![](http://d33v4339jhl8k0.cloudfront.net/docs/assets/6630e7894c3ddc1d4e7a2400/images/66509e961f3fa9421e2871b0/ayvrl2p0gygddabzl40fpve8gbds2qg5hoyrbn51eoboaan8rr_3F1478584381.png)
To learn more about how this works, go here.
3. You're done!
Going forward, new Cratejoy orders (one-off purchases, subscription sales, gift purchases) will be sent to your Fomo event feed, and shown on your website in real-time.
![](http://d33v4339jhl8k0.cloudfront.net/docs/assets/6630e7894c3ddc1d4e7a2400/images/66509e97d593d719515c9a4f/21ql40wogyf08yrpmi5h46kj90j86mtf6xtwvrlzo7dlifpmd7_3F1478584569.png)
To edit the message structure of your Fomo notifications, simply visit the Notifications tab while logged into Fomo, locate the Cratejoy template(s), and click 'edit'.