wordpress - Woocommerce Pagination Issue for Same Price Product -


suppose inserted product category shirt , category added 17 products have same price.
display 12 product in 1 page.
default sorting option high low price.
on page load display 12 product (remember price same).
if click on second page remaining 5 product repeat product first page instead of remaining 5.
used filter not help:

 add_filter( 'woocommerce_get_catalog_ordering_args', 'custom_woocommerce_get_catalog_ordering_args' ); function custom_woocommerce_get_catalog_ordering_args( $args ) {     $orderby_value = isset( $_get['orderby'] ) ? woocommerce_clean( $_get['orderby'] ) : apply_filters( 'woocommerce_default_catalog_orderby', get_option( 'woocommerce_default_catalog_orderby' ) );         if ( is_product_category( array('shirt' ) )) {                    // exit;                     $args['orderby'] = 'id';                     $args['order'] = 'desc';                     $args['meta_key'] = '';       }      return $args; }  

how can remove repeating product second page.
issue arrived if product have same price.


Comments