Jotform Integration with Wordpress and Paypal with Custom Script

Closed

I need to troubleshoot and fix a custom function I need on a client's wordpress website. I need to make this form:

[url removed, login to view]

To use the below script successfully be used in wordpress either through an html insert plugin, or any other way.

-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

(function () {

var limit = 10, // Number of words beyond which an extra charge per word applies (edit accordingly)

bizRate = [url removed, login to view], // Business charge for 10 words (edit accordingly)

nonBizRate = [url removed, login to view], // Non-business charge for 10 words (edit accordingly)

chargePerExtra = [url removed, login to view], // Charge for each word beyond limit (edit accordingly)

photosCharge = [url removed, login to view], // Charge for photos

// *** EDIT NOTHING BELOW! ***

bizYesNo = [url removed, login to view]("q26_isThis"), // Business ad?

adText = [url removed, login to view]("input_11"), // Text area

wordCount = [url removed, login to view]("input_11-limit"), // Word counter below Ad Text

photosYesNo = [url removed, login to view]("q25_doYou"), // Photos included?

duration = [url removed, login to view]("input_20"), // Number of weeks

total = [url removed, login to view]("input_24_donation"); // Box containing total

bizYesNo[0].onclick = bizYesNo[1].onclick = [url removed, login to view] =

photosYesNo[0].onclick = photosYesNo[1].onclick = [url removed, login to view] = calculate;

function AdText() {

var w = parseFloat([url removed, login to view]),

x = w - limit;

if (bizYesNo[0].checked && w > 0 && w 0 && w limit) {

return bizRate + x * chargePerExtra;

} else if (bizYesNo[1].checked && w > limit) {

return nonBizRate + x * chargePerExtra;

} else {

return 0;

}

}

function PhotosYesNo() {

if (photosYesNo[0].checked) {

return photosCharge;

}

return 0;

}

function weeks() {

var options = [url removed, login to view],

selected = [url removed, login to view],

week = options[selected].index;

for (var i = 0, j = [url removed, login to view]; i < j; i++) {

if (week === i) {

week = i;

}

}

return week;

}

function calculate() {

if ((bizYesNo[0].checked || bizYesNo[1].checked) && adText !== "" &&

(photosYesNo[0].checked || photosYesNo[1].checked) && weeks() !== 0) {

[url removed, login to view] = ((AdText() + PhotosYesNo()) * weeks()).toFixed(2);

}

if ([url removed, login to view] === "[url removed, login to view]") {

[url removed, login to view] = "";

}

}

[url removed, login to view] = function () {

[url removed, login to view]();

};

})();

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Skills: Javascript, PHP, WordPress

See more: s wordpress, php integration with html, paypal x, box integration, custom function php, wordpress paypal plugin form, paypal wordpress form, paypal html form php, paypal php return, paypal form wordpress, html form php wordpress, php script edit word document, calculate var number, integration wordpress website, calculate total wordpress plugin, edit wordpress website, custom function wordpress, paypal plugin form wordpress, counter script html, word edit script, bizrate script, website value script php, paypal php wordpress, wordpress paypal options, website value script

About the Employer:
( 0 reviews ) Rochester, United States

Project ID: #5033970

1 freelancer is bidding on average $33 for this job

dinastalb

Hello, I am John Profit. I work with my partners Marlen and Van at Netronian Inc., in Orlando, Florida. We have great experience with Magento. 80% of our developed websites are Magento websites. We are the masters More

$90 USD in 15 days
(13 Reviews)
5.9
codeware123

Hello, I have gone through your project’s initial requirements with the help of the job posting you have placed. And I think I have requisite experience and expertise to complete your project successfully. I am very More

$33 USD in 3 days
(1 Review)
0.0