• 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!

TOPIC: one value for a calculation

one value for a calculation 8 years 9 months ago #35384

Hello,

I'm making an orderform for some products.
I want to calculate the total price per product. In the example on the site I see some radiobutton fields etc.
But I want to make the following calaculation:

Total = {Quantity:value}*price product per unit

Where can I define the 'price per 1 unit for each product'? I don't want to define it in the dropdown field as
1[p10]
2[p20]
3[p30]
etc.
Because someone can order 105 or 244 units. So I must make hundreds of lines then.

Hope you understand me.
Thanks for helping.
Last Edit: 8 years 9 months ago by kees.de.goeijer.
The administrator has disabled public write access.

one value for a calculation 8 years 9 months ago #35450

  • dragos
  • dragos's Avatar
  • OFFLINE
  • Administrator
  • Posts: 634
  • Thank you received: 117
Hello,

If I understand correctly, you want to calculate the subtotal of each products based on its price and quantity. In order to achieve this, you can try implementing the steps below.

First, create a required Textbox field named PriceProduct1, set the Validation Rule to 'Numeric'.

After the field is set, head over to the 'Form Properties' and into the calculation section and insert, for example: 'PriceProduct1 = {Product1:value}* {Quantity:value}'.

Then, you will have to replicate the approach presented above for every product you need to calculate its total.

At the end, you can make a general total field that calculates all your previous total fields defined in your form.
The administrator has disabled public write access.

one value for a calculation 8 years 9 months ago #35467

Hello,

Thanks for your answer. But it's not what I meant.

What I want is to calculate the price by giving the price for one piece.
Now I must make 10 or more rules like in de [pxxx] tags.
But I think it's maybe possible to make a field with the price for one product?

I will try that later.
The administrator has disabled public write access.
  • 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!