Gift cards not created when other items exist in the checkout before the gift card item

Created on 6 May 2021, over 3 years ago
Updated 17 October 2024, 2 months ago

Problem/Motivation

If there are other items in the checkout BEFORE any gift card items, the card is not created as OrderEventSubscriber::giftcardPurchase returns if the purchased entity type doesn't match.

Steps to reproduce

Add items to the cart before a gift card, and complete checkout.

Proposed resolution

Change return; statements to continue;

Remaining tasks

Test patch and apply

🐛 Bug report
Status

RTBC

Version

2.0

Component

Code

Created by

🇬🇧United Kingdom Dubs

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

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024