Automattic / woocommerce-subscriptions-core

Subscriptions core package for WooCommerce
Other
82 stars 29 forks source link

When using multiple recurring coupons, only the name of the first coupon appears below recurring totals #426

Open Jinksi opened 1 year ago

Jinksi commented 1 year ago

Originally reported in woocommerce-subscriptions: https://github.com/woocommerce/woocommerce-subscriptions/issues/4502

Describe the bug

When using multiple recurring product coupon codes only the name of the very first coupon appears under the recurring total breakdown.

To reproduce

  1. Create at least two recurring product coupon codes
  2. Add them to a subscription product at checkout
  3. Notice that only the name of the first coupons appears in the recurring totals table

Screenshots

BF4URa.png

Expected behavior

The recurring totals table should reflect the coupon codes that will be applied to future renewals, or it should be displayed as a single line item Discount like what happens when using the Checkout Block:

vg7o7R.png

Product impact