Zen Cart Logo

Return to produsct list

Locked

Views: 601

Results 1 to 1 of 1
This thread is locked. New replies are disabled.
30 Dec 2009, 11:28 AM
#1
waitsee avatar

waitsee

New Zenner

Join Date:
Nov 2009
Posts:
1
Plugin Contributions:
0

Return to produsct list

https://www.hobby-post.nl is a 1.3.8 zen-cart with a minor template override and column_layout_grid_v_1_3_8.

In most (sub)categories there are a lot of products, so when displaying the product-listing, there is pagination to e.g. 10 pages.

When a customer is on (e.g.) a listing page 5 and clicks on a thumb to see the product (and orders it) and when he than wants to return to the previous page (the listing page5), he clicks on the button 'listing'.

What happens then he is returned to listing page 5.
I want him to return to the page where he cames from (listing page 5)

How to change this?
I have tried to change ```php

<div class="navNextPrevList"><a href="<?php echo zen_href_link(FILENAME_DEFAULT, "cPath=$cPath"); ?>"><?php echo zen_image_button(BUTTON_IMAGE_RETURN_TO_PROD_LIST, BUTTON_RETURN_TO_PROD_LIST_ALT); ?></a></div> ``` in the file tpl_products_next_previous.php into this ```php <div class="navNextPrevList"><a href="javascript: history.go(-1)"><?php echo zen_image_button(BUTTON_IMAGE_RETURN_TO_PROD_LIST, BUTTON_RETURN_TO_PROD_LIST_ALT); ?></a></div> ```

but that's not the right solution. So instead of
a href="<?php echo zen_href_link(FILENAME_DEFAULT, "cPath=$cPath"); ?
i used
a href="javascript: history.go(-1)"