• Hi,

    When I update my cart items secondly (quantity) it fails with the following JS errors:

    destination?id=G-HP…za204:169 
    Uncaught RangeError: Maximum call stack size exceeded
    at RegExp.exec (<anonymous>)
    at Sc (destination?id=G-HP…za204:169:124)
    at Uc (destination?id=G-HP…za204:169:307)
    at kz (destination?id=G-HP…za204:525:426)
    at a (destination?id=G-HP…za204:532:41)
    at destination?id=G-HP…za204:533:135
    at Array.map (<anonymous>)
    at Hz.b.push (destination?id=G-HP…za204:533:112)
    at window.dataLayer.push (<anonymous>:2:122)
    at Hz.b.push (destination?id=G-HP…za204:533:170)

    destination?id=G-HP…za204:169
    Uncaught RangeError: Maximum call stack size exceeded
    at RegExp.exec (<anonymous>)
    at Sc (destination?id=G-HP…za204:169:124)
    at kz (destination?id=G-HP…za204:525:408)
    at a (destination?id=G-HP…za204:532:41)
    at destination?id=G-HP…za204:533:135
    at Array.map (<anonymous>)
    at Hz.b.push (destination?id=G-HP…za204:533:112)
    at window.dataLayer.push (<anonymous>:2:122)
    at Hz.b.push (destination?id=G-HP…za204:533:170)
    at window.dataLayer.push (<anonymous>:2:122)

    Steps to reproduce:

    1. Add at list one item to the cart
    2. Go to the cart page
    3. Update the cart by changing some product quantity and clicking an “update cart” button
    4. Do the similar action again (the third item in the list)

    Some information regarding the setup:

    1. Litespeed optimized website (plugin + server), PHP version 8.1
    2. Avada theme 7.11.7 + a child theme
    3. GTM Server Side plugin version is 2.1.23

    P.S. It works when I deactivate gtm-server-side plugin.

    Kind regards,

    Yaroslav

The topic ‘Second “update cart” event failure’ is closed to new replies.