• Hello!

    I hope You are well. Storefront theme 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 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 2 replies - 1 through 2 (of 2 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, 8 months ago by xszejdi.
    Thread Starter xszejdi

    (@xszejdi)

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

    • This reply was modified 4 years, 8 months ago by xszejdi.
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Empty search results’ is closed to new replies.