php - Woocommerce Product Navigation should not show next category -


i using woocommerce plugin , have woocommerce product navigation link plugin navigate inside products...

i want have show product navigation inside category.. showing navigation products.. i.e., if 1 category completed showing navigation button next product in next category.. here code have in woocommerce-product-navigation.php file ..

here's eval

what mistake doing , can ?

   $output  = '<div class="wpn_buttons ' . $wpn_custom_class .'">';      if ( $previous != '' )         $output .= '<span class="next"> ' . $previous . '</span>';     if ( $next != '' )         $output .= ' <span class="previous">' . $next .'</span>';     $output .= '</div>'; 

i think should consider hooks , write function filter contents if category changed exit .i guess should use woocommerce_before_single_product hook .


Comments

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -