Author Topic: How to add a new field in which I can make basic calculation?  (Read 867 times)

ataman79

  • Beginner
  • *
  • Posts: 12
How to add a new field in which I can make basic calculation?
« on: November 08, 2010, 18:53:59 pm »
Hello ,

I would be glad if you help me to do that:

I want to add two extra fields - (field1 and field2) in admin panel. I will do this like is written here:  http://forum.virtuemart.net/index.php?topic=59343.0
field1 will not be shown in the browse page, only field 2.
field1 must be an input field like product_price field
And about filed2! I want it to calculate for me: field2=($product_price*1000)/filed1

can somebody help me to realize this ?

zanardi

  • Contributing Developer
  • Full Member
  • *
  • Posts: 878
    • GiBiLogic
Re: How to add a new field in which I can make basic calculation?
« Reply #1 on: November 08, 2010, 21:02:14 pm »
This is not easy and needs good developing experience with VirtueMart. If you're not comfortable following the tutorial in the thread you linked, you'd better ask for commercial support.
--
Francesco (zanardi)
http://extensions.gibilogic.com
@gibilogic on Twitter

ataman79

  • Beginner
  • *
  • Posts: 12
Re: How to add a new field in which I can make basic calculation?
« Reply #2 on: November 08, 2010, 21:09:05 pm »
I can do what is written in the link, the only thing I can not do now is how to make the calculation and to write in the DB the value of field2. For example I don't know where product_price is declared

So if somebody can help me, I will be happy