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.

Cycle rental form

  1. Hi,

    I'm trying to create a form for a cycle rental business. I can't seem to figure it out how I should do this so hopefully someone could point me in the right direction.

    Okay, here is some info about what I am trying to do. They have two types of cycles to rent, adult and childrens cycles. The adult cycle can be rent by the hour for 3$ or by the day for 15$. The childrens cycle can only be rent by the day for 10$.

    There is two options to add to the rental: childs seat 5$/day and helmet 2$/day.

    They also take a 50$ deposit for each rental. The customers should be able to pay directly through the form with PayPal.

    How could I accomplish this? Is it possible?

    Thank you in advance!

    Posted 10 years ago on Friday June 21, 2013 | Permalink
  2. David Peralty

    So you would create a product drop down where the choice is Adult Hourly or Adult Daily. Then you would have a Quantity field attached to that product. You could also have a regular drop down that says "Child Bike?" yes/no. Then use conditional logic to show/hide a product for renting a child's bike. Then you could add your options field, tie it to the product you want.

    Then you could add another product field called "Deposit" for $50.

    Finally, add a total field so that you can see the running total, and integrate with our Paypal add-on. Should be completely possible. All my best!

    Posted 10 years ago on Friday June 21, 2013 | Permalink
  3. Thank you very much. That will help me alot.

    How would I do with calculating how many hours or days they want to rent? I would obviously have a date field specifying when they want to rent the cycles and depending on hourly or daily rent they would also choose a returning date or pick-up time and returning time. But how would I get the form to calculate this?

    Thanks again in advance!

    Posted 10 years ago on Friday June 21, 2013 | Permalink
  4. David Peralty

    The quantity field tied to a product helps auto-create a calculation that can be shown as a result in the total field. Don't use the date field to calculate anything. Just have a quantity field. So your product drop down would be

    Adult Hourly | $3
    Adult Daily | $15

    You would have a quantity field, so if they selected Adult Hourly and typed in 3 then the total field should show $9. Try it out and let me know if you have any issues.

    Posted 10 years ago on Friday June 21, 2013 | Permalink
  5. Maybe this should help you too http://gravitywiz.com/calculate-number-of-days-between-two-dates/

    Posted 10 years ago on Saturday June 22, 2013 | Permalink
  6. Thanks again! How would I do if they want to rent more than one cycle? I tried to add two quantity fields to the adult cycle product but only one field gets counted.

    Posted 10 years ago on Sunday June 23, 2013 | Permalink
  7. Is it possible to have two quantity fields connected to one product field? I need to specify how many cycles they need and how many days they want to rent. Or should I use other form elements? Thanks!

    Posted 10 years ago on Monday June 24, 2013 | Permalink
  8. David Peralty

    You can't use multiple quantity fields on a single product. You could use a product calculation field which could then have a number field associated with it, and a calculation that would multiply the selections, so by default, it would be multiplied by 1, but if they changed the number field to 8, then it would add up all the choices and multiply by eight. It might be complicated to do, but that's the only way I can think to do it currently.

    Posted 10 years ago on Monday June 24, 2013 | Permalink
  9. David Peralty

    At this point, you might want to think about looking at true e-commerce options like WooCommerce and Cart66 as they may make such features easier in combination with Gravity Forms as they allow shopping carts.

    Posted 10 years ago on Monday June 24, 2013 | Permalink

This topic has been resolved and has been closed to new replies.