#######
https://www.daycounts.com/shop/virtue...
#######
Did you face this already in Virtuemart? When you use the product price override and have attributes (custom fields) that add costs to the product, the additional costs are added to the discount and not the final price!!!
This is a long lasting issue. Not a real bug but more of a strange or non common functionality choice that was implemented in Virtuemart 2 and Virtuemart 3
Here is an example of what is happening by default
Product price: 100$
Override price to be taxed: 80$
Option x: 10$
The final price calculated by default is always 80$ and even when the option is selected, the price remains the same. The discount however goes from 20$ to 30$ (product discount + option cost)
For most of the stores, this is a non-sense and only the product should be discounted, not the options.
There exist several solutions out there. One suggests to make a change in the core virtuemart file calculationh.php. This however is a hack that you will have to manually apply every time you update Virtuemart with a newer version.
Another proposed solution is to create a new category, create a discount rule that is limited to this category and assign the product you want to discount to this category without using the override price functionality at all. This however will messup your category hierarchy and apply the discount to both product and option if you select a percentage discount.
We have one final solution for you!
With this calculation plugin, you will be able to change the product price override functionality to discount your product and then apply your option prices.
Yes! We did it and without any hack!
In the example above, that means that if the customer chooses the option, he will be charged 90$ (80$ reduced price + 10$ option)
#######
https://www.daycounts.com/shop/virtue...
#######