Viewing 13 replies - 1 through 13 (of 13 total)
  • Plugin Support crodriguez1991

    (@crodriguez1991)

    Hello there,

    I hope you’re doing well ??

    Please, try to add the following code in the functions.php of your active theme:

    if( ! function_exists( 'yith_wcan_content_selector' ) ){
        function yith_wcan_content_selector( $selector ){
            $selector = '.wpbforwpbakery_archive_product';
            return $selector;
        }
        add_filter( 'yith_wcan_content_selector', 'yith_wcan_content_selector' );
    }

    It should set to refresh only the section with the archive products.

    Please, try it and let me know.

    Have a good day.

    Thread Starter startechmarketing

    (@startechmarketing)

    Thanks this works only on some of the categories and on this category it repeats the same product three times

    https://starpaint.de/shop-products/?yith_wcan=1&product_cat=lackierkabine

    on the category in my original post nothing displays

    maybe my issue is with defining the archive products for each category or I am not sure how it is supposed to work

    Plugin Support crodriguez1991

    (@crodriguez1991)

    Hello there,

    I hope you’re doing well :D.

    I checked your site but seems the code was not added. i checked and all category pages included a section with the class

    wpbforwpbakery_archive_product

    Maybe it can generate problems if you use a different template for categories.

    Please, try it and let me know.

    Have a good day.

    Thread Starter startechmarketing

    (@startechmarketing)

    i had deactivated the code snippet because it was not working and I did not wan to make problems if somthing is wrong

    if( ! function_exists( 'yith_wcan_content_selector' ) ){
        function yith_wcan_content_selector( $selector ){
            $selector = '.wpbforwpbakery_archive_product';
            return $selector;
        }
        add_filter( 'yith_wcan_content_selector', 'yith_wcan_content_selector' );
    }
    Plugin Support crodriguez1991

    (@crodriguez1991)

    Hello there,

    I hope you’re doing well :D.

    I checked your site but the code seems to be added in the HTML file.

    Did you added the code in the functions.php of your active theme?

    See the following image

    Seems you added it after a close php tag ?> and maybe you have it printed in the page. The code should not be included in the page.

    Please, try to add it at the end of the functions.php of your active theme.

    If you have a close tag “?>” add the code before.

    Please, try it and let me know.

    Have a good day.

    Thread Starter startechmarketing

    (@startechmarketing)

    i tired using code snippets but it has problems. so for now I disabled it

    Thread Starter startechmarketing

    (@startechmarketing)

    Ok now it does not break the site, I added in code snippet , php snippet run everywhere

    but there is no suggested products displaying.

    https://starpaint.de/shop-products/?yith_wcan=1&product_cat=pulverpistole

    I disabled the snippet for now, I dont want anything in the theme function file but usually code snippets work

    Plugin Support Alessio Torrisi

    (@alessio91)

    Hi there,

    the code we provided is right, but the section shows wrong products because seems need to be reinitialized when the DOM is updated in ajax.

    I invite you contact WP Bakery developers asking for a feedback.

    Thread Starter startechmarketing

    (@startechmarketing)

    ok thank you

    Thread Starter startechmarketing

    (@startechmarketing)

    but I don’t have a license, I purchased several themes that include it in their package. but they do have a contact probably for developers like you can you please help since I would not be the only customer with the problem

    Plugin Support Alessio Torrisi

    (@alessio91)

    Hi there,

    at first try to get in touch with “WC Builder” developers and check if the problem can be fixed by their side, since you’re using a builder for WP Bakery Visual Composer. I forgot to say this in my last reply.

    Let us know, we remain at your disposal.

    Thread Starter startechmarketing

    (@startechmarketing)

    Ok yest I am in communication they said this code your provided was not from them and would not work but they are working on solution, I will update you when it is done.

    Plugin Support Alessio Torrisi

    (@alessio91)

    Hi there,

    thanks for your reply, we remain at your disposal.

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘Show suggested / select products below’ is closed to new replies.