I'm stumped. I'm not so sure what is the answer to that question. I'll do some Googling and get back to you if I bump into an decent answer. You should email the people at iPage as they probably could assist you..
Thanks for the replies!.
I have looked at the code in the product_info.php file and see where the the query is done on the product id. The very next code block provides a test to see if the product_ID is in the database. If not it provides an alternate message..
I would like to do the same thing if the same product has the products_status variable defined as 'inactive'. I don't know php that well so if someone has any advice, I would appreciate it..
What version of osCommerce are you using?.
I'm guessing it's MS1, as MS2 stops this from happening - if the product is inactive you can't access it from the shop side..
On MS1 you can stop customers from buying inactive / out of stock products via the stock settings within the configuration menu in admin. You'll need accurate stock counts, and the following settings:.
Check stock level = true.
Subtract stock = true.
Allow Checkout = false.
That should do the trick - the settings might be a bit different as I'm looking at them on an MS2 install..
The products were being accessed from Google indexed links...
The settings I listed for MS1 will stop customers from being able to buy products that are inactive / out of stock..
If you don't want them to be able to view them (eg through a Google link), I'd suggest download MS2 and having a look at the code in product_info.php. This has got an extra check in it which returns a 'product not found' message if the product is inactive..
Upgrade to MS2 and the problem will be fixed..
Thanks for taking the time to reply..
You are right that the store is running on MS1. We don't want to do an upgrade right now, so I will take a look at the way it is handled in MS2 and see if I can implement that in the MS1 version of product_info.php..
Have either of you performed an MS1 -> MS2 upgrade?.