Setting Up Reserve Stock on Add To Cart in WooCommerce

Creating and Managing Reserve Stock Rules

Viewing & Tracking Rules in a Grid

To efficiently manage reserve stock rules, you can access a user-friendly grid that displays all the pertinent information. This grid allows you to monitor and assess your rules comprehensively. Here are the key attributes this grid displays about each rule:

Title: the title of the rule

Date Published: The date on which the rule was created and published

Additional functions that can be performed are:

  • Perform bulk actions on multiple rules at once
  • Search for an existing rule in the search bar
  • Filter the rules by the month and year

Adding A New Reserve Stock Rule 

1. Title: 

Add Title: Set a descriptive title for your rule

2. Rule Attributes 

  • All Users: A checkbox to apply the rule to all or selected user roles
    • Check: Check to apply the rule to all user roles
    • Uncheck: Leave it unchecked if you want selected user roles to be affected by it
      • User Roles: Define which selected user roles will be affected
  • Apply on All Products: A checkbox to apply the rule on all or selected products
    • Check: Check to apply the rule to all products
    • Uncheck: Leave it unchecked if you want selected products to be affected by it
      • Select Products: Choose specific products to which this rule should be applied
      • Select Products Category: Select product categories to apply the rule to
  • Reserved Time: Set the time for a product’s stock to be reserved after adding it to the cart. You can set this time in:
    • Hours
    • Minutes 

3. Rule Priority:

  • Order: Specify the order in which this rule should be applied

Click “Publish” to save the rule

Configuring Additional Settings:

General Settings: 

Go to WooCommerce > Settings > Reserve Stock > General to configure the general settings of the plugin. This section allows you to customize the following options:

  • Reserve Stock Notices on Shop Page: Enable this checkbox to display reserve stock-related notices on the shop page
  • Customize Notices Location on Shop Page: Choose where on the shop page the notices should appear
    • Before Product Title
    • After Product Title 
    • After Product Price 
    • After Add to Cart Button 
  • Reserve Stock Notices on Product Page: Enable this checkbox to show reserve stock notices on the product detail page
  • Cron Job Time Schedule: Set the time at which the stock reservation process should start. You can set this time in minutes or hours 

All Reserved Badge

  • Display Badge on Products: Enable this checkbox to display a badge on products when the entire stock is reserved (Note: The badge will appear above the product image on the shop and product detail page)
  • Customize Badge Text: Set the text to display on the badge (default is “Reserved”)
  • Set Text Color: Choose the font color for the badge text
  • Set Background Color of Badge: Define the background color for the badge

Click “Save Changes” to apply the settings

Message Settings: 

Message: 

1. All Stock Available (Shop & Product Detail Page): Enable this option to display a message with a countdown timer when all stock is available

  • Customize All Stock Available Message (Shop & Product Detail Page):  Personalize the message to display on the shop and product detail page (use {product_name} for product title and {max_time} for maximum time a product can be reserved)
  • Font Size: Adjust the font size
  • Font Color: Set the font color

2. Product Reserved Message (Cart Page): Enable this option to display product reserved message with time on cart page 

  • Customize Product Message with Time (Cart Page): Personalize the message text (use {product_name} to show the product title and {max_time} to show the reserve timer)
  • Font Size: Set the font size
  • Font Color: Set the font color 

3. Show Partial Reserved Stock Message: Enable this checkbox to show a message on the product detail and shop pages when multiple people have reserved some stock

  • Customize Partial Stock Text: Customize the message text and appearance (use {ars_people} for the number of people who have reserved the stock, {ars_stock} for the stock quantity that is currently reserved, {product_name} for product title, and {available_stock} for the stock that is left)
  • Font Size: Adjust the font size
  • Font Color: Set the font color 

4. Show All Reserved Message: Enable this option to display all stock reserved message

  • Customize all reserved message: Customize the message text (Use {remaining_time} for product to come back in stock)
  • Font Size: Set font size
  • Font Color: Set font color 

Customize Add to Cart Messages

1. Show Add to Cart Message: A checkbox to show add to cart message on the product detail page & shop page

  • Customize add to cart message: Customise the message text (use {product_name} variable to show the product title and variable {max_time} for reserved time)

2. Show Remove from Cart Message: Enable this checkbox to show product removed from cart message 

  • Customized Remove from Cart Message: Customize the message text (use {product_name} variable for the product title)

3. Customize x Stock Left Message: Customize ‘x stock left’ message when add to cart action is performed (use {available_stock} for remaining quantity and {remaining_time} variable for the product to come back in stock)

4. Customize All Reserved Add to Cart Message: Customize add to cart all reserved message (use {remaining_time} variable for product to come back in stock)

Click “Save Changes” to apply the changes.