#cardinality property referenced in template but never set in coupon redemption form

Created on 5 September 2025, 8 days ago

Problem Description

The commerce-coupon-redemption-form.html.twig template references form['#cardinality'] to determine display format (single vs multiple coupons), but this property is never actually set in the form build.

Current behavior: The template condition {% if form['#cardinality'] == 1 %} will never be true because #cardinality is undefined, so the form always displays in multiple coupons format regardless of the max_coupons configuration.

🐛 Bug report
Status

Active

Version

3.1

Component

Promotions

Created by

🇷🇸Serbia majmunbog

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

Comments & Activities

Production build 0.71.5 2024