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 mmph 8 Feb 2008  

This is a complete install in a single .txt file.

No new changes, all credit to original authors. I have simply rolled all of the previous changes in to this single file and noted which changes are optional.

This file contains the following steps:

INDEX OF DOCUMENTED STEPS:
STEP#1 - add defines to .../Catalog/Includes/language/"your language here"/product_info.php
STEP#2 - edit lines in .../Catalog/product_info.php
STEP#3 - Optional updates for MySQL 5, (necessary if you have mysql 5 installed)
STEP#4 - edit .../Catalog/Includes/Seo_cache.php (necessary if you have cName pName mod installed)

Note: I have many modifications and this installations works well for me. The only error I can see is that I have Chemo's thumbnail category browser installed and it displays an sql error on the bottom of the page.

Note: Assuming I am using this contribution correctly, it works great for products that have been indexed by search engines but are no longer available on your site. The contribution does not have any effect on searches that are performed from the search function inside your site.

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