Forums / Templates, Stylesheets, Page Layout / Navigation - Product to Catagory

Navigation - Product to Catagory

Locked

Views: 862

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
11 Oct 2007, 4:15 PM
#1
nickster4321 avatar

nickster4321

New Zenner

Join Date:
Jul 2007
Posts:
5
Plugin Contributions:
0

Navigation - Product to Catagory

Hi,

I was wondering if some code/zen cart guru's would be able to help me with a little problem. My employers want the button labeled "continue shopping" found in the shopping cart, not to go back 1 page to the previous product the user was looking at but to go back 2 pages to the catagory page allowing the customer a chance to view more items in that same catagory.
I know the page to edit is tpl_shopping_cart_default.php and i know where in that file the link is (line 134-137)

<div class="buttonRow forward"><?php echo '<a href="' . zen_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL') . '">' . zen_image_button(BUTTON_IMAGE_CHECKOUT, BUTTON_CHECKOUT_ALT) . '</a>'; ?></div>
<div class="buttonRow back"><?php echo zen_back_link() . zen_image_button(BUTTON_IMAGE_CONTINUE_SHOPPING, BUTTON_CONTINUE_SHOPPING_ALT) . '</a>'; ?></div>

I know that the link I need to edit is the zen_back_link() bit.
I'm sure that maintaining the product ID is a necessity as it has to be generic for all products.

Any advice would be much appreciated.

Nick

12 Oct 2007, 6:00 AM
#2
kiddo avatar

kiddo

Totally Zenned

Join Date:
Jul 2006
Location:
SF Bay Area
Posts:
837
Plugin Contributions:
1

Re: Navigation - Product to Catagory

If you are daring and want to experiment a bit, try changing the "-2" in line 983 of includes/functions/functions_general.php to "-3" (don't change the -2 in the line above it)

Without looking into it closer, I can't say if that would make other things break, but try it out. It may at least put you on the right trail.

Happy hacking.

12 Oct 2007, 4:10 PM
#3
nickster4321 avatar

nickster4321

New Zenner

Join Date:
Jul 2007
Posts:
5
Plugin Contributions:
0

Re: Navigation - Product to Catagory

Hmm thnaks for that. I gave it a go, but unfortunately it didn't work, but the annoying thing is i didn't fully understand what was going on on that piece of code.
I would have thought there would be something using the session id's?