Post by jamesyzs » Mon May 07, 2012 3:17 pm

Hi.

I would like to replace the breadcrumbs with a back button. Actually, I just want the back button in the product page to link back to the parent category. I don't need breadcrumbs at all.

Thanks to anyone in advance to their expertise.

-James

Newbie

Posts

Joined
Sat Dec 03, 2011 5:50 am

Post by florinsith » Tue May 08, 2012 12:15 am

Edit the file catalog/view/theme/yourtheme/template/product.product.tpl and add:

Code: Select all

<a href="javascript:history.go(-1)"  onMouseOver="self.status=document.referrer;return true" class="button"><span>Go Back</span></a>  
wherever you want the back button.

Image
My Extensions - SuperTheme - Opencart templates - Opencart modules


User avatar
Expert Member

Posts

Joined
Fri May 14, 2010 2:36 am


Post by tomroguk » Sat Apr 16, 2016 6:16 pm

This works for me thanks - Opencart 2.1.02

Newbie

Posts

Joined
Sat Jun 08, 2013 4:28 am
Who is online

Users browsing this forum: No registered users and 7 guests