Re: Can you change the "back to shopping" behaviour?
Technically.... Yes. If you look at the statements following the IF statements, they set $link=<a ... then, the back button can be made to go anywhere.
I suspect that it would be confusing to the user if the Back button did not take them back to where they were, but off to some other page though.
Re: Can you change the "back to shopping" behaviour?
Quote:
Originally Posted by
harrylshulman
Is there a way to have the button take you to a specific URL instead of just going back?
Yea this is what I changed the line to, as I wanted to go back to the home page, but just change the url to what ever you desire.
Original Code and File: /includes/templates/template_default/templates 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>
Changed to -
<div class="buttonRow back"><?php echo '<a href="index.php">' . zen_image_button(BUTTON_IMAGE_CONTINUE_SHOPPING, BUTTON_CONTINUE_SHOPPING_ALT) . '</a>'; ?></div>
Re: Can I change the "back to shopping" behaviour?
Thanks to adelante... I tried a few fixes for this and his suited my needs best.
I would have never figured that out myself.
Only thing is that it is not working if I viewed, then added to cart from a dynamically generated category. I.E. All Products.
If I have previously added a product from a defined category it returns there instead.
I suspect it has to do with the fact that the categories are dynamically generated, or perhaps it's something to do with my URI re-write module.
If anyone has figured out how to get this to work, I would greatly appriciate some advise.
David
countrytothecore.net
Re: Can I change the "back to shopping" behaviour?
I'm glad the little mod has been useful. australican I think it's because you're you actually in a category, personally I don't use the show all products menu item. I'll have to re-vist the code and have a look again.
Re: Can I change the "back to shopping" behaviour?
My little e-shop is an extension of our little B&M gift shop and fairly new. I'm still just testing really. I've never been an online shopper so I don't know how many shoppers would use All or New categories yet, but would still like to clean up that loose end.
Personally All seems silly, especially for shops with large amounts of products. It's probably intended for shop with only a dozen or so items.
I like to give people as many options as possible, but too many might just lead to confusion.
Anyone else have an opinion or words of wisdom on this?
(Not that yours wasn't relevant adelante)
Anywho... Thanks again for the little mod.
David
Re: Can you change the "back to shopping" behaviour?
Thanks to everyone on this thread. You just saved me hours of digging and experimenting and frustration.
Re: Can I change the "back to shopping" behaviour?
brilliant exactly what I wanted to do, have the button just go 'back' :-) thanks!
But...only problem is, the buttons there (ive made my own) it goes back when you click on it but on the hover over it doesnt change, looks like an inactive button that doesnt link to anything only when you click it does it actually work. Any ideas?