PriceList problem: Disabling "Override price adjustments" in "Export mode: Assigned Products" doesn't works correctly in PriceList in both new version

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
13 лет назад
Hi,
First I thank you for the great development.
It seems there is a problem in PriceList as follow:
if you unchecked the "Override price adjustments" and assign products and put the Price adjustment type to "Relative Adjustment" or "Absolute Adjustment" or and assign Price Adjustment value, it doesn't works correctly.

The problem is here:
nopCommerce_1.90_Source\Libraries\Nop.BusinessLogic\Products\Pricelist.cs

in the "GetAdjustedPrice" function:
PriceAdjustment must start lowered case as: priceAdjustment and
PriceAdjustmentType must also start lowered as: priceAdjustmentType

so function must become:

        public decimal GetAdjustedPrice(decimal price, 
            PriceAdjustmentTypeEnum priceAdjustmentType, decimal priceAdjustment)
        {
            decimal result = price;

            switch (priceAdjustmentType)
            {
                case PriceAdjustmentTypeEnum.AbsoluteAdjustment:
                    {
                        result -= priceAdjustment;
                    }
                    break;
                case PriceAdjustmentTypeEnum.AbsolutePrice:
                    {
                    }
                    break;
                case PriceAdjustmentTypeEnum.RelativeAdjustment:
                    {
                        result = result * ((100 - priceAdjustment) / 100);
                    }
                    break;
                default:
                    break;
            }


Let me know it is correct.
Thx,
Vahid.
13 лет назад
Vahid,

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