Hello @aradadiya163 ,
I have the same problem, I think it has to do with the new version of woocommerce. (but I’m not sure)
This is the ajax request it sends and what JS error I get:
Uncaught TypeError: Cannot read property 'each' of undefined
at d.processResults (OCCP_backend.js?ver=5.3:23)
at Object.<anonymous> (select2.full.min.js?ver=4.0.3:2)
at Object.<anonymous> (jquery.js?ver=1.12.4-wp:2)
at i (jquery.js?ver=1.12.4-wp:2)
at Object.fireWith [as resolveWith] (jquery.js?ver=1.12.4-wp:2)
at x (jquery.js?ver=1.12.4-wp:4)
at XMLHttpRequest.c (jquery.js?ver=1.12.4-wp:4)
Response of ajax request:
[[796,"Het boek: Jij kan het ook!","<span class=\"woocommerce-Price-amount amount\"><span class=\"woocommerce-Price-currencySymbol\">€<\/span>29.95<\/span>"]]
Edit:
The reason of this error is that Jquery isn’t called properly. You can fix this in the file: OCCP_backend.js line 23 and replace:
$.each( data, function( index, text ) {
with:
jQuery.each( data, function( index, text ) {
-
This reply was modified 5 years, 4 months ago by
nielsvanderknaap. Reason: Added a fix