#discount_total calculation wrong

3 messages · Page 1 of 1 (latest)

patent sentinel
#

The discount_total calculation does not seem to work well when I have more than two items in my cart.
Here is my situation,

I've got 2 items in my cart
One discount code of fixed amount 32.5
And the discount_total is 65 (so two times).

I checked and there is only one discount code:

[ { "id": "disc_01GJ2XZWAQVDEGD7ER4Y6FSN19", "created_at": "2022-11-17T13:55:56.711Z", "updated_at": "2022-11-24T15:03:30.059Z", "deleted_at": null, "code": "LISONGIFT", "is_dynamic": false, "rule_id": "dru_01GJ2XZW6QMH0CRYR52MEKS34G", "is_disabled": false, "parent_discount_id": null, "starts_at": "2022-11-17T13:55:52.816Z", "ends_at": "2022-11-25T13:55:52.816Z", "valid_duration": null, "usage_limit": null, "usage_count": 1, "metadata": null, "rule": { "id": "dru_01GJ2XZW6QMH0CRYR52MEKS34G", "created_at": "2022-11-17T13:55:56.711Z", "updated_at": "2022-11-17T13:55:56.711Z", "deleted_at": null, "description": "A4 oak frame", "type": "fixed", "value": 3250, "allocation": "item", "metadata": null } } ]

Any idea why I got this ? Could it be linked to tax_inclusive pricing betaness ?

mental knoll
#

The rule has allocation to item . Wouldn't it add the 32.5 to each item?

#

Which one did you choose?