craftcms / craftcms/shopify

How can I trigger a webhook on afterSave with the product entries?

Open
#228 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
PHP
Stars
56
Forks
30
Avg merge
11h 15m
Merged PRs (30d)
2

Description

Hi,

I'd like to clear some Cloudflare caches after saving a product. I cannot trigger it on craft\elements\Entry as it seems, and craft\shopify\services\Products doesnt have a afterSave event.

Thanks!
Mathieu

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing the product save flow through craft\elements\Entry and craft\shopify\services\Products, then inspect how save events are exposed in the repository. Determine whether an afterSave hook exists for product entries and what event or extension point could support the requested Cloudflare cache webhook; done means a documented, supported trigger or a clearly scoped implementation path.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
backend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Active
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.