This topic contains 3 replies, has 4 voices, and was last updated by karencheah 6 months ago.
| Author | Posts |
|---|---|
| Author | Posts |
| November 2, 2012 at 1:22 pm #292045 | |
|
BigYin |
Products list – wp-admin/edit.php?post_type=wpsc-product |
| November 6, 2012 at 5:42 pm #292469 | |
|
niall.campbell New Member
|
Have the same problem here. Disabling pagination in wp e-commerce presentation settings fixes the issue (but of course this disables pagination for your products). So the problem… It is caused by the function _wpsc_pre_get_posts_reset_taxonomy_globals() located in wpsc-functions.php (line 655). This function was added in version 3.8.9 and I’m not sure of its intent yet. I’ve written the following code and put it in my theme’s functions.php file to get around the issue. It will only override the code if its version 3.8.9 (I’m assuming that there’ll be a fix for this in 3.8.10). It also checks if its called from the dashboard and disables the code causing the pagination issues.
if ( $query !== $wp_the_query ) if ( ! $query->get( 'page' ) && ! $query->get( 'paged' ) ) $query->set( 'posts_per_page', get_option( 'wpsc_products_per_page' ) ); $post_type_object = get_post_type_object( 'wpsc-product' ); if ( current_user_can( $post_type_object->cap->edit_posts ) ) |
| November 20, 2012 at 9:08 pm #294301 | |
|
cartkn New Member
|
very nice niall.campbell its working |
| November 23, 2012 at 12:23 am #294637 | |
|
karencheah New Member
|
I’m using version 3.8.8.5 with WP 3.4.2. I’m also having a pagination issue for the products in categories, the last page will not show in IE9 only! Anyone have any ideas where I can start to look PLEASE??? |
You must be logged in to reply to this topic.