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

#6583
Huff360
Participant

Slowly getting closer. I’ve made the changes to the If statements in 2.6.1 so that all items are set as limited quantity as I did before. This allows me to import my complete product list (even the items that show a 0 in the quantity field) and have them show as limited. The two places moved around a bit :

459 becomes:

/* Insert Product Quantity */
/*if( $wpsc_quantity[$i] ) {  */
$wpdb->update( $wpdb->prefix.'wpsc_product_list', array(
'quantity_limited' => '1',
'quantity' => $wpsc_quantity[$i]
), array( 'id' => $wpsc_db_id ) );
$wpsc_log .= ">>>>>> Linking quantity";
/*}  */

and 1347 becomes:

/* Insert Product Quantity */
/*if( $wpsc_quantity ) { */
$wpdb->update( $wpdb->prefix.'wpsc_product_list', array(
'quantity_limited' => '1',
'quantity' => $wpsc_quantity
), array( 'id' => $wpsc_db_id ) );
$wpsc_log .= ">>>>>> Linking quantity";
/*} */

This forces the limited quantity to be set for every item every time.

Now if I could just control the “unpublish” setting. Surely someone has figured out how to do that.