commerce icon indicating copy to clipboard operation
commerce copied to clipboard

[5.x]: Catalog Pricing Rules not linkable to entry/category?

Open bartrylant opened this issue 8 months ago • 6 comments

What happened?

Description

In Commerce 4, sales (now called catalog pricing rules) could be linked to products related to a certain category. This was super easy for shop editors. They could relate certain products to a "super mega sale" category, or select certain brands (every product had a brand category relationship) to give a discount on just these brands. For Commerce 5, this doesn't seem to be the case anymore.

When I select Store Management > Pricing Rules > Match Purchasable > Related to > Category and select a category, the promotion is not applied to the products related to that category. Does Commerce just look at direct variant relationships instead of product relationships? More so: I entrified all categories, but if I do Store Management > Pricing Rules > Match Purchasable > Related to > Entry I can only select one entry at a time (instead of selecting multiple). I now have to add every related entry as a new condition.

Expected behavior

Show promotional price for all products related to a certain category or entry.

Actual behavior

Promotional price doesn't get shown when adding conditionals. It looks like conditions don't work.

What I need

Be able to select a category/product that relates to products. Show the promotional price on products related to the category/entry, like it was in Commerce 4. Be able to select multiple entries when relating to an entry.

Scherm­afbeelding 150

This works

Scherm­afbeelding 149

This does not work

Craft CMS version

Craft Pro 5.2.0

Craft Commerce version

5.0.10.1

PHP version

8.3.3

Operating system and version

No response

Database type and version

No response

Image driver and version

No response

Installed plugins and versions

bartrylant avatar Jun 15 '24 18:06 bartrylant