Jump to content

Modern Cart JavaScript error


Recommended Posts

This page is stuck.  https://hostingpoint24.com/clients/cart.php?a=confproduct&i=3

Here's my error.

main.js:60 Uncaught ReferenceError: WHMCS is not defined
    at recalctotals (main.js:60)
    at cart.php?a=confproduct&i=3:307

 

This is line 60 of main.js

 var post = WHMCS.http.jqClient.post("cart.php", 'ajax=1&a=confproduct&calctotal=true&'+jQuery("#orderfrm").serialize());
    post.done(
        function(data) {
            jQuery("#producttotal").html(data);
        }
    );

 

Here's line 307 of cart.php

<script>recalctotals();</script>

 

What's the fix?

Link to comment
Share on other sites

whenever you see an error like this, and you're using a custom theme, the first thing to try is to switch to using Six - if you do that with your website, then it works fine with no errors.

my suspicion is that your templates/ADK/js/scripts.min.js is out of date compared to the Six equivalent, but there may be other things going on with your template... you'll know better than I what changes you've made.

also, Modern hasn't been updated in years - so that might be worth bearing in mind for the future.

one final weird thing - nothing to do with the template, but I can order multiple quantities of the same SSL cert (assigned the same domain) from your site... that has to be an incorrect setting!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated