Forums

[Plugin: Simple Real Estate Pack] Calculator not working on site (12 posts)

  1. sfjoe523
    Member
    Posted 4 months ago #

    Hello,

    I have installed the SREP plugin for the calculators, however they are not working. I enter numbers and there are no results- http://www.lightmortgageco.com/calculator/monthlypayment

    Any help would be greatly appreciated. This plugin looks awesome and I would love to use it on my site!

  2. maxchirkov
    Member
    Posted 4 months ago #

    Hi there,

    you have a JavaScript error caused by a different plugin. Eliminate the error and see if the calculator starts working.

    Here is the error message:

    Uncaught TypeError: Object [object Object] has no method 'datepicker'

    and it's caused by: custom-contact-forms-datepicker.js file.

  3. sfjoe523
    Member
    Posted 4 months ago #

    Thanks for the response Max. I disabled the custom contact form plugin and its still not working.

    Thanks
    Hal

  4. maxchirkov
    Member
    Posted 4 months ago #

    Hal,

    When I look at your source code, I see that you have a broken iFrame tag at the bottom of the page, which separates and deactivates a lot of JavaScript files, including the calculator. Remove or fix the iframe and see what happens.

    Just to make sure, I have installed the plugin (version 1.2.6) on a blank WP blog on my local computer, just a few minutes ago and the calculator works.

    Let me know how it goes.

  5. sfjoe523
    Member
    Posted 4 months ago #

    Thanks Max, I did a clean install of the theme and now it works. Can you see what kind of error you are getting that would cause this site not to work? http://lightrealtyinc.com/calculator

    Thanks!

  6. maxchirkov
    Member
    Posted 4 months ago #

    There are a couple:

    1. Failed to load resource: the server responded with a status of 404 (Not Found): http://lightrealtyinc.com/undefined/wp-content/themes/qualifire/sliders/cycle/cycle1/cycle1_params.php

    2. Uncaught TypeError: Object #<Object> has no method 'first': http://lightrealtyinc.com/calculator: 269

    In case #2 on line 269 you have JavaScript responsible for Testimonials and it throws an error.

  7. sfjoe523
    Member
    Posted 4 months ago #

    I couldnt figure out how to fix the 2 errors for lightrealtyinc.com, so I tried to do a clean install of the theme and try the calculator, but it is still not working on -

    http://www.lightmortgagecompany.com/?page_id=4

    Can you see if its the same error? If so, any idea how I can fix it?

    Thanks Max!

  8. maxchirkov
    Member
    Posted 4 months ago #

    Hal,

    I don't see any of my scripts loaded. They should be loaded in the footer of the site. I assume that this particular theme is missing get_footer() function in the page template, which is a non-conventional way for WP templates. This question should be directed to the theme developer. They probably hard coded footer into the template instead of calling get_footer() function. You can try adding the function yourself to the bottom of the page.php template like this:
    <?php get_footer(); ?>

  9. sfjoe523
    Member
    Posted 4 months ago #

    i actually do see the get_footer function in the page.php , can you email me directly at hallight at hotmail dot com please and I can show you.

    Thanks

  10. maxchirkov
    Member
    Posted 4 months ago #

    Hal,

    I looked at the QualiFire theme you sent me and frankly, I wouldn't even use it. The guys who built it playing tricks and tricked themselves into breaking the footer. Here is how:

    At the bottom of the footer.php file, they encoded a chunk of code - HTML, JavaScript and PHP code into a base64 hash. Any reputable place (like WordPress.org) would band this theme from distribution for this. Anyway, if you delete the code, it breaks the footer. But the encoded PHP in this hash doesn't get executed, it simply gets printed out with HTML. You can see that in the source code of your pages, just look for the line that contains wp_footer(). The wp_footer() function is responsible for printing many javascripts, and that's why the calculators didn't work. Another issue with the encoded code - they included a hardcoded link to an electronic cigarettes company. I think this theme was intended for link building.

    Anyway, to fix the issue above, you can decode their encoded hash (this tool does that http://base64decode.org/) and paste it back into the footer.php instead of the code the does the encoding. Also remove the link. And all should work. Or add the following line at the very end and leave everything as is.

    <?php wp_footer(); ?>
  11. sfjoe523
    Member
    Posted 4 months ago #

    Thanks Max! That worked, you are awesome!

    Have you developed other calculators similar to those on this page-
    http://maximhomeloan.com/loancenter-calculators-default.aspx

    Of course you already have the monthly payment calculator and how much I can afford. I would love to be able to use them!

    Thanks again!

  12. maxchirkov
    Member
    Posted 4 months ago #

    No, I only have those 3 that are included into the Simple Real Estate Pack.

Reply

You must log in to post.

About this Topic