Ignore cancelled product pricing

Help for integrating the Laravel package
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!
adityabanerjee
Posts: 37
Joined: 05 Oct 2019, 06:42

Ignore cancelled product pricing

Post by adityabanerjee » 22 Jan 2022, 06:38

Hi Aimeos,

So in the admin if a product is canceled then also it calculates it in the total. We want to ignore the pricing for the cancelled product. How could we do it? So when I do this $basket->getPrice()->getValue()

It calculates the price of the canceled product. Please assist.

Regards

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

Re: Ignore cancelled product pricing

Post by aimeos » 24 Jan 2022, 14:16

Price calcuation for the basket is done here:
https://github.com/aimeos/aimeos-core/b ... #L310-L312
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply