Home Forums WoodMart support forum How to set qty – 50 for all products

How to set qty – 50 for all products

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #629029

    kidsdial4
    Participant

    How to set Qty = 50 for all simple and variation products in the website ?

    we have thousands of products. please give me some automated solution or any code or sql query ?

    #629265

    Aizaz Imtiaz Awan
    Keymaster
    Xtemos team

    Hello,

    To bulk-set stock quantity to 50 in WooCommerce:

    1. Go to WooCommerce > Products.
    2. Filter products if needed.
    3. Select all products and choose Edit from Bulk Actions.
    4. In the Manage Stock? set qty 50 in Stock Qty.
    5. Click Update.

    Best Regards

    #629274

    kidsdial4
    Participant

    will it work for the variant/variation/configurable products also ? T shirt size size : L & M

    so both will update to 50 ?

    #629278

    kidsdial4
    Participant

    Please check my above comment , also : “Select all products” will select all 1000’s of products in website or it willl select only that particular page products ? is there any options to select all 1000s of products ? or shall i run below query in phpmyadmin ?

    UPDATE wp_postmeta
    SET meta_value = ’50’
    WHERE meta_key = ‘_stock’;

    #629501

    Aizaz Imtiaz Awan
    Keymaster
    Xtemos team

    Hello,

    Yes, the process will work for variations as well. When using bulk edit, the “Select all products” option typically applies only to the products listed on the current page of the admin panel. To apply changes to all products across the website, you will need to adjust the pagination settings or perform the updates in batches.

    Best Regards

Viewing 5 posts - 1 through 5 (of 5 total)