Author Topic: How to apply discount only to product price without affect on custom field price  (Read 6464 times)

servlet

  • Jr. Member
  • **
  • Posts: 351
  • Business optimization
    • Фототапети
  • VirtueMart Version: 3.2.2
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
I am using: Joomla 3.7.2 VM 3.2.2
Он-лайн магазин за фототапети http://mishelfoster.com

Kashif Nawaid

  • Beginner
  • *
  • Posts: 16
    • UnitechWorld Services
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 ???
UnitechWorld Services
http://www.unitechworld.in

servlet

  • Jr. Member
  • **
  • Posts: 351
  • Business optimization
    • Фототапети
  • VirtueMart Version: 3.2.2
To this moment I dont know for any solution.
I think this option must implemented by default in VM
I am using: Joomla 3.7.2 VM 3.2.2
Он-лайн магазин за фототапети http://mishelfoster.com

Milbo

  • Virtuemart Projectleader
  • Administrator
  • Super Hero
  • *
  • Posts: 10213
  • VM3.9 Eagle Owl
    • VM3 Extensions
  • VirtueMart Version: VirtueMart 3 on joomla 3
We could add a checkbox, implying if it should be added after calculation of the product price, or before.
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

servlet

  • Jr. Member
  • **
  • Posts: 351
  • Business optimization
    • Фототапети
  • VirtueMart Version: 3.2.2
It will be nice :)
I am using: Joomla 3.7.2 VM 3.2.2
Он-лайн магазин за фототапети http://mishelfoster.com

Kashif Nawaid

  • Beginner
  • *
  • Posts: 16
    • UnitechWorld Services
Yeah, it will be.

but HOW??
UnitechWorld Services
http://www.unitechworld.in

Kashif Nawaid

  • Beginner
  • *
  • Posts: 16
    • UnitechWorld Services
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
UnitechWorld Services
http://www.unitechworld.in

sirius

  • Jr. Member
  • **
  • Posts: 157
    • OCTeam
  • VirtueMart Version: 3.8.6
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

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
J3.10.8 | PHP 7.4.28 + APC + Opcode
VM Prod : 3.8.6 | VM Test : 3.8.9.10622

MSpencer141

  • Beginner
  • *
  • Posts: 8
  • A beginner
Any movement on this?

servlet

  • Jr. Member
  • **
  • Posts: 351
  • Business optimization
    • Фототапети
  • VirtueMart Version: 3.2.2
maybe nothing
I am using: Joomla 3.7.2 VM 3.2.2
Он-лайн магазин за фототапети http://mishelfoster.com

lindapowers

  • Full Member
  • ***
  • Posts: 1335
  • If you're going through hell, keep going.
    • Los Angeles immigration lawyers
  • Skype Name: manu.gonzalez91
  • VirtueMart Version: Latest avi
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

Huubs

  • Jr. Member
  • **
  • Posts: 329
Is there any progress on this?