I have just uploaded Release Candidate 1 of my Variable Restock Rates mod for SMFShop to
http://dev.dansoftaustralia.net/projects/varrestocks/. I would appreciate any comments or suggestions you may have.
NOTEWhile I have tested the code itself, and all appears to work, I have not yet tested the .xml files used to add the package automatically. If you use these, make backups of affected files.
Affected FilesShopAdmin.template.php
ShopAdmin.php
Shop.english.php
item_engine.php
New Filesdostock.php
readme.txtThis modification makes an additional method of restocking the SMFShop, allowing to automatically stock at a certain rate, up to a specified maximum value. Each item in the shop can have it's own configured restock rate.
Changelog:
==================
Version 1.0 (RC1)
- Added the ability to reset stocking periods.
- Changed dostock.php so that it will reduce to max_stock even if stock_period hasn't arrived.
- Wrote an uninstall script that will remove database fields if run.
Version 0.1
- First version
- Added new database configuration to allow for automatic restocking.
- Added new file, dostock.php, which will do the automatic stocking. Requires a cron job to run successfully.
- Altered administration files to show restock options.
- Altered item_engine.php to add restock variables.
- Added new elements to Shop.english.php.
- Default Values: 50 Max Stock, 50 Restock Rate, 1 Hour Intervals