This is a really simple addon but very handy. I currently have it running just by doing a modification on the code, but i’m not really good at codding so i could never do it as an addon and improve more options on it.
The idea is when you stock has the value of zero the action will take effect.
This are the options that i have running on my shop:
On Order
Pre-Order
Out of Stock
Out of Print
Off
The idea behind it is when one of your item gets to 0 in stock it will display a different message on the storefront.
Out of Stock example if i have 10 copys of The matrix but i cant get any more i just select the out of stock option so when i sells all 10 copys it will automatically say out of stock on the storefront. all so with the out of stock option it will hide the buy button and keep the wishlist button.
Pre-Order
If i want to make on item on pre-order i just leave the stock in zero and select the pre-order option.
Now with the pre-order i have integrated it with the buy in advanced option thats on the back office, so if i don’t click on the buy in advanced or put on the date when its out it will just say “Pre-Order This product will be released on the (TBC)” but if i but in a date and click on the buy in advanced it will replace the TBC with the date. and if you put in the date put don’t click on the buy advanced then it will hide the buy button.
Out of Print
With this option it will hide the buy and wishlist button. and display the out of print message on the storefront.
Off
will hide the buy and wishlist button and not display any message on the storefront.
as i mentioned above im not really code at coding, the other option i would like to put on it are; adding it to export and edit fields menu, adding option do add custem fields with the option if you would like to hide the wishlist and buy button, show it on the products menu so you can see the status of the item and change it with out having to go in to the products.
Any one up to the making this in to an official addon!
Visit my shop over at http://oggames.co.uk so you can see it in action
Here are some pics of it working as o mod on my shop.
Screen shot 2011-04-29 at 00.24.24.png