Home Forums Plugins Product Importer Deluxe Support Limited Quantities Reply To: Limited Quantities


One more thing…the new code in my previous post only works for newly imported products. It won’t update the quantity on existing products (i.e. when you check the box “Are you merging changes into existing Products?”). I messed with the code some more, and I think that I’ve fixed that issue as well. After you’ve applied the changes in my post above, add this block of code after line 1205:

/* Update Product Quantity */ //ZZZZZ added this block to update quantity on existing products
if( $productdata->quantity <> $wpsc_quantity ) {
$wpdb->update( $wpdb->prefix.”wpsc_product_list”, array(
‘quantity’ => $wpsc_quantity
), array( ‘id’ => $wpsc_db_id ) );

Again…hope this helps everybody!