craftcms / craftcms/webhooks

hook fires on craft\commerce\elements\Order afterSave multiple times

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

Nobody has claimed this yet.

bug
Dominant language
PHP
Stars
84
Forks
12
PR merge metrics
No merged PRs in 30d

Description

SenderClass: craft\commerce\elements\Order
Event Name: afterSave

this fires around 9 times on each order. Is there e sureifre class which fires only once on a new order?

Image

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 how the webhook integration registers and handles the Craft Commerce Order afterSave event, using the reported SenderClass and event name as entry points. Reproduce an order save and determine why the hook runs repeatedly; done means the behavior is explained and a supported once-only event or documented limitation is established.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.