Miko. eCommerce Template

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

calculation (or multiplying) between 2 fields

4 years 3 months ago #1

  • Ronald Sentner's Avatar
  • Ronald Sentner
  • Posts: 7
Dear reader,

I have a question about a booking form.
You can view the form here: www.chiminosisland.com/CMS3/book/16-booking-blog/15-booking

I like to make a calculation (or multiplying) between 2 fields.
In this case field 2 is “NUMBER OF ADULTS”, field 1 is “NUMBER OF NIGHTS”.
At the end price, the price of field 2 needs to be calculated (or multiplied) with field 1.

Example 1: 1 night for 2 adults needs to have a total price of “270” (2x135)
Example 2: 2 night for 2 adults needs to have a total price of “540” (2x270)
Do you have a solution?

Second ‘problem’: there are special prices for KIDS (field 3)
Example 1: 1 night for 2 childs needs to have a total price of “150” (2x75)
Example 1: 2 night for 2 childs needs to have a total price of “300” (2x150)
Do you have a solution?

Third: there must be a combination between a booking with adults AND childs: but how?
I think I can not make field 3 a required field.


Basics: 1 adult per night is 135,-
Basics: 1 child per night is 75,-

Regards, Ronald Sentner

4 years 3 months ago #2

  • Artem's Avatar
  • Artem
  • Posts: 9069
Hi Ronald,

Did I understand correctly?! Should be:
(Number of nights * Number of adults) + (Number of nights * Childs (0-12 years)

If yes, please provide us Joomla admin and FTP access. Use our contact form: support.balbooa.com/contact-us

Also, cart at the end of your form will be disabled

Regards,

4 years 3 months ago #3

  • Ronald Sentner's Avatar
  • Ronald Sentner
  • Posts: 7
Dear Artem,

Thanx for your quick answer!
You got it, this right: (Number of nights * Number of adults) + (Number of nights * Childs (0-12 years).

- What do you mean with: “cart at the end of your form will be disabled”.

- Will it still be possible to pay via PayPal (because cart will be disabled)?

Regards, Ronald

4 years 3 months ago #4

  • Artem's Avatar
  • Artem
  • Posts: 9069
Hi,

Here is the screen:


Total
will be visible and will be possible to pay via PayPal

Regards,

4 years 3 months ago #5

  • Ronald Sentner's Avatar
  • Ronald Sentner
  • Posts: 7
Thanx,

I will discuss this with my client.

Will I still receive an email with all the info what has been filled in?

Regards, Ronald

4 years 3 months ago #6

  • Artem's Avatar
  • Artem
  • Posts: 9069
Ronald Sentner wrote:
Will I still receive an email with all the info what has been filled in?

Yes, sure. Changes you will see only at total, the final price will include (Number of nights * Number of adults) + (Number of nights * Childs (0-12 years).

Regards,

4 years 3 months ago #7

  • Ronald Sentner's Avatar
  • Ronald Sentner
  • Posts: 7
Dear Artem,

It is approved by my client.
The calculation is: (Number of nights * Number of adults) + (Number of nights * Childs (0-12 years)
It is ok if we skip the cart.

We need 2 forms, one form REGULAR SEASON, second form HIGH SEASON.
REGULAR SEASON: Adults: US$ 110.00 per person per night
Kids: US$ 55.00 per child under per night
HIGH SEASON: Adults: US$ 135.00 per person per night
Kids: US$ 75.00 per child per night

By email I will snd you the inlog and FTP.

Regards, Ronald

4 years 3 months ago #8

  • Ronald Sentner's Avatar
  • Ronald Sentner
  • Posts: 7
Dear Artem,

I tried the form online, I filled in all fields, but got an error at the end.
I think this is because the total sum stays at zero dollars.

Error Detected



Your shopping cart is empty.
Total: $ 0


Regards, Ronald

4 years 3 months ago #9

  • Artem's Avatar
  • Artem
  • Posts: 9069
Hello,

Sorry for the late reply, try your form
(Number of nights * Number of adults) + (Number of nights * Childs (0-12 years)

is ready

Regards,

4 years 3 months ago #10

  • Ronald Sentner's Avatar
  • Ronald Sentner
  • Posts: 7
Dear Artem,

Thanx for your help.
I tried the form online, but found out that if I select the number of childs, and I choose 0 (zero) childs, I see the price for 0 childs is 52.
I filled in: 2 nights x 2 adults (230) x 0 childs (52) x 2 rooms. The total price on the form was 564. This is wrong: this needs to be 2 x 230 = 460.
I got an error at the end.
Fatal error: require_once(): Failed opening required '/home/chiminos/domains/chiminosisland.com/public_html/CMS3/components/com_komento/constants.php' (include_path='.:/usr/local/lib/php') in /home/chiminos/domains/chiminosisland.com/public_html/CMS3/components/com_komento/bootstrap.php on line 8

Can you solve this 2 problems?


Regards, Ronald

4 years 3 months ago #11

  • Artem's Avatar
  • Artem
  • Posts: 9069
Hello Ronald,

Open form in the admin panel and replace to your values, remove price from the value Child - 0

Regards,

4 years 2 months ago #12

  • Rebecca's Avatar
  • Rebecca
How was this achieved, as it is something needed for a number of my forms as well.

4 years 2 months ago #13

  • Ronald Sentner's Avatar
  • Ronald Sentner
  • Posts: 7
All forms are working, thanx for the good helpdesk!
Take a look at www.chiminosisland.com/book
I managed to make 3 different forms, 2 for booking, 1 for reservation.

So I am very happy with the result and the help from the helpdesk.

Regards, Ronald
Powered by Kunena Forum