Duplicate purchase events sent every time checkout completion page is refreshed

Created on 24 July 2025, 22 days ago

Problem/Motivation

Similar to πŸ› Commerce begin_checkout event can fire multiple times with ajax panes Needs review , this module resends the purchase event every time the checkout completion page is loaded. You should only ever send the purchase event once, and it should be based on order placement or checkout completion event as described in πŸ“Œ Send the purchase event when an order is placed, not paid Needs review .

Steps to reproduce

Checkout and keep on refreshin' that completion page.

Proposed resolution

The checkout flow form alter hook should stop injecting the purchase event at the very least, or else set a session variable or cookie to ensure the event is not outputted twice.

Remaining tasks

<"Do it" meme.gif />

πŸ› Bug report
Status

Active

Version

2.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States rszrama

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024