Home Forums General Issues getting an acf form value & calculating it


getting an acf form value & calculating it

  • i’m trying to make a rental calendar for my woocommerce site. let’s say there are 2 datepickers in a form that requests the delivery & return dates of a rental product. i will need to replace the submission button with some sort of “apply” button to calculate the price based on how many days that product is rented.

    what i want to know is how i can get the start & end dates from the form & take that value to the formula, which is

    final price = base price + (base price * (days rented – 4) / 20)

    & set a minimum rent period of 4 days (send a warning if the days rented is less than 4), so that the formula won’t give negative result.

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.