Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- add_action( 'woocommerce_no_products_found', 'mx_featured_products_on_no_products_found_page', 20 );
- function mx_featured_products_on_no_products_found_page() {
- echo '<h2>' . __( 'Ponoviti pretragu koristeću druge pojmove?', 'woocommerce' ) . '</h2>';
- get_product_search_form(); //zakomentirati ako je npr. product search u sidebaru
- echo '<h2 style="margin-top:20px;">' . __( 'Možda će vas zanimati:', 'woocommerce' ) . '</h2>';
- echo do_shortcode( '[featured_products per_page="4"]' );
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement