VirtueMart Forum

VirtueMart 2 + 3 + 4 => Product pricing => Topic started by: servlet on January 03, 2015, 09:46:15 AM

Title: How to apply discount only to product price without affect on custom field price
Post by: servlet on January 03, 2015, 09:46:15 AM
How to apply discount only to product price without affect on custom field price?

What is now?...
When I apply discount for a product with custom field it affect on custom field price which is wrong or I think it is missed option which call to apply or not discounts for custom fields...

Or if there is another way, please tell me.

Bets regards
Title: Re: How to apply discount only to product price without affect on custom field price
Post by: Kashif Nawaid on February 04, 2015, 10:58:44 AM
I am also having same problem.

Wanted to apply discount to Base Price + Discount --- and then add the Custom Field Value.

or else any  option to add stitching price to the final price ??

any solution ???
Title: Re: How to apply discount only to product price without affect on custom field price
Post by: servlet on February 04, 2015, 11:05:25 AM
To this moment I dont know for any solution.
I think this option must implemented by default in VM
Title: Re: How to apply discount only to product price without affect on custom field price
Post by: Milbo on February 04, 2015, 14:19:54 PM
We could add a checkbox, implying if it should be added after calculation of the product price, or before.
Title: Re: How to apply discount only to product price without affect on custom field price
Post by: servlet on February 04, 2015, 14:35:24 PM
It will be nice :)
Title: Re: How to apply discount only to product price without affect on custom field price
Post by: Kashif Nawaid on February 05, 2015, 04:36:19 AM
Yeah, it will be.

but HOW??
Title: Re: How to apply discount only to product price without affect on custom field price
Post by: Kashif Nawaid on February 08, 2015, 14:22:26 PM
Found the Solution

replace the calculation.php file from

administrator\components\com_virtuemart\helpers\calculation.php

this will apply the discount to the base price and then add the custom field value
Title: Re: How to apply discount only to product price without affect on custom field price
Post by: sirius on April 30, 2015, 16:04:46 PM
Quote from: Milbo on February 04, 2015, 14:19:54 PM
We could add a checkbox, implying if it should be added after calculation of the product price, or before.
Hi Milbo,
I thnik lots of people need this option.

Actually as this thread explain it all, the final price never change even a custom price is apply, this is the "save" price that is bigger and bigger, and this is a nonsens IMHO.

100$ - 10$ discount =  you save 10$ and you pay 90$
Add custom field option 100000$ = BINGO you save 100010$ !!! and you still pay 90$

Obviously there's something very wrong here... :o
And this bad behaviour wasn't at all with VM 1.1.9 for example

Quote from: Kashif Nawaid on February 08, 2015, 14:22:26 PM
Found the Solution

replace the calculation.php file from

administrator\components\com_virtuemart\helpers\calculation.php

this will apply the discount to the base price and then add the custom field value

Thanks for the effort Kashif but it gives me a blank page

Thanks to all
Title: Re: How to apply discount only to product price without affect on custom field price
Post by: MSpencer141 on April 22, 2016, 17:25:34 PM
Any movement on this?
Title: Re: How to apply discount only to product price without affect on custom field price
Post by: servlet on May 24, 2016, 17:08:35 PM
maybe nothing
Title: Re: How to apply discount only to product price without affect on custom field price
Post by: lindapowers on May 30, 2016, 07:42:29 AM
Similar topic here https://forum.virtuemart.net/index.php?topic=124675.msg465791#msg465791 I still have not tested so that the custom field price doesn't get affected
Title: Re: How to apply discount only to product price without affect on custom field price
Post by: Kuubs on November 22, 2021, 16:01:52 PM
Is there any progress on this?