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
Post a Comment