product discount

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
2 anos atrás
Hi,

We have a b2b with more discounts and cart with more items.

I'm looking in PriceCalculationService/GetAllowedDiscountsAsync

I don't know if is by desing or not.

GetAllowedDiscountsAppliedToProductAsync have a difference implementation compare with
GetAllowedDiscountsAppliedToCategoriesAsync

It's possible missing a call to
await _discountService.GetAllDiscountsAsync(DiscountType.AssignedToSkus, showHidden: true);
or
With my data I resolve my situation adding date filter in  (start/ending discount)
discountService.GetAppliedDiscountsAsync


thanks
kava
2 anos atrás
NopCommerce 4.5
2 anos atrás
What exactly is the bug here?
Method GetAllDiscountsAsync is not called for a product by design, this is not necessary, since we have a property product.HasDiscountsApplied allows us not to load discounts from db once again.
Parameter showHidden = true is not used both to get product discounts and to get category discounts, see here. As for discount dates, they are checked later in ValidateDiscountAsync method. Do you have any customizations?
2 anos atrás
No, it's standard.
I understand, thanks for reply
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.