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.

Calculating price based on number of weeks

  1. kruczosmuczos
    Member

    Hi there,

    I would like to ask if your forms can handle this issue (hopefully!)

    I have a website based on Woocommerce where I rent some stuff based on a :

    - price of each
    - number of weeks
    + delivery

    Please bear in mind that this rental depends on a number of weeks as well. To explain further..

    The total price of an item(s) is calculated (based) per one week + plus delivery.

    So what I need is when a customer books items for one week, pays costs of this week. When customer hires for 2 weeks, this price is doubled..when three weeks is tripled and so on regardless of quantity of items, just the total cost of hire per week.

    I can calculate everything apart from a number of weeks on woocomerce. Please note that it does not have to calculate exactly based on calendar. Just it should be stated :

    '1 week' = total cost
    '2 weeks' = total cost x 2
    '3 weeks' = total costs x 3 and so forth. These can be done as radio buttons or drop down menus or quantity field with a number of weeks. It does not matter how.

    Once is calculated it should add total costs + delivery, which I already have.

    Example:

    1 platic box cost of rental per week = £ 1.00
    I hiire 10 = £10

    This is price for one week, but I want for 2 weeks, so I need to pay £20 + delivery.
    Now.

    1) is it achievable?
    2) can it be merged with woocommerce?
    3) if not can it be inserted in a different way?
    4) help!

    Thanks a lot.

    Posted 11 years ago on Friday February 8, 2013 | Permalink
  2. The rental is the product and the number of weeks is the quantity. Can't you 'sell' some quantity of weeks? I don't think there is anything difficult about it, unless I am overlooking some requirement.

    Posted 11 years ago on Friday February 8, 2013 | Permalink
  3. kruczosmuczos
    Member

    Thank you.

    I am afraid you did.

    please take a look:

    crateshirereading.co.uk

    Posted 11 years ago on Friday February 8, 2013 | Permalink
  4. I'm not clear from that site what requirement I missed. Is it that you have a quantity of one item for rent, times the number of weeks. Is that correct?

    Posted 11 years ago on Friday February 8, 2013 | Permalink
  5. kruczosmuczos
    Member

    No.

    Whatever you order is calculated per week only. This is a starting point and my issue because I am unable to calculate it for a greater number of weeks. In addition, I have to send another invoice for same amount if somebody rents for two weeks.

    For example, you order 10 crates for one week and the cost you need to pay is for one week only . Simple as that. But what happens when you order same number of crates for two weeks? Same. you have to pay same amount...becuase there is no implemenation of this kind of script. This is why I need to multiply this amount x no. of weeks on checkout without a need to send another invoice.

    Simply, please add 10 crates, try to go through checkout..and there is in fact an option misssing for how long you want to rent for...

    Whatever you need to pay is (quantity x single crate cost x no.of weeks) + delivery.

    Is that OK now?

    Cheers mate

    Posted 11 years ago on Friday February 8, 2013 | Permalink
  6. kruczosmuczos
    Member

    Any ideas?

    Posted 11 years ago on Sunday February 10, 2013 | Permalink
  7. Sorry, I thought I responded to this one. I see the issue now. You have two quantities basically, the number of crates and the number of weeks. I'm not sure how this will work with woocommerce, but I think you can do this in Gravity Forms. See this page:

    http://gravity.chrishajer.com/calculate-price-by-quantity-and-week/

    I created a product and gave it a price, then created an option attached to that product, and number the option choices 1 through 8 (for number of weeks). The first option, 1 week, is preselected, and does not add any cost. Two weeks adds the cost of the product again, and since the quantity is attached to the product, each option is added that many times as well. Test the form and see the live total change and see if this accomplished what you want.

    You might be able to do this with a number field and then use calculations, but I thought that would be less likely to work with woocommerce. I think they support products and options at the very least. Let us know if this helps.

    Posted 11 years ago on Thursday February 14, 2013 | Permalink