Jump to content

Not just any back button


Recommended Posts

I've searched and found solutions for back buttons, but they don't work for my scenario.

Use Case:

Step 1:User clicks into product product_img_link, either from the HOME page (no category) OR clicks into the product via a category page or subcategory page.

Step 2: User selects a combo. Price updates on product page. User selects another combo (we could have 20 combos on a single product).

Step 3: User clicks browser back button and wants to get back to the "previous page" Example: Category Bla Page 5 is where the product he/she clicked into is. When they click the back button, currently it steps them back thru EVERY combination they selected, finally back to the "previous page" ie Page 5 of some category.

Back button I implemented takes you back to the category, however, only appears when you come from a "category page" not the HOME page. As well, it does not take you to the page in the category you were browsing from ie page 5.

Does this make sense? I'm looking for a solution that takes me back to the previous page if possible. I'm not scared of some coding.

Share this post

Link to post
Share on other sites

Or create function from custom.js

function goMyBackButton() {


add tpl file:

<a href="#" onclick="goMyBackButton()">Back to previous page</a>



Edited by Guest (see edit history)

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More