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.

Which calculation to use

  1. Hi Guys,
    Love the plugin but want to do more with it.

    Can you please suggest the best way to create a calculator that adds up item volumes similar to the operation here: http://www.airportselfstorage.co.nz/calculator.html

    Thanks in advance
    Colin

    Posted 7 years ago on Tuesday February 12, 2013 | Permalink
  2. I created a form and used number fields to hold the quantity of each item. None of the fields were required, since the the visitor might not have all the items.

    Then I added a number field and checked "Enable Calculation" and inserted the merge tag for each field, times the cubic feet of storage space required. My formula looked like this:

    ({Refrigerator:1}*18.3)+({Microwave:2}*4.5)+({Wardrobe:3}*24)+({Coffee Table:4}*12)+({Bookcase:5}*5)

    The number field is then updated in real-time with the amount of storage space required. You can download a copy of the XML form here which can be imported into your site under the Forms menu. (Forms > Import/Export then up top "Import Forms") Maybe you can use this as a jumping off point.

    Download the form: http://pastebin.com/raw.php?i=mydzTQxu (save as form.xml on your computer, then import it into your site.)

    Demo: http://gravity.chrishajer.com/storage-calculator/

    Posted 7 years ago on Wednesday February 13, 2013 | Permalink
  3. Hi Chris,

    Thank you very much indeed for taking the time out to reply to my post. This will save me hours of what if's and is exactly what I am after.

    You guys rock !

    Cheers
    Colin

    Posted 7 years ago on Wednesday February 13, 2013 | Permalink
  4. You're welcome. Hopefully you can see from what I have there how to proceed. Ask questions if you have any.

    Posted 7 years ago on Wednesday February 13, 2013 | Permalink