Webhooks not working

DoggTreats
Tourist
4 0 1

Hello, I have created webhooks previously with another store which are still working fine. I simply copied over the code in the PHP file (and changed the "SHOPIFY_APP_SECRET") to test the webhook. I created the webhook in the new shopify store and pointed it to the correct URL for the new PHP file. 

 

When I test the webhook, it is not doing anything. I have tested the actual code, and it works on its own.

 

I have also simplified the code right down to the basics, and also all the way down to:

 

<?

mail("email@website.com", "Shopify Webhook", "Test ");

?>

which worked on other stores just to test if the file is even being called by the webhook. It just wont call the file.

 

Is there anyway of seeing logs to see what is going wrong?

 

I have also tested this on https://webhook.site

 

Thanks

Supplying great Monthly Dog Treat Boxes.
Replies 2 (2)

Jivan_Suhagiya
Shopify Partner
595 82 126
Hi,
For testing purpose, you can write whole response in file. And click Test webhook. This way you can check whether webhook sending notification or not.
If helpful then please Like and Accept Solution.
Email: suhagiyajivan1992@gmail.com
Skype: jivan.suhagiya
First kind of Checkout Reminder APP: https://apps.shopify.com/checkout-reminder
DoggTreats
Tourist
4 0 1

Hello, thanks for your reply, please can you explain a bit further? What do you mean by "write whole response in file"? And how would this test the webhook?

 

Thanks

Supplying great Monthly Dog Treat Boxes.