pricing rules on product detail page

Questions around the TYPO3 integration and plugins
Forum rules
Always add your TYPO3, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
stiller
Advanced
Posts: 100
Joined: 05 Mar 2016, 15:59

pricing rules on product detail page

Post by stiller » 10 Nov 2024, 18:20

we plan to apply pricing rules for the first time.
for this, we have introduced a "sales category".
Products on sale are then assigned to this category.

for the product on sale itself it works out as intended.
but all product suggestions at the bottom of the detail page get reduced prices and the sales badges as well.
is it a bug or are we implementing it incorrectly?

Aimeos Version
2022.10.8

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

Re: pricing rules on product detail page

Post by aimeos » 11 Nov 2024, 11:39

stiller wrote: 10 Nov 2024, 18:20 but all product suggestions at the bottom of the detail page get reduced prices and the sales badges as well.
is it a bug or are we implementing it incorrectly?
You are right, price rules should be only applied to bundled articles and selection variants. This has been fixed and will be part of the next 2024.10 release.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

stiller
Advanced
Posts: 100
Joined: 05 Mar 2016, 15:59

Re: pricing rules on product detail page

Post by stiller » 16 Nov 2024, 22:30

thank you. we'll watch out for it

stiller
Advanced
Posts: 100
Joined: 05 Mar 2016, 15:59

Re: pricing rules on product detail page

Post by stiller » 23 Nov 2024, 21:14

thank you for the patch but further modification is required I'm afraid.

if we call up a product that doesn't belong to the category of the pricing rule, the rule is also not applied to suggested products. thus regular prices are displayed even if one of the suggested products does match the price rule. suggested products should be treated as a standard list view.

beside this, it would be helpful to have access to the regular price in the product detail template in order to display the difference between regular and reduced price.

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

Re: pricing rules on product detail page

Post by aimeos » 25 Nov 2024, 11:44

dev-master and 2024.10.x-dev contains an improved percent rule provider now. It applies price changes to all variant articles of selection products and to all other referenced products only if the rest of the conditions apply too.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

stiller
Advanced
Posts: 100
Joined: 05 Mar 2016, 15:59

Re: pricing rules on product detail page

Post by stiller » 25 Nov 2024, 13:40

thank you for your improvements on the percent rule.

we are now getting recalculated prices for suggested products attached to a product, which fulfills the requirements of a percent rebate together with additional rebate information.

but still suggested products which fulfill the rebate requirements and are attached to a product not included in the percent rule are left out because the rule is not triggered at all.

also, it is important to set the "config last rule value" to no. otherwise the rule is applied only to one product in the list view. to add this info to the manual might help other users

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

Re: pricing rules on product detail page

Post by aimeos » 25 Nov 2024, 14:36

stiller wrote: 25 Nov 2024, 13:40 we are now getting recalculated prices for suggested products attached to a product, which fulfills the requirements of a percent rebate together with additional rebate information.

but still suggested products which fulfill the rebate requirements and are attached to a product not included in the percent rule are left out because the rule is not triggered at all.
Can you make an example what doesn't work?
stiller wrote: 25 Nov 2024, 13:40 also, it is important to set the "config last rule value" to no. otherwise the rule is applied only to one product in the list view. to add this info to the manual might help other users
You are right, if "last rule" is set to "yes", it should skip the rest of the rules, not the remaining products. This is fixed in aimeos/aimeos-core dev-master and 2024.10.x-dev now
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

stiller
Advanced
Posts: 100
Joined: 05 Mar 2016, 15:59

Re: pricing rules on product detail page

Post by stiller » 25 Nov 2024, 15:46

we are talking about the detail view of a selection product.
just as intended, no price rule is applied to this product.

the product has several suggested products. there are displayed in the catalog-detail-suggest section of the same template.
one of those suggested products is in the category that should trigger the percentage price rule.
but nothing happens. in contrast to views managed by list plugins the price is not recalculated.

in short:
- product detail view with regular price
- suggested product same page is in the price rule category

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

Re: pricing rules on product detail page

Post by aimeos » 25 Nov 2024, 16:01

The prices for those products should be recalculated by the Percent rule provider due to these lines:
https://github.com/aimeos/aimeos-core/b ... #L102-L104

Can you please check why they are not?
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

stiller
Advanced
Posts: 100
Joined: 05 Mar 2016, 15:59

Re: pricing rules on product detail page

Post by stiller » 25 Nov 2024, 17:02

the process doesn't get there at all nor does it get to the apply function.
the rule is not applied because the "main" product does not qualify.

obviously there is a difference between suggested product list and standard list view.

Post Reply