How to setup WooCommerce Webhook
Sometimes, our main integration is blocked due some underlying factor outside of Fomo's control, this could be your hosting provider, server configurations, combination of wordpress and/or woocommerce versions, firewalls, etc).
If you have already tried our main integration, then this article outlines an alternative way to integrate WooCommerce with Fomo.
Step 1
Create webhook URL. Search for "webhook" in integrations and click “connect with Webhook”. Copy the Webhook URL.
![](http://d33v4339jhl8k0.cloudfront.net/docs/assets/6630e7894c3ddc1d4e7a2400/images/66509ba31f3fa9421e287151/Screenshot_2020-04-20_17.16.45.png)
![](http://d33v4339jhl8k0.cloudfront.net/docs/assets/6630e7894c3ddc1d4e7a2400/images/66509ba41f3fa9421e287152/Screenshot_2020-04-20_17.17.56.png)
Step 2
Add the Webhook URL to your woocommerce admin. Go WooCommerce > Settings > Webhooks > Add new webhook.
![](http://d33v4339jhl8k0.cloudfront.net/docs/assets/6630e7894c3ddc1d4e7a2400/images/66509ba41f3fa9421e287153/Screenshot_2020-04-20_17.18.36.png)
![](http://d33v4339jhl8k0.cloudfront.net/docs/assets/6630e7894c3ddc1d4e7a2400/images/66509ba5dd0f8c60bb3fc344/Screenshot_2020-04-20_17.19.45.png)
Name: can be anything - “Fomo Webhook” works
Status: Active
Topic: Order Created
Delivery URL: Paste the Webook URL here
Secret: leave blank
Hit Save!
Step 3
Create a new order with at least one product and billing name & address.
Step 4
Go back to Webhook integration in Fomo to select and map variables from your new order.
![](http://d33v4339jhl8k0.cloudfront.net/docs/assets/6630e7894c3ddc1d4e7a2400/images/66509ba55940934e140f3d62/Screenshot_2020-04-20_17.50.54.png)
Step 5
Edit template, based on the variables set above, we can use #{{ first_name }} in #{{ city }} just bought #{{ title }} #{{time_ago}}
![](http://d33v4339jhl8k0.cloudfront.net/docs/assets/6630e7894c3ddc1d4e7a2400/images/66509ba55940934e140f3d63/Screenshot_2020-04-20_17.51.45.png)
Set image, you can use a default image icon or upload your own. Also, you can toggle on Avatar image if you have mapped email_address
(which will try to use the email's gravatar)
Step 6
Wait for your next order (or submit another test order) and you are done! You should see new events when orders are created.
![](http://d33v4339jhl8k0.cloudfront.net/docs/assets/6630e7894c3ddc1d4e7a2400/images/66509ba6d593d719515c9a04/Screenshot_2020-04-20_17.55.26.png)
Limitations
-
Only the first bought item will be used to create an event.
-
This setup does not “pull” in the product image, so a default image or avatar should be used.