Change the order of products with WooCommerce Recently Viewed Widget
-
Hi,
I just noticed that when using the WooCommerce Recently Viewed Products Widget it shows not in right logical order. I mean that the first product must be the recently viewed and should appear in the first but now it appears in the end.
I tried to edit the file class-wc-widget-recently-viewed.php the below line
$query_args = array( 'posts_per_page' => $number, 'no_found_rows' => 1, 'post_status' => 'publish', 'post_type' => 'product', 'post__in' => $viewed_products, 'orderby' => 'rand' );
But seems no action.
Please help to figure out!
Thanks!
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘Change the order of products with WooCommerce Recently Viewed Widget’ is closed to new replies.