Post by Jamppe » Wed Mar 14, 2012 3:50 am

Hi there you specials.

I need the specials to be seen in menubar, how can I fix that.

I know you all busy and having other problems, but if you could put a little solution for me I would be :)
I use v 1.5...

Br
Jamppe
Last edited by Jamppe on Thu Mar 15, 2012 2:43 am, edited 1 time in total.

Newbie

Posts

Joined
Sat Feb 18, 2012 6:01 pm
Location - Helsinki

Post by labeshops » Wed Mar 14, 2012 4:21 am

Search for my post on customizing the menu bar. It's been discussed several times. You basically can add any links you want to the menu section in your template common > header.tpl

Running Opencart v2.2 with multi-stores from http://www.labeshops.com which has links to all my stores.

Image


User avatar
Expert Member

Posts

Joined
Thu Aug 04, 2011 4:41 am
Location - Florida, USA

Post by Jamppe » Thu Mar 15, 2012 12:15 am

labeshops wrote:Search for my post on customizing the menu bar. It's been discussed several times. You basically can add any links you want to the menu section in your template common > header.tpl
Hi labeshops.
Well, tryed to find it, but maybe you took it away or..
But I did put a line in header.tpl

This line... 134

133 <?php } ?>
134 <li><a href="<?php echo $special; ?>"><?php echo $text_special; ?></a></li>

This line take me to the homepage and thats ok :)
<li><a href=".."target="_blank"><?php echo $text_home; ?></a></li>
</ul>
</div>
...

The error is
Notice: Undefined variable: text_special in /homez.333/timetogo/www/shop/catalog/view/theme/TTG/template/common/header.tpl on line 134

Thank s again, sir
Br Jamppe

Newbie

Posts

Joined
Sat Feb 18, 2012 6:01 pm
Location - Helsinki

Post by labeshops » Thu Mar 15, 2012 12:49 am

Just do it as a simple link..

<li><a href="/index.php?route=product/special">Specials</a></li>

or whatever page you want to link to and whatever name you want to give it.

Running Opencart v2.2 with multi-stores from http://www.labeshops.com which has links to all my stores.

Image


User avatar
Expert Member

Posts

Joined
Thu Aug 04, 2011 4:41 am
Location - Florida, USA

Post by Jamppe » Thu Mar 15, 2012 2:30 am

labeshops wrote:Just do it as a simple link..

<li><a href="/index.php?route=product/special">Specials</a></li>

or whatever page you want to link to and whatever name you want to give it.
Thanks, but then I cant use the different language to the link?
Is there any solution for that?
Jamppe

Newbie

Posts

Joined
Sat Feb 18, 2012 6:01 pm
Location - Helsinki

Post by Reshovski » Sat Apr 08, 2017 1:02 am

Jamppe wrote:
Thu Mar 15, 2012 2:30 am
labeshops wrote:Just do it as a simple link..

<li><a href="/index.php?route=product/special">Specials</a></li>

or whatever page you want to link to and whatever name you want to give it.
Thanks, but then I cant use the different language to the link?
Is there any solution for that?
Jamppe
For Multilanguage:
<li><a href="<?php echo $special; ?>"><?php echo $text_special; ?></a></li>

ALSO HAVE TO ADD IN CONTROLLER OF HEADER.PHP:

$data['text_special'] = $this->language->get('text_special');
$data['special'] = $this->url->link('product/special');

Newbie

Posts

Joined
Tue Feb 28, 2017 5:42 am

Post by IP_CAM » Sat Apr 08, 2017 10:44 am

ALSO HAVE TO ADD IN CONTROLLER OF HEADER.PHP:

Code: Select all

$data['text_special'] = $this->language->get('text_special');
$data['special'] = $this->url->link('product/special');
Well, this would NOT work, because OC v.1.5.6.x needs it this way:

Code: Select all

$this->data['text_special'] = $this->language->get('text_special');
$this->data['special'] = $this->url->link('product/special');
as well as such a line in the ../language/common/header.php File as well:

Code: Select all

$_['text_special']        = 'Product Specials';
Ernie

For Sale: Top URL's, including an OpenCart V-Pro Installation, similar to:
http://www.bigmax.ch - http://www.ipcam.li - http://www.jti.li
For Information + URL's offered, please contact me at: jti@jacob.ch
I am NOT available for Custom Support in existing OC Installations!
My Github Repositories: https://github.com/IP-CAM
Image


User avatar
Guru Member

Posts

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

Post by znuky.ro@gmail.com » Tue Jun 12, 2018 5:51 pm

SOLVED:
In Catalog->Category
Add a new category "SALES" and in SEO tab add the link: index.php?route=product/special .
Set it to be shown in Menu.


Posts

Joined
Wed May 09, 2018 2:28 pm
Who is online

Users browsing this forum: No registered users and 3 guests