Page 1 of 1

Specials in menubar?

Posted: Wed Mar 14, 2012 3:50 am
by Jamppe
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

Re: Specials in menubar?

Posted: Wed Mar 14, 2012 4:21 am
by labeshops
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

Re: Specials in menubar?

Posted: Thu Mar 15, 2012 12:15 am
by Jamppe
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

Re: Specials in menubar?

Posted: Thu Mar 15, 2012 12:49 am
by labeshops
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.

Re: Specials in menubar?

Posted: Thu Mar 15, 2012 2:30 am
by Jamppe
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

Re: Specials in menubar?

Posted: Sat Apr 08, 2017 1:02 am
by Reshovski
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');

Re: Specials in menubar?

Posted: Sat Apr 08, 2017 10:44 am
by IP_CAM
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

Re: Specials in menubar?

Posted: Tue Jun 12, 2018 5:51 pm
by znuky.ro@gmail.com
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.