Home Forums Plugins Edit Orders Support [Resolved] If you get a blank page on edit order or manual order… Reply To: If you get a blank page on edit order or manual order…

#29942

And for manual ordering, edit the following function:

function wpsc_mo_return_products() {

$post_type = ‘wpsc-product’;
$products = (array)get_posts( array(
‘post_type’ => $post_type,
‘numberposts’ => -1,
‘post_status’ => ‘publish’,
‘orderby’ => ‘menu_order’,
‘order’ => ‘ASC’
) );
$size = count( $products );
for( $i = 0; $i < $size; $i++ ) {
$products[$i]->name = $products[$i]->post_title;
$products[$i]->price = wpsc_currency_display( wpsc_calculate_price( $products[$i]->ID, null, true ) );
$products[$i]->sku = get_product_meta( $products[$i]->ID, ‘sku’, true );
if( !$products[$i]->sku )
$products[$i]->sku = ‘-‘;
$products[$i]->stock = get_product_meta( $products[$i]->ID, ‘stock’, true );
}
return $products;

}

to be:
$products = (array)get_posts( array(
‘post_type’ => $post_type,
‘numberposts’ => -1,
‘post_status’ => ‘publish’,
‘orderby’ => ‘menu_order’,
‘order’ => ‘ASC’,
‘cache_results’ => false
) );

*sigh*