Forum Replies Created

Viewing 15 replies - 1 through 15 (of 20 total)
  • nakuable

    (@nakuable)

    Dear Benjamin,

    Can you help me?

    Thank you very much for your help.

    Best regards.

    Dear Benjamin,

    Sorry for so much message, but I’m trying to solve the issue.

    I compare te console from deveopers tools of Google Chrome and I see some issues in my child Theme that I don’t have in my father theme:

    jquery.min.js:2 jQuery.Deferred exception: Cannot read property 'indexOf' of undefined TypeError: Cannot read property 'indexOf' of undefined
        at r.fn.init.r.fn.load (https://ajax.googleapis.com/ajax/libs/jquery/3.2.0/jquery.min.js:4:18876)
        at HTMLImageElement.<anonymous> (https://myweb.com/wp-content/plugins/wp-1-slider/js/jquery.bxslider.min.js?ver=1.2.3:10:4394)
        at Function.each (https://ajax.googleapis.com/ajax/libs/jquery/3.2.0/jquery.min.js:2:2715)
        at r.fn.init.each (https://ajax.googleapis.com/ajax/libs/jquery/3.2.0/jquery.min.js:2:1003)
        at HTMLImageElement.<anonymous> (https://myweb.com/wp-content/plugins/wp-1-slider/js/jquery.bxslider.min.js?ver=1.2.3:10:4355)
        at Function.each (https://ajax.googleapis.com/ajax/libs/jquery/3.2.0/jquery.min.js:2:2715)
        at r.fn.init.each (https://ajax.googleapis.com/ajax/libs/jquery/3.2.0/jquery.min.js:2:1003)
        at g (https://myweb.com/wp-content/plugins/wp-1-slider/js/jquery.bxslider.min.js?ver=1.2.3:10:4295)
        at c (https://myweb.com/wp-content/plugins/wp-1-slider/js/jquery.bxslider.min.js?ver=1.2.3:10:4180)
        at d (https://myweb.com/wp-content/plugins/wp-1-slider/js/jquery.bxslider.min.js?ver=1.2.3:10:2570) undefined
    
    and
    
    Uncaught TypeError: Cannot read property 'indexOf' of undefined
        at r.fn.init.r.fn.load (jquery.min.js:4)
        at HTMLImageElement.<anonymous> (jquery.bxslider.min.js?ver=1.2.3:10)
        at Function.each (jquery.min.js:2)
        at r.fn.init.each (jquery.min.js:2)
        at HTMLImageElement.<anonymous> (jquery.bxslider.min.js?ver=1.2.3:10)
        at Function.each (jquery.min.js:2)
        at r.fn.init.each (jquery.min.js:2)
        at g (jquery.bxslider.min.js?ver=1.2.3:10)
        at c (jquery.bxslider.min.js?ver=1.2.3:10)
        at d (jquery.bxslider.min.js?ver=1.2.3:10)

    Any idea?

    Thnak you very much for your help.

    • This reply was modified 3 months, 1 week ago by Jan Dembowski.
    • This reply was modified 3 months, 1 week ago by Jan Dembowski. Reason: Formatting

    Dear Benjamin,

    I tried to put the slider into my father theme (Obviously I’m using Child Theme) and for my surprise your plugin works fine there but no in my Child theme.

    What do you think can be?

    Thank you very much for your help.

    Best regards.

    Dear Benjamin,

    I tried to disable all Plugins and I continue having the same Issue.

    I tried to add in other part of my home page, and I have a different issue.

    To can see this issues please access to the website with /*DomainName*dev/
    For example if the domain is Google you need write:
    google.com/googledev/

    Thank you very much for your help.

    Best regards.

    nakuable

    (@nakuable)

    Hello Dima,

    I put a rule for no cache the filters, and now is working OK.

    Then, the issue is fix it.

    Thank you very much for your help.

    Best regards.

    nakuable

    (@nakuable)

    Hello Dima,

    Thank you very much for your help.

    I have ‘SEO friendly urls’ on.

    I going to try add a rule for your filters, but I need help.
    I can add filter like as ‘wp-.*\.php’ or ‘index\.php’, please, can you help me to check it?

    Thank you very much for your help.

    nakuable

    (@nakuable)

    Hello all,

    Now I can see the message “no products found” but I continue having the issue with cache plugin.

    How I be able to fix it?

    Thank you very much for your help.

    Best regards.

    nakuable

    (@nakuable)

    Hello all,

    I think that now is OK.

    I had change the selectors, uncheck “Use GET query instead POST for filtering” and use jQuery Fix, but I have a new issue in my web. How I have a Cache plugin (WP Super Cache) if I have it activate, your jQuery Fix don’t work and the filtering is always loading.

    If I disable the Cache plugin, your jQuery fix works well, but if I select filters without product, your plugin show me all product and no show me a message “no products found”.

    Please, can you help me?

    Thank you very much for your help and cooperation.

    nakuable

    (@nakuable)

    Dear Dima, and developers:

    In the two next versions of your plugin (v1.2.5 and v1.2.6) I continue having the same problem:

    If I don’t have any product with the filter values I see other page in my products’ div.

    To fix it, I try with my solution but now I see another issue.

    The pagination disappear when I change the product page if I use my fix (In the first message: The solution are use the old function woocommerce_product_loop_start())

    You can See this in: https://anatronic.com/categoria-producto/iot-m2m-telecomunicaciones/switch-industrial-carril-din/no-gestionables/

    And about my issue with the filtering, you can see in: https://anatronic.com/anatronicdev/categoria-producto/iot-m2m-telecomunicaciones/switch-industrial-carril-din/no-gestionables

    and select the next filters:
    – Puertos RJ-45: -> 2
    – Puertos Fibra Óptica: -> 2x SC(Mono-Modo)

    Please, note that I had select your PHP Fix because if I don’t have it selected. I see subcategories when I apply any filter.

    If you need any more. Please get in touch with me.

    Please, let’s work together on fix it.

    Dear Dima,

    Thank you very much for your reply.

    Just now I see:
    Fix – Displaying categories and subcategories

    And It’s OK and work great, but I have the last issue in my first comment.

    I’m looking forward to your fixed.

    Thank you very much.

    Best regards.

    Dear Dima,

    If you need more help with my issue I can send you my email address to better contact.

    Thank you very much for your support and help.

    Best regards.

    Dear Dima,

    I finished developing the Fix just now.

    You can Download the code in the url below:
    https://www.dropbox.com/s/lxr0svtpa1cv5cv/woocommerce-ajax-filters.zip?dl=0

    You can search:
    /* Start the new Fix */
    or
    /* End the new Fix */

    To see the new code in your plugin.

    Please, add this in the next updates to Fix this issue.

    Thank you very much.

    Best regards.

    Dear Dima,

    I can see that you use these functions in “\includes\widget.php” I going to try that I told and if works OK I’ll tell you

    Thank you very much.

    Dear Dima, I think about to mod your plugin to add it, if you want I send you the modifications made. So you can add them in future versions.

    It’s OK for you?

    If it’s ok, please, send me a email address to send the *.php

    Thank you very much.

    Dear Dima,

    My issue is that when you put any filter, in first “ul.products” you can lsee the 3 parents categories (Equipos móviles industriales, Informática industrial and IoT M2M & telecomunicaciones) It’s not correct work because before woocomerce update, in this “ul.products” the parents category not show (for example in this url: https://anatronic.com/categoria-producto/informatica-industrial/?filters=pantalla%5B432%5D )

    I could see this issue in another plugin (Woocommerce ShortCodes Products By Categories), this issue is that the plugin use woocommerce_product_loop_start and woocommerce_product_loop_end to show the products, and with the new functions can’t work ok.

    Please See the changes:

    === NEW ===
    function woocommerce_product_loop_start( $echo = true ) {
    ob_start();
    wc_set_loop_prop( ‘loop’, 0 );
    wc_get_template( ‘loop/loop-start.php’ );
    $loop_start = apply_filters( ‘woocommerce_product_loop_start’, ob_get_clean() );
    if ( $echo ) {
    echo $loop_start; // WPCS: XSS ok.
    } else {
    return $loop_start;
    }
    }

    function woocommerce_product_loop_end( $echo = true ) {
    ob_start();
    wc_get_template( ‘loop/loop-end.php’ );
    $loop_end = apply_filters( ‘woocommerce_product_loop_end’, ob_get_clean() );
    if ( $echo ) {
    echo $loop_end; // WPCS: XSS ok.
    } else {
    return $loop_end;
    }
    }

    === OLD ===
    function woocommerce_product_loop_start( $echo = true ) {
    ob_start();
    $GLOBALS[‘woocommerce_loop’][‘loop’] = 0;
    wc_get_template( ‘loop/loop-start.php’ );
    if ( $echo ) {
    echo ob_get_clean(); // WPCS: XSS ok.
    } else {
    return ob_get_clean();
    }
    }

    function woocommerce_product_loop_end( $echo = true ) {
    ob_start();
    wc_get_template( ‘loop/loop-end.php’ );
    if ( $echo ) {
    echo ob_get_clean(); // WPCS: XSS ok.
    } else {
    return ob_get_clean();
    }
    }

    ===

    If you use woocommerce_product_loop_start and woocommerce_product_loop_end, please add a option to use the oldest function and then your plugin work OK to me and the rest of people with same error.

    Thank you very much.

Viewing 15 replies - 1 through 15 (of 20 total)