Price rule don't work correctly

How to configure and adapt Aimeos based shops as developer
Forum rules
Always add your Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Carl
Posts: 2
Joined: 03 Oct 2022, 12:28

Price rule don't work correctly

Post by Carl » 03 Oct 2022, 13:08

Hello aimeos.
I created a new price rule.
I noticed that the rule does not work in the basket if you add a product Selection type and change the quantity in the basket price change to base, but if the product Article type the rule works perfectly.
Also not working and show base price:
Favorite products all types,
Watched products all types,
Last seen Selection types.
Other types does not tested.

What files should I change to make everything work? Where to look for the problem? Help please.
"aimeos/aimeos-laravel": "2021.10.*"
PHP 7.4.30
Laravel Framework 8.83.25
Ubuntu 18.04.6 LTS

User avatar
aimeos
Administrator
Posts: 6728
Joined: 01 Jan 1970, 00:00

Re: Price rule don't work correctly

Post by aimeos » 05 Oct 2022, 11:15

Thank you for the hint!

The price rules are now applied to variant articles and in favorite and watched products too.
For last seen products, this should also work but keep in mind that they are cached in the session and won't be updated when the rules change or you reload the page.

You can get the updated packages by executing:

Code: Select all

composer req aimeos/aimeos-core:2021.10.x-dev aimeos/ai-controller-frontend:2021.10.x-dev
If it works for you too, we will tag a new release.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Carl
Posts: 2
Joined: 03 Oct 2022, 12:28

Re: Price rule don't work correctly

Post by Carl » 06 Oct 2022, 12:31

Thank you for response and great work.
Price rule works as it should.

But the basic price is also displayed in the profile Favorite and Watched if login.

User avatar
aimeos
Administrator
Posts: 6728
Joined: 01 Jan 1970, 00:00

Re: Price rule don't work correctly

Post by aimeos » 06 Oct 2022, 14:12

Sorry, forgot to backport the fixes for the favorite and watched products to 2021.10.
You can now get the new package using:

Code: Select all

composer req aimeos/ai-client-html:2021.10.x-dev
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply