PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Price calculation

  1. Taoufik
    Member

    Hi there,

    I'm looking for a way to calculate a total reservation price based on a period of time/days selected from the calender with a fixed daily rate.

    For example:

    Client wants to rent a car for 3 days which will cost $30 a day, when the customer fills in the form and selects start day Monday and end day Wednesday the form should calculate to total price which is $90.

    Can someone help me with this?

    Many thanks in advance

    Posted 11 years ago on Friday July 13, 2012 | Permalink
  2. David Peralty

    The only issue is that there is currently no easy way for Gravity Forms to know the difference between two dates. What I would do is the following:

    Car Rental (Product Field with Price per day)
    Start Date Field
    Number of Days (Number Dropdown Quantity Field)
    Total Field

    Then it will take the price per day, multiply it by the number of days they select and give them a total. You will receive the start date, and the number of days, and as such will know when and for how long they want to book it as well as the price.

    Posted 11 years ago on Friday July 13, 2012 | Permalink