Product price calculation
Forum rules
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
-
- Posts: 7
- Joined: 22 Oct 2019, 16:43
Product price calculation
Hello!
I have added two attributes to a products (singlepackage and multipackage) in admin panel. And now I need to calculate shipping costs of a product in the basket depends on these attributes: if product has 'singlepackage' attribute it's shipping costs multiplies to product quantity and, if product has 'multipackage' attribute, it's shipping costs don't multiplies to product quantity.
Which method I have to override for this?
I have added two attributes to a products (singlepackage and multipackage) in admin panel. And now I need to calculate shipping costs of a product in the basket depends on these attributes: if product has 'singlepackage' attribute it's shipping costs multiplies to product quantity and, if product has 'multipackage' attribute, it's shipping costs don't multiplies to product quantity.
Which method I have to override for this?
Re: Product price calculation
You can implement a delivery service decorator which calculates the additional price depending on that condition:
https://aimeos.org/docs/Developers/Libr ... _decorator
https://aimeos.org/docs/Developers/Libr ... _decorator
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