1. Home
  2. Docs
  3. Product Stock Notificatio...
  4. Product Stock Validation Methods

Product Stock Validation Methods

The extension provides two methods to determine when a product should display the Notify Me button. You can use only one method at a time, depending on how you manage stock in your store.


Method 1: Validation Based on Product Quantity

In this method, the extension checks the product quantity to determine whether the product is out of stock.

If the product quantity is less than the defined threshold (usually 1), the product is considered unavailable, and the Notify Me option can be displayed to customers.

This method includes two levels of validation.

Level 1 – Product Quantity (Required)

The primary check is based on product quantity.

When the product quantity reaches zero or goes below the defined value, the extension considers the product as unavailable and enables the stock alert option.

Level 2 – Product “Out-of-Stock Status” (Optional)

You can optionally restrict the Notify Me button based on the product’s Out-of-Stock Status.

This is useful when you want the notify option to appear only for specific availability conditions.

If you do not want to apply this additional filter, simply choose Ignore this rule.

Understanding Out-of-Stock Status in OpenCart

Some store owners confuse the Out-of-Stock Status field in the product edit page.

This field does not control inventory. It only controls what message customers see on the product page when quantity becomes zero.

Examples:

If Out-of-Stock Status is set to Out of Stock:

  • When quantity is greater than 0 → product shows In Stock
  • When quantity becomes 0 → product shows Out of Stock

If Out-of-Stock Status is set to Pre-Order:

  • When quantity is greater than 0 → product shows In Stock
  • When quantity becomes 0 → product shows Pre-Order

This field does not need to be changed frequently. It only affects the message shown on the storefront.

When using Method 1, the Out-of-Stock Products tab will automatically display all products that match the defined validation rules.


Method 2: Manual Product Selection

In this method, the Notify Me button is controlled manually instead of using product quantity.

After enabling this option and saving settings, the Out-of-Stock Products tab will display all products in your store.

You can then enable or disable the Notify Me button individually for each product.

This method is useful when:

  • You want full control over which products allow subscriptions
  • You want alerts only for selected products
  • You want alerts for pre-launch products
  • You want alerts even when quantity is not zero

Important Note

  • Only one validation method can be active at a time.
  • You cannot use quantity-based validation and manual product selection together.
  • Choose the method that best matches your inventory workflow and business needs.