Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • 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\">&euro;<\/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
    Thread Starter nielsvanderknaap

    (@nielsvanderknaap)

    Hi Richteam,

    Thanks for your awnser, but this isn’t what I meant. I already imported the 3500 images in the slider. But now if I go to the frontend of the page where the slider is its first loading all the 3500 images and after that showing the page with the slider.

    What I want is that the slider loads like 5 pictures at a time trough ajax.

    Is that possible?

Viewing 2 replies - 1 through 2 (of 2 total)