• Hello again and thank you for the help.

    We just noticed that the Wishlist, while it works great in both Firefox (129.0) and Google Chrome (120.0.6099.130), but does not work in Edge. Tested on a latest Windows 10 OS and Edge (120.0.2210.91).

    Here is the console error being logged each time the “Wishlist” button is clicked:

    Uncaught TypeError: Cannot set properties of undefined (setting ‘product_ids’)
    at Object.addToWishlist (addonify-wishlist-public-guest.min.js?ver=88fdffc45cb4:1:3183)
    at L (addonify-wishlist-public-guest.min.js?ver=88fdffc45cb4:1:4144)
    at HTMLButtonElement. (addonify-wishlist-public-guest.min.js?ver=88fdffc45cb4:1:6909)
    at HTMLBodyElement.dispatch (jquery.min.js?ver=826eb77e86b0:2:40035)
    at v.handle (jquery.min.js?ver=826eb77e86b0:2:38006)
    addToWishlist @ addonify-wishlist-public-guest.min.js?ver=88fdffc45cb4:1
    L @ addonify-wishlist-public-guest.min.js?ver=88fdffc45cb4:1
    (anonymous) @ addonify-wishlist-public-guest.min.js?ver=88fdffc45cb4:1
    dispatch @ jquery.min.js?ver=826eb77e86b0:2
    v.handle @ jquery.min.js?ver=826eb77e86b0:2

    Testing things, when we add a break-point to addonify-wishlist-public-guest.min.js before the addToWishlist: function(t) { } function, we see that i is undefined and t is the correct Product ID for which the Wishlist button was clicked for. Moving the breakpoint after var i = this.getProducts(); and we see that i is still undefined which throws the error. Trying to narrow down the function getProducts() and holy cow the amount of minification here is crazy with the function minified as f which is also done for 12 other functions using the same f name ?? So I decided to create this support thread since we don’t have the non minified/original JS file.

    So for now when using Edge we get the full-page element blocking “Invalid security token” popup which for the time being are surpassing using a custom Javascript DOM event listener and restoring the overflow to <body>, so at least for now visitors using Edge can use our site, just the Wishlist buttons don’t function for them. We’ve provided a catalog link to our site for testing, but it occurs on all catalog and product pages where we have the Wishlist button present. Again works get with Firefox & Chrome, just not with Edge.

    Thank you for the help! Appreciate it very much
    Huusoku

    • This topic was modified 7 months, 1 week ago by huusoku.
    • This topic was modified 7 months, 1 week ago by huusoku.

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Author Addonify

    (@addonify)

    Dear @huusoku

    Thank you reporting issue with the edge.

    This is just an initial findings.

    I just checked your website but unfortunately I couldn’t reproduce the issue that you have reported. Here you can find the screencast video. Below are some screenshot that provides additional insight.

    AJAX response is working fine.

    We get “Invalid security token” message when AJAX call fails to get the wishlist content from the backend.

    If you wish to inspect the un-minified version please feel to have a look at this repo.

    I’ll keep this topic open so we can discuss the possible cause of issue and the fix.

    Again, thank you very much.

    Thanks, Anuj

Viewing 1 replies (of 1 total)
  • The topic ‘Not working in MS Edge’ is closed to new replies.