If this is your first visit, check our documentation. To post, register or login.
Forums / Customizing the Look of Your Shop / Templates, Stylesheets, Page Layout / Stay on search page after add a product to cart

Stay on search page after add a product to cart

Started by pc88 on 13 Nov 2011, 12:26 PM · Views: 648

Results 1 to 2 of 2
13 Nov 2011, 12:26 PM
#1
pc88 avatar

pc88

New Zenner

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

Post #1 by pc88

Hi! I've changed setting into admin page to don't display cart after adding product from list, but I would still stay on search page when I add product into cart from product list search. How can I do?

15 Nov 2011, 7:21 PM
#2
usernamenone avatar

usernamenone

Totally Zenned

Join Date:
Sep 2006
Posts:
541
Plugin Contributions:
0

Post #2 by usernamenone

This is how I addressed mine. I have the cart show when someone puts something in the cart but I changed the Keep Shopping Button to go back 2 browser clicks through history.

Some shoppers are finished shopping when they click the buy button and in any case expect to see the cart. This way when the click the keep shopping button it lands the 2 clicks back to to product listing.

This is always an issue with me when I click the keep shopping button and I am just back to the product I dropped into the cart :cool:

Anyway locate templates/your template/tempates/tpl_shopping_cart_default.php and the find

<div class="buttonRow back"><?php echo zen_back_link() . zen_image_button(BUTTON_IMAGE_CONTINUE_SHOPPING, BUTTON_CONTINUE_SHOPPING_ALT) . '</a>'; ?></div> <?php

and replace with

<div class="buttonRow back"><a href="javascript:history.go(-2)"><img style="width: 137px; height: 25px;" alt="keep shopping" src="includes/templates/the name of your template/buttons/english/button_continue_shopping.gif"> </a>

Play with it long enough and you will break it.