Gridbox Store App Released

Mon. - Fri. 9 am - 5 pm Ask a Question
Remember me

Calculator field and slider

1 week 1 day ago #1

  • Michel Torres's Avatar
  • Michel Torres
  • Posts: 270
Hello,

I want a form with a slider from 1 to 50 (quantity).
the unit price decreases as we increase the quantity in slider.
Is this possible with calculator field?

Thank you
Michel

1 week 18 hours ago #2

  • Artem's Avatar
  • Artem
  • Posts: 8758
Hello Michel!

Yes, it's possible!





Regards,
Artem, Balbooa.com

1 week 16 hours ago #3

  • Michel Torres's Avatar
  • Michel Torres
  • Posts: 270
Hello Artem,
I think is much more complex than the way you suggest.
The unit price decreases as we increase the quantity, so we cannot use a single factor like 0.48.
Example prices:
1 = 100
2 = 95
3 = 90
4 = 85
5 = 80
7 = 75
8 and higher = 70 each

Something in this way

Thanks

1 week 16 hours ago #4

  • Artem's Avatar
  • Artem
  • Posts: 8758
Here is a formula for you :lol:
(100 - ([Field ID=3] >= 8 ? 70 : 5 * ([Field ID=3] - 1))) * [Field ID=3]

Where Field ID=3 - your slider

Regards,
Artem, Balbooa.com

1 week 12 hours ago #5

  • Michel Torres's Avatar
  • Michel Torres
  • Posts: 270
Awesome :cheer: :cheer: :cheer: :cheer:

Thank you very much

6 days 18 hours ago #6

  • Artem's Avatar
  • Artem
  • Posts: 8758
You're welcome :)

Regards,
Artem, Balbooa.com
Powered by Kunena Forum