Announcement

Collapse
No announcement yet.

Another PROD Page Related Products issue - javascript not firing

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

    Another PROD Page Related Products issue - javascript not firing

    I've got another Related Products issue - the javascript is not firing. I've gone so far as creating a whole test template to keep the page code to the bare minimum.

    http://dev.directtools.com/product/FES574422.html

    It should be noted that this is an older version of Iron & Wool, so old it doesn't have a version number but it was applied on 5/8/2015.

    On a side note, it sure would be nice if the ReadyTheme had the ability to create a "child theme" so that the core theme could be kept current.
    Leslie Kirk
    Miva Certified Developer
    Miva Merchant Specialist since 1997
    Previously of Webs Your Way
    (aka Leslie Nord leslienord)

    Email me: [email protected]
    www.lesliekirk.com

    Follow me: Twitter | Facebook | FourSquare | Pinterest | Flickr

    #2
    The JS is the scripts.js file triggers functions on each page based on the body id. The body id needs to be js-PROD for the js to run correctly. Looking at your page yours is js-PROD_TEST. In your alternate PROD page template change the body id to js-PROD and it should fire the JS
    Brennan Heyde
    VP Product
    Miva, Inc.
    [email protected]
    https://www.miva.com

    Comment


      #3
      I love it when I overlook the simple stuff, but changing the body id to js-PROD didn't fix it in this case.
      Leslie Kirk
      Miva Certified Developer
      Miva Merchant Specialist since 1997
      Previously of Webs Your Way
      (aka Leslie Nord leslienord)

      Email me: [email protected]
      www.lesliekirk.com

      Follow me: Twitter | Facebook | FourSquare | Pinterest | Flickr

      Comment


        #4
        It looks like might be missing the ReadyThemes theme settings content item for that page.
        Matt Zimmermann

        Miva Web Developer
        Alchemy Web Development
        https://www.alchemywebdev.com
        Site Development - Maintenance - Consultation

        Miva Certified Developer
        Miva Professional Developer

        https://www.dev4web.net | Twitter

        Comment


          #5
          Originally posted by Matt Zimmermann View Post
          It looks like might be missing the ReadyThemes theme settings content item for that page.
          Yes, I had intentionally left it "off". I turned it back on and it's still not firing.
          Leslie Kirk
          Miva Certified Developer
          Miva Merchant Specialist since 1997
          Previously of Webs Your Way
          (aka Leslie Nord leslienord)

          Email me: [email protected]
          www.lesliekirk.com

          Follow me: Twitter | Facebook | FourSquare | Pinterest | Flickr

          Comment


            #6
            Check that you have the theme path set in the theme settings for scripts and the MVT is set in the HEAD tag; without it the JavaScript will throw errors.
            HTML Code:
            <script>
            var theme_path = "&mvtj:global:theme_path;";
            </script>
            Matt Zimmermann

            Miva Web Developer
            Alchemy Web Development
            https://www.alchemywebdev.com
            Site Development - Maintenance - Consultation

            Miva Certified Developer
            Miva Professional Developer

            https://www.dev4web.net | Twitter

            Comment


              #7
              This is an older version of the ReadyTheme which I don't think it used this snippet because there is no separate folder for the theme itself.
              Leslie Kirk
              Miva Certified Developer
              Miva Merchant Specialist since 1997
              Previously of Webs Your Way
              (aka Leslie Nord leslienord)

              Email me: [email protected]
              www.lesliekirk.com

              Follow me: Twitter | Facebook | FourSquare | Pinterest | Flickr

              Comment


                #8
                The scripts.js file you are using is looking for the theme_path variable. You will need to either set it to be relative to the actual location of the JS folder or edit the scripts.js file to update for the fact that there is no theme folder structure.
                Matt Zimmermann

                Miva Web Developer
                Alchemy Web Development
                https://www.alchemywebdev.com
                Site Development - Maintenance - Consultation

                Miva Certified Developer
                Miva Professional Developer

                https://www.dev4web.net | Twitter

                Comment


                  #9
                  Originally posted by Matt Zimmermann View Post
                  The scripts.js file you are using is looking for the theme_path variable. You will need to either set it to be relative to the actual location of the JS folder or edit the scripts.js file to update for the fact that there is no theme folder structure.
                  Okay, I put the original scripts.js file back in place, since that didn't work I'll make edits to the previous scripts.js file and see if that works.

                  Leslie Kirk
                  Miva Certified Developer
                  Miva Merchant Specialist since 1997
                  Previously of Webs Your Way
                  (aka Leslie Nord leslienord)

                  Email me: [email protected]
                  www.lesliekirk.com

                  Follow me: Twitter | Facebook | FourSquare | Pinterest | Flickr

                  Comment


                    #10
                    After much banging of my head against my desk I discovered there was a small typo in a css file name. Somehow I had /css/sliders.css when the file name on the server was /css/slider.css.

                    It's working now
                    Last edited by lesliekirk; 12-23-20, 04:34 AM.
                    Leslie Kirk
                    Miva Certified Developer
                    Miva Merchant Specialist since 1997
                    Previously of Webs Your Way
                    (aka Leslie Nord leslienord)

                    Email me: [email protected]
                    www.lesliekirk.com

                    Follow me: Twitter | Facebook | FourSquare | Pinterest | Flickr

                    Comment


                      #11
                      I have been scouring all over the forum because I have had an ongoing problem with how our website is functioning. This is an old post I am resurrecting but I can see that the Iron and Wool Themed web url that lesliekirk links to in the original post has a malfunctioning website as well, and it also appears that is is only misbehaving at times.

                      We currently use the Iron and Wool Theme. The product pages only erratically work. It depends if the supporting javascript actually loads. When it doesn't, the product page attribute menu pricing no longer works and the related products load with the first one missing and all the others in a vertical column. The only error I can see is that a MivaEvent call is not found. I know the Iron and Wool theme is legacy. I am working on a new Shadows site but currently our website pricing functionality is broken. Has anyone else run into this problem and come up with a solution?

                      I worked with Miva support for over a month on this and I think they just gave up and assigned the problem as a "browser-related problem." There is no doubt that the problem is predominantly in Safari but I have recreated it in other browsers. I tried deferred loading of Javascript, put it back, etc etc. Nothing seems to fix the timely loading of javascript so that the MivaEvent fires reliably. Any ideas from other Iron and Wool users? I need to get this patched for a couple more months!
                      Katie Sorensen
                      Design Quest Furniture

                      http://www.designquest.biz

                      Comment


                        #12
                        When you say no errors, are you talking about console errors when the web's UI fails?

                        It could very well be browser dependent (even more so based on settings). For example, there's now a setting in Chrome that will fail is ANY part of a resource call is non-https. For example, we saw this where a (laughably so) an SSL cert javascript function didn't set the image call to specifically be https://. That stopped ALL javascript downstream from firing. And only issued a warning...not an error.
                        Bruce Golub
                        Phosphor Media - "Your Success is our Business"

                        Improve Your Customer Service | Get MORE Customers | Edit CSS/Javascript/HTML Easily | Make Your Site Faster | Get Indexed by Google | Free Modules | Follow Us on Facebook
                        phosphormedia.com

                        Comment


                          #13
                          That is interesting. I will do a check on any of the javascript calls that I added some years ago. For sure, it is possible that Safari has updated something and 'broken" my website. Can you clarify for me - even though the MivaEvent that is not firing is contained in the Iron and Wool scripts.js file, it is possible that another js file is not being called securely and affecting the loading. I understand that correctly? I am uploading an image with screenshot of the console error I see. No other errors other than the usual "strict-dynamic" problem that I have seen for years.

                          Screen Shot 2020-12-23 at 10.14.35 AM.png
                          Attached Files
                          Katie Sorensen
                          Design Quest Furniture

                          http://www.designquest.biz

                          Comment


                            #14
                            Do you have a URL we can look at?
                            Bruce Golub
                            Phosphor Media - "Your Success is our Business"

                            Improve Your Customer Service | Get MORE Customers | Edit CSS/Javascript/HTML Easily | Make Your Site Faster | Get Indexed by Google | Free Modules | Follow Us on Facebook
                            phosphormedia.com

                            Comment


                              #15
                              I would love you to. The header and footer seem to be such a mess to me. So many people (me especially) have added javascript files. For some reason I could never get the added javascript to load from the themes file, even though I see them listed, so I have to add them in the footer. I did confirm that there are no calls for non-https javascript files. I played around with moving the load order of the javascript files but it breaks my easytabs.js and qipt.js. I know these scripts are old. Can't wait to get rid of the old and move onto the new but just need to make it work for a little bit longer. Thanks for taking a peek.

                              Just to be clear, I mostly see the problem in Safari, although it can occur in Chrome and Firefox if the connection is slow. I have checked on numerous devices, mobile, desktop, old, new. There is erratic loading of the script.js and it just breaks the attributes and related products. I saw the same problem displaying, just yesterday, on the linked page from the website lesliekirk posted at the beginning of this topic. This makes me question if it is an Iron and Wool problem?

                              Here's a complicated product page. Try navigating around to other recliners or sofas. It really seems to be the pages with tons of attributes and swatches that don't load in time.

                              https://www.designquest.biz/stressle...ture-base.html
                              Katie Sorensen
                              Design Quest Furniture

                              http://www.designquest.biz

                              Comment

                              Working...
                              X