Isotope Stock Management
Stock settings
Every rating configuration consists of several settings, which will be described in detail on this page. Each record must have its name, which is used only in the backend.
Update and revert order statuses
The two most important settings in the stock configuration are the update and revert order statuses. The product stock will be updated accordingly depending on the order's status.
In the Update order statuses
field, you choose one or more order statuses that automatically decrease the stock quantity of a product. The suggested setting is usually the processing and/or complete status. This shall happen when a customer places an order in the frontend, or when the order status is changed manually in the backend.
In the Revert order statuses
field, you choose one or more order statuses that automatically revert stock changes when the order has that status set. The suggested setting is usually the canceled status. For example, if the client orders a stock product, its quantity is reduced by some amount. That amount will be restored if you cancel the order, e.g., due to the client's resignation.
You can also choose to hide unavailable products in the frontend. When the product stock quantity reaches zero, the product will no longer be presented on the website until you replenish the inventory.
Contrary to hiding the products, you can also disable the options that are not available. Please note that it works only with single options and radio/select menu types!
Quantity levels
The basic values you have to define for the quantity levels is the low level quantity and the medium level quantity. There are four main levels in the Isotope Stock Management extension. The below table explains their name, quantity, description and the color in the backend interface (i.e. color of the stock quantity in the product management view).
Level | Quantity | Description | Backend color |
---|---|---|---|
Empty | 0 | There are no products in the stock. | Black |
Low | Defaults to 10. | The number of products is limited. | Red |
Medium | Defaults to 20. | The number of products is still decent. | Yellow |
High | Quantity above medium level. | There are a lot of products. | Green |
For the frontend however you have a total control of the quantity levels. You can create them as many as you want. For each level you have to enter the name (which can be displayed in frontend), the CSS class and the from-to quantity range. Please make sure that the next quantity level starts with a higher number than the previous one ends. See the image for an example.
This results in a similar display in the frontend to this:
Out of stock notification
You can also setup the notification when a product runs out of the stock. In order to do that, first go to the Notifications
backend module and create a new notification of the Product out of stock
type. Once you have create the message and languages you can go back to the stock configuration and update the necessary fields.
To include the product data in your notification, simply use the product tokens ##product_*##
known from Isotope core features. Here are a few examples:
##product_id##
→ product ID##product_name##
→ product name##product_sku##
→ product SKU
Availability notification
As of version 3.0, you can enable the "availability notification" feature. It allows visitors to get notified when their favorite product is back in stock. To enable this feature, go to the Notifications
backend module and create two notifications:
Product availability
→ this notification will be sent when the product is again in stock.Product availability – subscribe
→ this notification will be sent when the visitor subscribes to the currently out-of-stock product.
Then, you have to choose the newly created notifications in the stock configuration record, as shown in the image:
The notifications accept the following tokens:
##product_*##
→ the product data (see example above);##product_url##
→ the product URL (the one where the form was submitted);##admin_email##
→ the e-mail address of administrator;##recipient_email##
→ the e-mail address of visitor that subscribed;##link##
→ the complete confirmation URL (subscribe notification only).##token##
→ the confirmation token (subscribe notification only).##domain##
→ the domain (subscribe notification only).
To display the availability form, you also have to add the following snippet to your iso_*
product template:
<div class="availability-form">
<?= $this->generateAvailabilityForm() ?>
</div>
Important note
The notifications are sent out minutely by cron job. To ensure the best results, set up the Contao cron on the command line as stated in the Contao official docs.