Community Add-Ons

Add file to this package
Top » Credit Modules

Product not found...BUT
for osCommerce Online Merchant v2.2

Sometimes I see that customers get my product not found message because the search engines have indexed the product page
but my product is disabled. Maybe because it is sold out or I just deleted it.
To simply supply the message "Product not found" is both not nice and a missed opportunity as the customer is there
and we like to keep it that way.

Therefore, I thought of the following change in that section of product_info.php.

the logic:

if we cannot find the product we check if it is still in the database and what category it belonged to.
If it is, we display the other products from that category using the product_listing module.

If it is really gone or never existed in the first place we mess a little with the given product_id and display
products with a variation on the number, a desperate move but we have little else to go on.

So now you can change the message to something like :

"We are sorry to inform you that this particular product has been sold out. However, we do have the following similar products available."

Legend:  Download   Report
Expand All / Collapse All
product not found..but v1.5.2 maniac101 3 Feb 2009  

A very minor modification to avoid the list of products showing any duplicates - i found duplicates would show if any product was in more then one category.

This is full install file with modifcation to the previous version and upgrade instructions from v1.5.

Product not found...BUT V1.5 mmph 8 Feb 2008  
mysql5 update sashaben 24 Dec 2007  
Final fix for manufacturer name display WillRoss 3 Apr 2005  
UPDATED Fully Working David Hanwell 17 Jan 2005  
cname pname mod problem Fred Doherty 16 Jan 2005  
A fix, for now... WillRoss 16 Jan 2005  
Nice Idea, but... Concerned 16 Jan 2005  
cName pName aware amanda 16 Jan 2005  
Product not found...BUT amanda 16 Jan 2005