i used the kirby-shopify plugin from @tristantbg for an integrated webshop.
the fetching of the products and combination with custom fields works perfect and the page is coming together. thanks for that !
what doesn´t work is automatically updating the cache via the shopify webhooks.
the following was done:
putting in the webhooks in the shopify configuration
hosting the page properly (shared hosting)
using https with a real certificate
putting in the shared secret from shopify config in the .env file
if i manually open the webhook it just redirects me to the default error page of kirby.
what am i doing wrong ? could it be that kirby somehow doesn´t activate the custom routes implemented in the plugin index.php ?
the only way of updating the shopify data is by manually deleting the site/cache folder via ftp
if anybody has tips this would be highly appreciated.
hey thanks for being so responsive.
yes i did a dumb mistake and didnt configure the right action for the webhooks. so my changes in shopify didnt trigger the hooks.
my testing with the browser was of course not working because the browser is sending GET requests. one test with postman sorted every question in this thread out and i double checked my shopify config.
thank you !
If I make a sample POST through Postman with the X-Shopify_Hmax-Sha256 and X-Shopify-Shop-Domain inserted I’m getting the “Identification failed” response.
Sorry, that was just a typo in my post above. I have tested with the proper ‘hmac’ spelling and no luck. But more importantly it’s not working to clear the cache on the live site.