Issue in Nop comm plugin 4.1

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
3 года назад
Hi Team,
Hope all are doing well,

I'm facing onw issue in nop nomm plugin 4.1 .
I installed plugin successfully but when i checkout my item from plugin its shows the error in browser console.

JQMIGRATE: Migrate is installed, version 3.0.1
public.common.js:138 Uncaught TypeError: Cannot read property 'dataset' of null
    at displayBarNotification (public.common.js:138)
    at Object.success_process [as success] (public.ajaxcart.js:99)
    at u (jquery-3.3.1.min.js:2)
    at Object.fireWith [as resolveWith] (jquery-3.3.1.min.js:2)
    at k (jquery-3.3.1.min.js:2)
    at XMLHttpRequest.<anonymous> (jquery-3.3.1.min.js:2)


Please help me for this.

Thanks
3 года назад
Going to need to see more code, how are you calling the ajax add to cart?

Line 138 in public.common.js is:
var content = document.createElement('p');


So if you're seeing "Cannot read property 'dataset' of null" it means the DOM isn't loaded (document is null).

Line 98 in public.ajaxcart.js is just after:

                    //specify timeout for success messages
                    displayBarNotification(response.message, 'success', 3500);


So if I had to guess your add to cart is actually timing out.  You'll need to set break points to step through and see what's happening.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.