Zen Cart Logo
Forums / General Questions / document_product.php adding to cart product error - Sorry, the product was not found

document_product.php adding to cart product error - Sorry, the product was not found

Views: 885

Results 1 to 4 of 4
24 Nov 2012, 8:41 PM
#1
jpietrowiak avatar

jpietrowiak

Zen Follower

Join Date:
May 2009
Posts:
122
Plugin Contributions:
0

document_product.php adding to cart product error - Sorry, the product was not found

I have just upgraded from 1.3.9 to 1.5.1. However it seems to be a bug with zencart 1.5.1 since a fresh install does the exact same thing from what I can see. When you create a "document product" item in the store then try checking out with it. It will add the product to the cart just fine and is supposed to go back to the product page that you just clicked to add to cart (if setup in admin to return to product instead of go to cart). The problem is it does not go back to same page and displays only the text "Sorry, the product was not found" in the product area. The product however is in the cart and can check out as normal.This does not happen with other products only the document product. The URL also looks incorrect as below.

index.php?main_page=document_product_info&cPath=67&number_of_uploads=0

I believe it should look like this (link from my 1.3.9 that I upgraded after adding this item to cart)

index.php?main_page=document_product_info&cPath=67&products_id=185&number_of_uploads=0

Any help is appreciated. Thanks
Jamey

25 Nov 2012, 3:52 PM
#3
jpietrowiak avatar

jpietrowiak

Zen Follower

Join Date:
May 2009
Posts:
122
Plugin Contributions:
0

Re: document_product.php adding to cart product error - Sorry, the product was not found

Ajeh:

Check and see if this thread relates to the issue you are having:
http://www.zen-cart.com/showthread.php?200872-Fixed-1-6-0-Redirect-error-when-not-product-type-is-not-product_general&highlight=init_cart_handler

Thanks Ajeh! That took care of the problem everything works good after making the minor change to the file!

25 Nov 2012, 3:53 PM
#4
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: document_product.php adding to cart product error - Sorry, the product was not found

Thanks for the update that this fixed the issue you were having ... :smile: