Skip to content

Woo Mark OutOfStock is a lightweight WordPress + WooCommerce plugin that allows administrators to easily mark multiple products as Out of Stock using either product IDs or SKUs. All safely processed within a database transaction.

License

Notifications You must be signed in to change notification settings

BaseMax/woo-mark-outofstock

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Woo Mark OutOfStock

Woo Mark OutOfStock is a lightweight WordPress + WooCommerce plugin that allows administrators to easily mark multiple products as Out of Stock using either product IDs or SKUs. All safely processed within a database transaction.


📦 Features

  • Add a simple admin page in WordPress Dashboard
  • Two input fields (Product IDs and SKUs) for bulk processing
  • Automatically trims, filters, and removes duplicates or empty lines
  • Safely processes updates inside a database transaction
  • Works with both simple and variable products
  • Updates both parent and variation stock statuses
  • Keeps products visible (not deleted, only marked as out of stock)
  • Fully localized (Persian interface text)

🧭 How It Works

  1. Navigate to
    Dashboard → ناموجود کردن محصولات
  2. Paste your product IDs or SKUs (one per line).
  3. Click "اجرای عملیات و علامت‌گذاری ناموجود".
  4. The plugin:
    • Trims and cleans your input lines.
    • Looks up WooCommerce products by ID or SKU.
    • Starts a database transaction.
    • Marks products as “Out of Stock” (outofstock status).
    • Commits all changes safely.

🖼 Screenshot

Admin Page Screenshot


⚙️ Installation

  1. Download or clone the repository:

    git clone https://github.com/BaseMax/woo-mark-outofstock.git
  2. Upload the folder to your WordPress installation at: wp-content/plugins/woo-mark-outofstock

  3. Activate it via WordPress → Plugins.

  4. Make sure WooCommerce is installed and active.


🧩 Requirements

  • WordPress 5.8+
  • WooCommerce 6.0+
  • PHP 7.4 or higher
  • MySQL (supports transactions)

🧠 Notes

  • All operations are executed inside a SQL transaction (START TRANSACTION, COMMIT, ROLLBACK).
  • If any error occurs during processing, all changes are reverted automatically.
  • No product deletion — only stock status is updated.

🪪 License

MIT License - see LICENSE file for details.

© 2025 Seyyed Ali Mohammadiyeh


💡 Repository

GitHub: BaseMax/woo-mark-outofstock

About

Woo Mark OutOfStock is a lightweight WordPress + WooCommerce plugin that allows administrators to easily mark multiple products as Out of Stock using either product IDs or SKUs. All safely processed within a database transaction.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages