Home Forums Plugins Product Importer Deluxe Support Limited Quantities

Welcome to our community support forums! We're here to help - but if you have an urgent request for a Pro Plugin, you will get a prioritised response through our Premium Support page.

Viewing 2 posts - 16 through 17 (of 17 total)
  • Author
    Posts
  • #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.

    #6584
    Michael Visser
    Keymaster

    Hi Huff360, I’ll take a look at the publish/unpublish status on Tuesday and get that code change into the next Plugin update 🙂

Viewing 2 posts - 16 through 17 (of 17 total)
  • The forum ‘Support’ is closed to new topics and replies.