Determine subpart inside a Price Rule Provider
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!
Always add your TYPO3, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Determine subpart inside a Price Rule Provider
Good morning,
I want to exclude my Price Rule calculations from the mini basket subpart. How can I detect that the current price the Provider is working on comes from the basket and not the catalog?
Best
Robert.
https://aimeos.org/docs/latest/providers/rules/
I want to exclude my Price Rule calculations from the mini basket subpart. How can I detect that the current price the Provider is working on comes from the basket and not the catalog?
Best
Robert.
https://aimeos.org/docs/latest/providers/rules/
Re: Determine subpart inside a Price Rule Provider
There's no way to handle prices in the basket differently than in the basket as the price rules are applied by the frontend controllers and the mshop code.
The price rules are only applied to the products in the catalog but the ProductPrice plugin uses them es well to stay consistent:
https://github.com/aimeos/aimeos-core/b ... tPrice.php
You can enable the "ignore-modified" setting of the ProductPrice plugin to avoid overwriting product prices which have been changed by other plugins too.
The price rules are only applied to the products in the catalog but the ProductPrice plugin uses them es well to stay consistent:
https://github.com/aimeos/aimeos-core/b ... tPrice.php
You can enable the "ignore-modified" setting of the ProductPrice plugin to avoid overwriting product prices which have been changed by other plugins too.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star