View Single Post
  #8  
Old 01-01-2008, 01:04 PM
 
fearnothing fearnothing is offline
 

Senior Member
  
Join Date: Jun 2005
Location: North East England
Posts: 124
 

Default Re: "IN STOCK" message with buy now button

We use a similar system on our store to display a message when the stock level is at Zero.

We are starting to implement inventory management using a bar code scanner, and I have written some basic external PHP scripts to allow us to 'swipe' goods as they go out or are received in, to update the inventory accordingly.

To make this work we need to stop the inventory from auto decreasing after every order placed, however if the 'Inventory Tracking' option is disabled, it also disables the check to see if an item is out of stock and EVERYTHING appears to be in stock. Doh!

Can anyone point out the code that should be commented out to stop x-cart.products.avail being updated on order completion? The option to 'Disable Out Of Stock Items' is not appropriate as we then lose out on search engines picking these items up, and of course browsing customers (our OOS message includes a 'please contact us for delivery estimates' link).

BTW I'm happy to post the PHP scripts if anyone is interested - perhaps some Smarty wizard can find a way of making them work from within the admin interface? Well beyond my level of expertise, I'm afraid!
__________________
www.smartchoicemusic.com
Smart Choice Music - Import CD and DVD Specialists
4.6.0
MySQL 5.5.34
PHP 5.4.24
Apache/2.2.26
Multiple homegrown and paid-for mods
Reply With Quote