Support » Plugin: WP eCommerce » Screen options on products page not saving

  • Resolved Bloke

    (@bloke)


    I am on the products page listing all the products. I click on the screen options and set to show x amount of products and it won’t save. It really slows down my page because its 1000 products and times out. Any idea how to fix this?

    https://wordpress.org/plugins/wp-e-commerce/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Bloke

    (@bloke)

    I looked in the database and its updated in the meta_key:
    edit_wpsc-product_per_page

    Bloke

    (@bloke)

    I found a temporary fix. Seems like its an issue if you have drag and drop turned on. When you are on the products page it lists all the products because pagination is disabled. I added this function found here here and its working.

    function wpsc_dnd_cat_only_option_filter( $option ) {
    	global $wp_query, $current_screen;
    	if ( is_admin() && $current_screen->id == 'edit-wpsc-product' ) {
    		if ( !isset( $_GET['wpsc_product_category'] ) ) {
    			$option = 'id';
    		}
    	}
    	return $option;
    }
    add_filter( 'option_wpsc_sort_by', 'wpsc_dnd_cat_only_option_filter' );
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Screen options on products page not saving’ is closed to new replies.