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

Created on 6 February 2024, 5 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.69.0 2024