Shopify / shopify-app-template-php

263 stars 85 forks source link

No guidance on setting up and using webhooks with shopify-app-template-php #485

Open DN-PERSONAL-REPO opened 7 months ago

DN-PERSONAL-REPO commented 7 months ago

Issue summary

I am attempting to set up Webhooks in a shopify app generated by the shopify-app-template-php. There is no clear documentation I can find about how to do this.

However, the template has already done a lot of this for us. How am I supposed to register a Webhook for example orders/create without overriding the boilerplate that Shopify has provided in this template?

What is the correct way to process them after this? Where is the /api/webhooks endpoint that the boilerplate code sets being used? I can't find it in the template.

This is extremely unclear what the pattern should be for using Webhooks with this template without overriding the boilerplate code, and there are no docs I can find specifically to guide me.

Can anyone please help point me to the correct docs for how to set up and use Webhooks within this template?

Note: I am developing a custom app that requires me to perform a certain task on when an event occurs in the store.

linaori commented 2 months ago

I wasted a lot of time today to try and find the documentation, found it here: https://github.com/Shopify/shopify-api-php/blob/main/docs/usage/webhooks.md