Percentage adjustment for product variant attributes

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
11 years ago
Hi all,

Currently it is possible only to adjust product variant price using fixed amounts (eg. if color = blue -> price is +5). I have a specific need to have to do such adjustment using percentage basis. Eg. if size id XL then price is 10% more; if size is XS than price is 25% less etc.

I have created a work item about this: http://nopcommerce.codeplex.com/workitem/11093 so if you're interested please cast your vote.

However knowing how many things the dev team has on their plate, i wanted to ask community if anyone has done such a thing before so that maybe they could share some experience, gotcha-s and/or code.

Thanks!

Filip
11 years ago
Hi Filip,

Thanks for suggestion!
10 years ago
Hi Filip & Everyone,

I also just searched at least 4 items that were left unanswered regarding this topic, and when I then found FilipsI immediately voted it up. Please vote it up HERE!!!! :) Interestingly, it seems that the benefit would be huge to the community relative to the amount of time that I would anticipate it taking. Like you, I know that the NopDevTeam has their hands full and have been doing an absolutely outstanding job.

As I see it, an additional Boolean field for "use Percentage" (just like discounts do now) would be required where any price adjustment opportunity presents itself (e.g. product attributes price adjustment) and then the logic would just have to be change, probably an additional line of logic wherever the price adjustments are currently made in the code that challenges the status of the "percentage" Boolean and computes accordingly. Basically an if/then/else on the former. Lastly, you would have to run an update query on the DB to set all existing (actually new) Booleans to 'false' so that current pricing schemas would not be impacted. The 'order' concerns would be addressed in the additional logic statements but I would think should fall in place relatively smoothly.

I guess that I've been in the development business long enough to be very careful when I say things like "should only take a couple of hours" but that's what my gut tells me. Have you done anything on this yourself or has anyone else? I would be interested in collaborating on this to get it done, if anyone is interested. Also

Please reply if anyone has addressed this or feel free to PM me.

Thanks in advance for any input,

-HB
10 years ago
How would the calculation go if you had more than 1 attribute affecting the price?  Does the % happen after adding the other attributes or is it only a % of the base price?  Just thinking out loud.
10 years ago
Hi Andy,

My thoughts are that you could somewhat control the order either individually or in aggregate by adjusting the display order. I did have a chance to peek at the code and right now, any/all adjustments are added together for a product in bulk and then added to the base price right just before discounting. That method would have to be changed, obviously, but I would think that it's doable.

-HB
8 years ago
Hi there!

Any news about it?

Ivan.
8 years ago
Hi Ivan,

No. This work item is not closed yet
7 years ago
is there any plugin for this feature? or any plan to implement in near future?
7 years ago
No. We don't plan to implement it in the near feature (work item)
6 years ago
Hello everyone, we implemented this functionality. Please see this commit for more details
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.