Post by mikegdl » Fri Jan 05, 2018 3:34 am

On top of the opencart website, there is a grey bar with phone number/account/wishlist/cart/checkout
Is it possible to add link/button in there?

Currently using Version 1.5.6

Newbie

Posts

Joined
Fri Jan 05, 2018 3:23 am

Post by straightlight » Fri Jan 05, 2018 6:51 am

Hi,

as your first post, please read the most recent forum rules. So far, no URL / highlighted screenshot posted with your request.

The most generated errors being found on Opencart forum originates from contributed programming.

Regards,
Straightlight


Legendary Member
Online

Posts

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

Post by IP_CAM » Fri Jan 05, 2018 11:21 am

Well, it heavy depends on the Theme used, but basically, it's the
.../whatevertheme/template/common/header.tpl
file, where your Link Code has to be added. Below some samples, where such has to be done:
---
Case 1:

Code: Select all

<div class="links"><a href="<?php echo $home; ?>"><?php echo $text_home; ?></a><a href="<?php echo $wishlist; ?>" id="wishlist-total"><?php echo $text_wishlist; ?></a><a href="<?php echo $shopping_cart; ?>"><?php echo $text_shopping_cart; ?></a><a href="<?php echo $checkout; ?>"><?php echo $text_checkout; ?></a></div>
Add, a Link Line like shown below, where you like to make it visible, inside of such a Code Section:

Code: Select all

<a href="http://whatever/yourpage.html">Click here, to see Whatever</a>
---
Case 2:

Code: Select all

<li><a href="<?php echo $download; ?>"><?php echo $text_download; ?></a></li>
<li><a href="<?php echo $logout; ?>"><?php echo $text_logout; ?></a></li>
Add, a Link Line like shown below, where you like to make it visible, inside of such a Code Section:

Code: Select all

<li><a href="http://whatever/yourpage.html">See Whatever</a></li>
---
Case 3:

Code: Select all

<li><a href="<?php echo $wishlist; ?>" id="wishlist-total" title="<?php echo $text_wishlist; ?>"><i class="fa fa-heart"></i> <span class="hidden-xs hidden-sm hidden-md"><?php echo $text_wishlist; ?></span></a></li>
<li><a href="<?php echo $shopping_cart; ?>" title="<?php echo $text_shopping_cart; ?>"><i class="fa fa-shopping-cart"></i> <span class="hidden-xs hidden-sm hidden-md"><?php echo $text_shopping_cart; ?></span></a></li>
<li><a href="<?php echo $checkout; ?>" title="<?php echo $text_checkout; ?>"><i class="fa fa-share"></i> <span class="hidden-xs hidden-sm hidden-md"><?php echo $text_checkout; ?></span></a></li>
Add, a Link Line like shown below, where you like to make it visible, inside of such a Code Section:

Code: Select all

<li><a href="http://whatever/yourpage.html" id="whatever" title="Click here, to see Whatever"><i class="fa fa-link"></i> <span class="hidden-xs hidden-sm hidden-md">See Whatever</span></a></li>
Good Luck! ;)
Ernie

Ernie's OpenCart v.1.5.6.5 LIGHT + V-Pro + OpenShop Admin v.1.75 Test Sites
http://www.bigmax.ch - http://www.opencart.li/shop/ - http://www.velomech.ch/cart/
Image


User avatar
Guru Member

Posts

Joined
Tue Mar 04, 2014 1:37 am
Location - Switzerland

Post by mikegdl » Sat Jan 06, 2018 1:46 am

Thank you so much for through explanation Ernie! The name of the tpl file was one I was looking for!!

I'll be sure to include link and try to clarify my question next time.

Newbie

Posts

Joined
Fri Jan 05, 2018 3:23 am
Who is online

Users browsing this forum: No registered users and 31 guests