nopSolutions / nopCommerce

ASP.NET Core eCommerce software. nopCommerce is a free and open-source shopping cart.
https://www.nopcommerce.com
Other
9.22k stars 5.29k forks source link

OveriddenPrice handled as AdditionalCharge when DisplayFromPrices=true #7193

Closed alinmircea closed 4 months ago

alinmircea commented 4 months ago

https://github.com/nopSolutions/nopCommerce/blob/5e654720bc4f08a436300a40232f25f3659bef36/src/Presentation/Nop.Web/Factories/ProductModelFactory.cs#L405

Please check the location above, OveriddenPrice is handled as AdditionalCharge.

I'm not sure if this is an actual bug as we're not using DisplayFromPrices=true, and I've not tested. (Encountered the code while overriding the method for a different purpose. From the looks of it, it will add overriden price to product price.)