This object is in archive! 

Availability Checking blocked

Jessie O. shared this problem 6 years ago
Not a Problem

Checker is no longer working on chrome. It gives a warning in the browser, then "load unsafe scripts" has to be checked for it to work. Is there a way to fix this?

Comments (2)

photo
1

You need to have https:// instead of http:// in the script on your product pages. You have what is below. See bolded.


function checkAvail(item){ startdate = $('[name="'+item+'"]').val(); url = "http://www.inflatableoffice.com/quotes/check_availability.php?callback=?"; + "&name=San+Diego+Bouncers" + "&startdate="+startdate + "&starttime=08:00" + "&duration=16" + "&usecushion=1" + "&showlocations=0" + "&rental_names="+item; $.getJSON( url, function( data ) { var items = []; $.each( data, function( rental_name, qty ) { //items.push( rental_name + ": " + qty + " Available" ); items.push( qty + " Available" ); });

photo
1

I changed both instances of hhtp:// to https:// but it is still not working. Can you please let me know what I did wrong?

photo
1

What page? This page is still wrong: https://www.sdbouncers.com/mini-slide.html

photo
1

These are the two lines im looking at. I used the link above..

photo
1

Looks like you deleted the url= part.

photo
1

Thank you, fixed and also replaced a couple other things that erased during the replacement but now I am getting an error: Account not found available message. Could this be due to the recent name change of adding "LLC"?

photo
1

This:

url= https://www.inflatableoffice.com/quotes/check_availability.php?callback=?

should look like this:

url= "https://www.inflatableoffice.com/quotes/check_availability.php?callback=?";

It should also be on one line. Not having it right is causing javascript errors.

photo
1

Thank you. I just replaced the entire code with what you have on the support page and it worked perfectly. Thanks again.

photo
1

Makes sense. Thank you for the quick reply.

Replies have been locked on this page!