Quote Originally Posted by dontknowwhatimdoing View Post
Ok--here's a real solution...

the other 'fix' here, wasn't a fix at all, I've got a complex site with many category levels.... etc.

Ok, here's the code you start with in the file: tpl_shopping_cart_default.php
<div class="buttonRow back"><?php echo zen_back_link() . zen_image_button(BUTTON_IMAGE_CONTINUE_SHOPPING, BUTTON_CONTINUE_SHOPPING_ALT) . '</a>'; ?></div>


Now, here's what you change it to:
<div class="buttonRow back"><a href="<?php echo zen_href_link(FILENAME_DEFAULT, "cPath=$cPath"); ?>"><?php echo zen_image_button(BUTTON_IMAGE_CONTINUE_SHOPPING, BUTTON_CONTINUE_SHOPPING_ALT); ?></a></div>

Works perfectly for me, gets right back to the proper listing.
Turns out this is a halfway solution. It only works if someone uses the "add to cart button". If they view the product listing first, it does not work.

Here's a good question I think: how can I make sure the $cpath variable gets loaded if someone is adding to cart from a product listing?