1.4.4
Pre-order from the supplier
Installation
After downloading the add-on, its installation is carried out using standard CS-Cart tools on the page Administrator panel → Add-ons → Manage add-ons → Download and install add-on (+).
For CS-Cart version more than 4.13.1 Admin Panel → Add-ons → Add-on Management → Gear Button → Manual Installation.
Click Local, in the window that appears, select the module file, then Upload & install.
Configuration
Initial configuration is carried out in the addons menu.
Description of settings:
Where to show information about the relevance in the product card: - changes the location of the information display in the product card.
Enter the font color for the items in the category: - changes the font color.
Make bold text with the amount of products - changes the font style.
Show in category - shows the relevance of the product in the categories.
Show in card product - disables display in the product card.
Show module notifications - disables notifications from the module when placing an order and choosing a product.
Default Showcase Settings - To check or not to check the Product available from supplier checkbox in the properties of the new product.
It is also necessary to allow a negative amount of goods on the site. To do this, go to Settings - General and check the appropriate box.
Basic setting
The main setting is carried out in the product settings. On the Products - Products page, select the required product and go to the General tab in its settings.
Find the Product available from supplier setting. A checked box means that the product is available from the supplier and there is an opportunity to order it promptly.
Find the Out of stock actions setting and set the Sign up for notifications value.
The logic of the module operation depending on the stock of goods is presented in the table.
Available on the site | Available from supplier | Message to the client |
yes | yes | you can order more |
yes | no | you can only buy leftovers |
no | yes | can be ordered |
no | no | can't buy |
The message to the client can be changed at your own discretion.
Automation of the availability of goods in the warehouse
If you have a leftover file from a supplier, you can automate the process. To do this, you need to create an import template. On the Administration - Import data - Products page add a new import.
On the preset editing page, specify the name of the template and the file to import, in CSV format. Save the template.
Now go to the Field Mapping Table tab and select the appropriate fields. For the field with the availability of goods at the supplier, specify the Actuality() property. In the Modifier column, specify the one we need, for example, if you want to show the customer that the product is in stock when the supplier has more than 200 units, then the modifier for the Actuality() line will be case ($ value = "& gt; 200", "Y"). After saving, you can use this template manually or automatically using cron.