Project ID:
785338
Project Type:
Fixed
Budget:
$30-$250 USD
Project Description:
Hello!
NO SPAM BIDDING. You must send me an message with your details, and you must give me the amount of the variable "var price2 = ;" from the script to even be considered.
I have a piece of javascript that updates prices on a form as it's filled in. I need 3 very simple tweaks (for someone who knows javascript) to this form:
1) The sqr_mtr (variable must scale (ie. the more sq. ft they purchase the cheaper the price per sq. ft becomes)
ie: using something like this (where units is the sq. footage):
function getDiscountPrice(units) {
// Note: It is important to work your way down from max to min amounts!
if (units >= max_units) return 4;
if (units >= 100) return 6;
if (units >= 50) return 8;
if (units >= 25) return 10;
if (units >= 10) return 13;
if (units >= 5) return 16;
if (units >= 2) return 17.50;
if (units == 1) return 19.95;
if (units <= 0) return 0;
}
2 and 3) are the same tweak just different items (one is webbing, the other is rope). Taking the width and length on the form used to determine the square feet, use it to determine the linear feet and time the linear feet by a set price of $1. (I attempted to write this as function updateprice2(form) for the webbing item but it doesn't work at all).
This form is passing variables to VirtueMart - so the output is a set format. The funtion: function updateprice2(form) works and should be used as a guide - (this is the function that needs the scaling sqr_mtr variable)
The form and the scripts are attached.
Turn around is 1 day from when it's awarded. This should take less than 30 minutes for someone who knows javascript. MAXIMUM BID THAT WILL BE ACCEPTED IS $30 - that will be put in ESCROW to the winning bidder and not released until a WORKING version of the javascript is delivered.
Skills required:
Javascript
Additional Files:
formcode.txt
javascript.txt