Announcement

Collapse
No announcement yet.

Bug with Terms & Conds in Adv Usr Guide

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Bug with Terms & Conds in Adv Usr Guide

    Hello, on pg 51 in Adv Usr Guide 'Making People Agree to your Terms and Conditions' there is a problem.

    The problem is that when a registered user goes through the checkout and comes to the validation, a javascript error pops up '(!document.forms[0].INVOICEMOVING.checked)' this is because the person hasn't agreed to the terms. there is no option to agree to the terms as it is hidden. this still comes up if the moving box is check in actinic customer account.

    any help much appreciated

    regards
    Raymond Allen
    GraphicBiz
    ----------------------------------------
    GraphicBiz: www.graphicbiz.co.uk
    Order Rubber Stamps Online: www.custom-stamps.co.uk

    #2
    Thanks, Raymond. It should be mentioned in the AUG that this is a workaround solution only if the shopper is not logged in. However, the javascript error is fleeting as it only seems to be displayed in the transfer from one page to the other, and the order can still be placed.

    Ben
    Ben Popplestone
    Ecommerce website software

    Comment


      #3
      Hi Raymond.

      I have a feeling not many people are seeing this error as they tend to disable script debugging in Internet Explorer. You can check by opening Internet Explorer, go to Tools | Internet
      Options, Advanced options and untick 'Disable script debugging (it is under 'Browsing' near the top.)



      You can then check your site. The error popup should not appear, but you may notice a small yellow triangle at bottom left of the browser notifiying you of an error. Can you let me know what happens?

      Thanks in advance.
      Darren

      SellerDeck

      www.sellerdeck.co.uk

      Comment


        #4
        thanks for your replies. i know you can disable the script error messages but i want to know if you there is a piece of script i can add to stop it appearing in browsers that haven't script error messages disabled when a registered user is logged in (fix the problem)
        Raymond Allen
        GraphicBiz
        ----------------------------------------
        GraphicBiz: www.graphicbiz.co.uk
        Order Rubber Stamps Online: www.custom-stamps.co.uk

        Comment


          #5
          Hi there.

          I am in contact with our developers to see if there is a way round it.
          Darren

          SellerDeck

          www.sellerdeck.co.uk

          Comment


            #6
            Hi there.

            We have a fix for you to try:

            1. Please make a backup of your checkout primary before you begin.

            2. Open your checkout Primary for editing, and locate:


            <script language="JavaScript">
            <!--
            /***************************************************************
            *
            * ValidatePage - make sure the required box is ticked
            *
            * Returns: false if the box is unchecked
            *
            ***************************************************************/

            function ValidatePage()
            {
            if (!document.forms[0].INVOICEMOVING.checked)
            {
            alert('Please agree to our terms');
            document.forms[0].INVOICEMOVING.focus();
            return (false);
            }
            return (true);
            }

            // -->
            </script>



            (the code in the Advanced User guide basically).

            And change it to:



            <script language="JavaScript">
            <!--
            /***************************************************************
            *
            * ValidatePage - make sure the required box is ticked
            *
            * Returns: false if the box is unchecked
            *
            ***************************************************************/

            function ValidatePage()


            {

            if (document.forms[0].INVOICEMOVING)
            if (!document.forms[0].INVOICEMOVING.checked)
            {
            alert('Please agree to our terms');
            document.forms[0].INVOICEMOVING.focus();
            return (false);
            }
            return (true);
            }

            // -->
            </script>


            3. Save the template and update your site.

            I have tested the change here and it works, I have requested that the Advanced User Guide be changed to reflect the amended code.

            Thanks for pointing out this error.
            Darren

            SellerDeck

            www.sellerdeck.co.uk

            Comment


              #7
              thanks Darren for sorting out this problem

              regards
              Raymond Allen
              GraphicBiz
              ----------------------------------------
              GraphicBiz: www.graphicbiz.co.uk
              Order Rubber Stamps Online: www.custom-stamps.co.uk

              Comment

              Working...
              X