Announcement

Collapse
No announcement yet.

Javascript error : g_arrCountries upgrading V9-V11

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

    Javascript error : g_arrCountries upgrading V9-V11

    I have the problem in V11 after upgrading from V9

    Javascript error in cart part 2 = g_arrCountries is not defined

    I'm a French user...
    Attached Files
    "LABOR IMPROBUS OMNIA VINCIT"

    #2
    Bonjour Guerbet,

    This error usually occurs because some important Javascript is missing from the iside the <head> tags of the document.

    I usually recommend people compare the contents of the <head> tag in a default V11 theme with their own upgraded one. You should be able to spot the missing javascript when you compare:

    Note:
    You should have the following in your head tag.

    Code:
     <actinic:block  if="%3cactinic%3avariable%20name%3d%22PageType%22%20%2f%3e%20%3d%3d%20%22Checkout%20Page%200%22%20%7c%7c%20%3cactinic%3avariable%20name%3d%22PageType%22%20%2f%3e%20%3d%3d%20%22Add%20To%20Cart%20Confirmation%22"  >
            <actinic:variable name="Javascript Country State Maps" selectable="false" />    
        </actinic:block>
    The above is the code copied and pasted from Actinic.

    Visually, in the design tab, it "looks" more like:

    Block If
    Javascript Country State Maps
    /Block
    Fergus Weir - teclan ltd
    Ecommerce Digital Marketing

    SellerDeck Responsive Web Design

    SellerDeck Hosting
    SellerDeck Digital Marketing

    Comment


      #3
      In which page do I have to paste this code ?

      I pasted it in Javascript Header Functions, but It doesn't work...

      Please give me more informations...
      "LABOR IMPROBUS OMNIA VINCIT"

      Comment


        #4
        That should be the correct place.

        Again, I'd compare the head area with one of the default V11 theme's overall layout.
        Here's a screenshot of it in my default:

        Click image for larger version

Name:	country_js.jpg
Views:	1
Size:	86.8 KB
ID:	544582


        I would say however, that it will all depend on other aspects of your site.
        If it is heavily customised by someone else, and you are not familiar with the design tab in Actinic I would strongly recommend getting help to upgrade the site. You could potentially end up spending hours and hours trying to resolve it yourself.
        Fergus Weir - teclan ltd
        Ecommerce Digital Marketing

        SellerDeck Responsive Web Design

        SellerDeck Hosting
        SellerDeck Digital Marketing

        Comment


          #5
          After removing the "Block if" it seems to work properly

          Why ?

          I have another problem... When I connected my account after ordering and publishing... the account is visible but not the order...

          Thanks for all
          Attached Files
          "LABOR IMPROBUS OMNIA VINCIT"

          Comment


            #6
            Originally posted by BGUERBET View Post
            After removing the "Block if" it seems to work properly

            Why ?
            The block code simply ensures it only displays on the checkout pages, where it is required. Removing it will mean it is accessible on every page.

            Originally posted by BGUERBET View Post
            I have another problem... When I connected my account after ordering and publishing... the account is visible but not the order...

            Thanks for all
            What is the status of the order? Have you tried accessing the order with just the number?
            Alternatively did you ensure you were logged in when ordering? Is the order associated to the correct account?
            Fergus Weir - teclan ltd
            Ecommerce Digital Marketing

            SellerDeck Responsive Web Design

            SellerDeck Hosting
            SellerDeck Digital Marketing

            Comment


              #7
              Originally posted by fergusw View Post
              The block code simply ensures it only displays on the checkout pages, where it is required. Removing it will mean it is accessible on every page.
              For that, I know what is "block" code... but I don't understand why it gives me error when I keep it...

              Originally posted by fergusw View Post
              What is the status of the order? Have you tried accessing the order with just the number?
              Alternatively did you ensure you were logged in when ordering? Is the order associated to the correct account?
              I tried to access with order number but it doen't found any order. For ordering I was logged in. The order is associated with the correct account...

              You can try it on http://www.bienmoinscher.com/bmc/test/bmc/index.html

              the order sync is all 60 seconds...
              "LABOR IMPROBUS OMNIA VINCIT"

              Comment


                #8
                Guerbet,
                We cannot help much further unless you give us more information.
                e.g. Order Number as example to check on, or demo customer account with order for testing

                Also you did not answer my question about the "status of the order".

                Without more information it is difficult to help. Je suis désolé
                Fergus Weir - teclan ltd
                Ecommerce Digital Marketing

                SellerDeck Responsive Web Design

                SellerDeck Hosting
                SellerDeck Digital Marketing

                Comment


                  #9
                  Also you did not answer my question about the "status of the order".
                  Just Order received or Payment received + Publishing
                  "LABOR IMPROBUS OMNIA VINCIT"

                  Comment

                  Working...
                  X