Automatic Stock Control function - REQUIREMENTS:
- Your Host MUST support PHP - at least PHP 5 is enabled in your hosting account. Our PHP script must be able to overwrite the stock control file on your server.
- Please verify with your Hosting provider if these PHP Settings are allowed in your account (NOT restricted):
- Be able to create directories in your ftp/hosting account
- have read & write access to the directories on the server
- be able to change permissions in the directories on the server
- This feature is applicable to all ShopFactory V9, V10, V11, and V12 users. For old version users such as V7 and V8 fixed version users, you must have an existing GlobeCharge account (at least a FREE GlobeCharge account or a paid service subscription account so you will have a username and password) to use this feature.
Assumption: You have already enabled stock control following the steps in our KB article -
(If you are using the latest ShopFactory release, only stock levels which have changed will be uploaded)
- Open your shop in ShopFactory
- Click on "Enable automatic updates of Stock Levels" from the Services Menu
Important: If you have enabled the "automatic updates of stock levels" feature, please note that you need to "separately" publish your stock levels.
Publishing your shop does not publish your stock levels, as realtime stock control requires a Stock file to be published to your server separately by clicking on the "Update stock levels..." button found in the stock level window. This will only upload & synchronize your stock levels file - not the entire Shop. It will use the Hosting details you entered in the Publish SETUP dialog box so make sure you have entered correct ftp details in Publish -> Publish your website on the Net -> SETUP -> enter correct hosting details -> OK.
- Click on Central dropdown -> Stock Levels
If this is the first time you have setup realtime stock control, you need to enter the actual stock levels of all your products - you can even define the minimum and maximum quantity of products that can be ordered in this dialog.
- Click on the "Settings..." button if you want to change the stock display type into the exact number of stock level instead of using the "traffic light" -> click OK
- Once you start selling products online it is important that you follow the steps below to synchronize your actual online stock file first before editing the stock levels.
IMPORTANT: When you open the stocks dialog box, you need to click on the “UPDATE STOCK LEVELS...” button to synchronize the online stock. The online stock must first be synched by downloading the latest online stock file.
- Once the online stock is synched, you can now start editing the actual stock levels of your shop.
- If you have updated stock levels of your products, you will need to click on the “UPDATE STOCK LEVELS...” button to upload the local stock file to your server. If your shop has also been updated, click YES if a prompt shows to also publish your shop.
Please ensure that you click on “UPDATE STOCK LEVELS...” button to synchronize the online stock before manually changing the stock levels of your products.
Please note that:
1. stkLevel.txt file is the one that gets published and updated when an order is made.
- If this file goes missing in your shop project folder, the stklevel.txt will be re-generated when the "Update stock levels..." (Publish) button is clicked within the "Stock Levels" dialog.
2. stkCacheAll.txt file is a cache file that ShopFactory creates/uses for display of the stock dialog.
- If this file is missing, the stkCacheAll.txt is created upon opening the stock dialog.
- Click Central dropdown -> Stock Levels dialog -> and then stkCacheAll.txt will be created.
- If you click on "Update stock levels..." button, the stkLevel.txt file is created.
Setting up Stock Control in ShopFactory V9 and older versions:
Publishing your shop does not publish your stock levels, as realtime stock control requires a Stock file to be published to your server separately via the Publish button found in the stock levels window.
The Publish button in your Stock Levels dialog box will only publish your stock levels file not the entire Shop. It will use the Hosting details you entered in the Publish SETUP dialog box so make sure you have entered correct ftp details in Publish -> Publish your website on the Net -> SETUP -> enter correct hosting details -> OK.
For example, you published your stocks yesterday and new stocks came in today from your supplier. What you may do is, synchronize your stock level first and find out how much stock is left in your website and then modify the stock levels for the new stocks that came in. After you have edited the stock levels, you click Publish button within the Stock Level dialog box and that will update your stock level online.
You don't need to click Publish from the ShopFactory toolbar when you only modified your stock levels. If you made some changes in your shop (i.e. change website theme, font, added new products), you need to click the Publish button from the toolbar.
You can update your stock levels everyday or whenever you wish by doing the following: -
1. Click Properties -> Stock Levels -> Synchronize first (to get the actual online stock levels updated in your shop)
2. Now edit the stock levels
3. After that Publish your stock file
If you did not make any changes to your shop (except the stocks), you do NOT need to Publish (at the Publish button on the ShopFactory window toolbar) again.
You must also register your shop URL in your Total Care/GlobeCharge account so you can synchronize the stock file.
1. Login to www.globecharge.com or click on ORDERS menu.
2. Click Settings -> Account Settings
3. Click on Register shop URL
4. Enter your shop url and click "Submit" button to save this in the database
5. Now go back to ShopFactory and synchronize your online stocks via stock levels dialog.