Updates number of credits not working when credit is added with discount

Created on 6 February 2024, 10 months ago

Problem/Motivation

Updates number of credits a user has based on his order is not working correctly when credits are added to bonus products with discount.

Steps to reproduce

Add new discount with rule when buying 1 credit get 1 extra for free.
Buy 1 credit.
Summary of credits on accounts is 1 instead of 2.

Proposed resolution

Add another line item type to commerce_credits_rules_action_update_on_checkout
Credit added with discount has type of product_discount not just product.

🐛 Bug report
Status

Active

Version

1.0

Component

Code

Created by

🇦🇹Austria martamarczak Vienna

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

Comments & Activities

Production build 0.71.5 2024