I recently extended stock control to be more "real" time. I wrote a script (in php and outside actinic) and schedule it to run every 10 minutes to check if stockonhand changes. If changes, log the change, and update the stock level at the live server, and if any products go out of stock, hide add to cart button and show out of stock message.
My script does not restrict people adding an out-of-stock product into cart as actinc perl does, because I know nothing about fil file generated by actinic. It only hides the button, and so far so good - no one seems to be interested in hacking the code and ordering something explicitly out of stock.
However, actinic stock level changes only when some staff clicks download in actinic. My question is
Is there a way to download orders automatically? Something like command line download would be perfect. Basically I am looking for a solution which can sit in scheduler.
Am I asking for something impossible? Any helps are highly appreciated.
anqi
My script does not restrict people adding an out-of-stock product into cart as actinc perl does, because I know nothing about fil file generated by actinic. It only hides the button, and so far so good - no one seems to be interested in hacking the code and ordering something explicitly out of stock.
However, actinic stock level changes only when some staff clicks download in actinic. My question is
Is there a way to download orders automatically? Something like command line download would be perfect. Basically I am looking for a solution which can sit in scheduler.
Am I asking for something impossible? Any helps are highly appreciated.
anqi
Comment