Product price calculation

Help for integrating the Laravel package
Forum rules
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
olexandersh
Posts: 7
Joined: 22 Oct 2019, 16:43

Product price calculation

Post by olexandersh » 28 Nov 2019, 15:21

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?

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

Re: Product price calculation

Post by aimeos » 29 Nov 2019, 12:06

You can implement a delivery service decorator which calculates the additional price depending on that condition:
https://aimeos.org/docs/Developers/Libr ... _decorator
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply