• Resolved wyohost

    (@wyohost)


    Hi,
    I saw this question earlier by someone else from about 7 months ago.
    I would also like to limit all products to a 1 off purchase and then show them as sold.

    Although, I would like to have it done automatically. Is there a way to set the inventory level to 1 for every product via maybe a PHP snippet?

    Thanks.

Viewing 1 replies (of 1 total)
  • Hi @wyohost

    Thanks for reaching out!

    If I understand you correctly, you would like to set the stock quantity of all your products to 1, right?

    Kindly be informed that custom coding is not something we can assist with directly. However, I’ll keep this thread open for a bit to see if anyone from the community can lend a hand.

    If you have any other questions related to development or custom coding, don’t hesitate to reach out to some of the great resources we have available for support. The WooCommerce community is filled with talented open-source developers, and many of them are active on the channels listed below:

    Meanwhile, you could do this via the built-in Product CSV Importer and Exporter.

    First, you need to export all products on your site. Then, under the In Stock column, enter 1, which signifies that the product is in stock, 0 if it’s out of stock.

    Under the Stock column, enter 1 which is the stock quantity of the product.

    Save the CSV file, then import it back to your site. Please do not forget to tick the checkbox Update Existing Products.

    Hope this helps!

Viewing 1 replies (of 1 total)
  • The topic ‘How to limit all products to ONE available automatically’ is closed to new replies.