Use display name instead of label on coupon redemption form

Created on 14 January 2022, almost 3 years ago
Updated 29 October 2024, 2 months ago

Describe your bug or feature request.

The coupon display name should be used instead of coupon label on CouponRedemption.php.

The commerce-coupon-redemption-form.html.twig is capable to use the "display_name" variable thanks to CouponRedemption.php, but instead of passing the display name, the label is passed.

There is also a "// @todo Use the promotion display name once added." comment on CouponRedemption.php.

Well, now the display name has been added since one or two years, so we can safely update this code either.

I'm attaching a working patch.

Thank you.

🐛 Bug report
Status

Needs work

Version

3.0

Component

Promotions

Created by

🇮🇹Italy finex

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

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