• Resolved xszejdi

    (@xszejdi)


    Hello!

    I hope You are well. Your plugin is awesome!
    Actually i have a question, i’ve added recommended products under ‘No products found’ using hook ‘woocommerce_no_products_found’ and ‘echo do_shortcode [myshortcode]. It works great if customer looking for something using filtering and there’s no products, products display correctly under ‘No products found’. I noticed, if customer looking for something using search (Your plugin) and there’s no any products, there is also ‘No products found’ but i can’t see products below. Looks like it doesn’t ‘catch’ a shortcode.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter xszejdi

    (@xszejdi)

    I noticed also that if i use the usual echo like:

    add_action( 'woocommerce_no_products_found', 'test', 15 );
    function test() {
    echo '<p class="testclass">test:</p>';}

    it works great but if i use ‘do shortcode’, it doesnt and shows products in empty results only using filtering on shop page 🙁

    add_action( 'woocommerce_no_products_found', 'test', 15 );
    function test() {
       echo do_shortcode("[woopspro_bestselling_products_slider limit='-1' slide_to_show='4' slide_to_scroll='1' autoplay_speed='6000' autoplay='false' dots='false' cats='']");}
    • This reply was modified 4 years, 1 month ago by xszejdi.
    Thread Starter xszejdi

    (@xszejdi)

    Hello, You can close it because now i think it’s not because of Your plugin. Thanks.

    Plugin Author Damian Góra

    (@damian-gora)

    Hello,

    Ok. My plugin only overrides product IDs on the search results page. It does not affect the WooCommerce templating system. So the bug should be placed somewhere else.

    Best
    Damian

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Empty results’ is closed to new replies.