Skip to content

[5.x]: Catalog pricing doesn't update for purchasables that meet condition after rule was created #4054

@tommysvr

Description

@tommysvr

What happened?

Description

If you have catalog pricing rule that has conditions, prices don't update for purchasables that meet the condition after the rule was created.

Steps to reproduce

  1. Add a lightswitch field to your variant field layout
  2. Create a variant but leave the lightswitch disabled
  3. Create a Pricing Rule with a condition as below

Image

  1. In the variant you created, now enable the lightswitch

Expected behavior

The variant price is updated as per the pricing rule

Actual behavior

The variant price is not updated

Craft CMS version

5.7.10

Craft Commerce version

5.3.13

PHP version

No response

Operating system and version

No response

Database type and version

No response

Image driver and version

No response

Installed plugins and versions

No response

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions