Discount per CustomerRole - Don't apply discount on category/product pages

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
6 年 前
Hey,

I've set up a discount for all customers that have customer role XY applied to them.

Right now the customer will see all prices reduced by the amount I configured.
What I require is, that the original prices are displayed (without discounts) on all pages except the checkout/cart pages.

Is there any way to achieve this without the use of a discount-code?

Best regards
6 年 前
Searched the source code till I found the following:

https://github.com/nopSolutions/nopCommerce/blob/master/src/Libraries/Nop.Services/Catalog/PriceCalculationService.cs#L408

This condition and the one following at line #429 seem to add the discount to all products of in the category, shopping cart and product pages.

Can someone point me to where the #GetFinalPrice method is called for the Product/Category pages so that I can add a false paramtere for #displayDiscounts?

Regards,

Chris
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.