wp-e-commerce / WP-e-Commerce

WP eCommerce - The most popular independent eCommerce platform for WordPress
https://wpecommerce.org
GNU General Public License v2.0
215 stars 216 forks source link

Order edit totals bug #2233

Closed mihaijoldis closed 7 years ago

mihaijoldis commented 7 years ago

Editing an order and changing the quantity for example shows the correct new total in the order edit page The Store Sales page however still shows the total from the wpsc_purchase_logs table

I think its because the $log->update_item( $item_id, array( 'quantity' => absint( $_POST['qty'] ) ) ); updates only the WPSC_TABLE_CART_CONTENTS table