Announcement

Collapse
No announcement yet.

js-increase-quantity stopped working

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

    js-increase-quantity stopped working

    Hi, here I go again :-)

    Recently I started to have problems with my scripts. Just fixed the zoom image-machine with the eminent help by tech support.
    Now I noticed that js-increase-quantity stopped working on the master product pages. Strangely the same script fires just fine on the
    "Quickview" pop-up. Example from my category "Made in Sweden".

    Product page - the counter want budge.
    https://www.cigarrummet.com/produkt/annund.html
    Error in console:
    all-js.php?file=scripts:11 Uncaught ReferenceError: MivaEvents is not defined
    at Object.jsPROD (all-js.php?file=scripts:11)
    at all-js.php?file=scripts:2
    at Object.init (all-js.php?file=scripts:2)
    at all-js.php?file=scripts:21

    The Quickview works just fine!
    https://www.cigarrummet.com/produkt/...show=quickview

    And the script works fine directly after Preview function... but stops on update page

    All the best from Stockholm, Sweden.

    André

    #2
    Hi André,

    Is this happening in a specific browser or browser/OS combination? I tested it the page in Chrome, Firefox, and Edge with them all working as expected.
    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


      #3
      Hello Matt, I had it working on Internet Explorer 11 of all browsers (!) on my old file server. But not in Chrome, Edge, Opera on Win 10 or IOS (Chrome, Safari). Nothing happening on klicking on increase button. But it started to function if I klicked on any other script like carousel, browse related items or even zoom or preview. Fucions everytime on Preview pop-up.

      But our customers learned to change it manually by Writing the corect number. I created a ticket and and got help:

      "Your "all-js.php" file attempted to run the MivaEvents function before it had been defined. To fix that, I added the 'defer' attribute to that script (in your website's Global Footer) so it loads after the HTML document has been fully parsed. We are no longer able to replicate the console errors after making this change,
      "

      So problem is solved. :-) Still I get it on some cached devices...

      Thanks!

      Last edited by Protos; 09-04-19, 09:00 PM.

      Comment

      Working...
      X