I am using Zen Cart 1.3.9f

I have the "add to Cart" button showing in the product listing. If you press that button it takes you to the cart. if you then press the "back to shopping" button it takes you to the product details page of the product you added... it doesnt take you back to the product list.

If I change zen_back_link()'s session navigation path to -3 rather than -2 it works... but then ofcourse that makes it go all the way back to the product listing when adding to the cart from the product detail page.


it seems that when pressing the Add to Cart button in the product listing page that an entry is wrongly put into $_SESSION['navigation']->path for the product detail page.

I never navigated to that page so it shouldn't go into that session array.

hopefully I am making sense :)