Our new stock control feature for SmartSTORE is outlined below. There are two elements, an initial set-up which requires your web team or IT support team to install a single file on your web server. Following this the store administrator can set and review stock levels through the normal store editor.
Initial set-up
The stock control support script will be provided to you by SmartTHING. It is compatible with PHP based servers and auto-configures itself if put into a Drupal or WordPress based site.
The script should be uploaded to your web server under a subdirectory using FTP, FTPS or whatever file access options your hosting provider gives you. A sensible location would be a subfolder of the main CMS installation called smartstore so it could be accessed via:
http://[your_website_domain]/smartstore/stock.php
Note: If you do not have Drupal or WordPress or you have any issues you will need to configure the database settings at the top of the stock.php script.
You now need to update your store settings to point at your stock control script:
To set and view current stock levels
There is not a lot to the stock control element other than setting the levels and, if you wish, viewing the latest stock levels. This is all done on the store config page: http://smartthing.org/olx-deploy.
Login using your normal username and license key for SmartSTORE
In the Products tab each product has a 'Stock level' field, the current stock level is shown in the field. It refreshes automatically every 30 seconds so is the 'real-time' stock level.
If you want to manually adjust the stock level (i.e. you have had more stock come in) or to enable stock tracking for a product by setting an initial stock level:
Notes:
You can update the stock level on more than one product before clicking 'Get Script' to save all these stock levels.
There is an 'Easily reorder products and update stock levels' link at the top of the products list which makes the above task easier.
Testing the stock control script
Set stock initial levels to values you know:
Enter your license details
Go to the Products tab
Update the stock level entries (once updated you will see a message below the stock field saying: 'Manually updated, click 'Get Script' to save the new stock level')
Click 'Get Script' to update the stock
Go to your SmartSTORE page
Test the store with a purchase
Revisit the store config page to review stock levels:
FAQs: How the stock addon works