Home Forums Plugins Product Importer Deluxe Support [Resolved] Handling limited stock

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 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #8752
    Assemblo
    Participant

    Hi, Love you plugins they are the only things the actually seem to work well with WP-Ecommerce!

    I have a problem, I want the products I import to all have “Notify site owner and unpublish this Product if stock runs out” ticked by default. Is there any easy to way to do this (I don’t really want to trawl through 10,000 entries to tick the box :P)

    Thanks!

    #8753
    Assemblo
    Participant

    As a temporary hacky fix I’ve edited the functions.php file and added this line:

    $product->product_meta[‘unpublish_when_none_left’] = 1;

    to line 1083.

    #8777
    Michael Visser
    Keymaster

    Hi Assemblo, that does the trick. I’ll add an import option for WP e-Commerce 3.8 to manage this.

    #8805
    Michael Visser
    Keymaster

    Added in the 3.0.2 Plugin update going out this morning. A ‘0’ value is now stored as such.

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘[Resolved] Handling limited stock’ is closed to new replies.