Post by rvjventures » Thu Aug 23, 2018 4:01 am

Hello, All,
I am currently using OC 2.3.0.2.
I am trying to add a return link to the main page on all my products pages.
I've only gotten this far and need some assistance.
This is what I have so far:

Here is one of my links to test the link:
http://www.kitchenmerchant.net/cart/ind ... uct_id=121

/cart/catalog/controller/product/product.php
<div>
<button type="button"><a href="javascript:history.go(-1)" onMouseOver="self.status=document.referrer;return true" class="button"><span>Go Back</span></a></button>
</div>

Can anyone tell me what I am missing?

Newbie

Posts

Joined
Wed May 02, 2018 10:17 pm

Post by straightlight » Thu Aug 23, 2018 7:45 am

If you have SSL installed, it would not be suggested to use the history -1 function. Rather define the redirection page from the controller and call it from your TPL file afterwards.

The most generated errors being found on Opencart forum originates from contributed programming. The increased counters are caused by posted redundancies of the same solutions that were already provided prior.

F. Rules:

- viewtopic.php?f=176&t=200480
- viewtopic.php?f=176&t=200804


Regards,
Straightlight


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by rvjventures » Thu Aug 23, 2018 8:47 am

I tried that and still didn't work.

<div>
<button type="button"><a href="http://www.kitchenmerchant.net/cart/ind ... ommon/home" onMouseOver="self.status=document.referrer;return true" class="button"><span>Go Back</span></a></button>
</div>

Newbie

Posts

Joined
Wed May 02, 2018 10:17 pm

Post by rvjventures » Thu Aug 23, 2018 9:00 am

Nevermind...I figured it out.
Thanks.

<div class="buttons">
<div class="pull-left"><a href="http://www.kitchenmerchant.net/cart/ind ... ommon/home" class="btn btn-primary">Go Back!</a></div>
</div>

Newbie

Posts

Joined
Wed May 02, 2018 10:17 pm
Who is online

Users browsing this forum: No registered users and 3 guests