Page 1 of 1

SOLVED - Link a Category to the Specials Module

Posted: Sat Sep 24, 2011 1:55 am
by twpe
Hi esteemed colleagues! Forum and Google searches completed with no luck.

Standard install of 1.5.1.x with small changes (all documented in a change log).

Have enabled the specials module to show my special offers etc. I now want to add a new category to the top level menu bar that is always present (default template) that will link to a page showing the specials. i.e. Equivalent to selecting the specials link from the 'Extras' section on the homepage. http://www.yoursite/index.php?route=product/special

Any help appreciated. Happy to hack some files, but prefer not to use addon modules or make major code changes if it can be avoided.

Thanks in advance.

Re: Link a Category to the Specials Module

Posted: Sat Sep 24, 2011 2:24 am
by uksitebuilder
One small code change

edit: catalog/view/theme/default/template/common/header.tpl

find

Code: Select all

  </ul>
</div>
<?php } ?>
<div id="notification"></div>
add before

Code: Select all

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

Re: Link a Category to the Specials Module

Posted: Sat Sep 24, 2011 2:32 am
by twpe
Marvellous my old chap :-)

Worked like a charm. I also utilised your other post to add the Specials to the side menu too!

Many Thanks!

Re: SOLVED - Link a Category to the Specials Module

Posted: Tue Sep 27, 2011 9:33 pm
by YorkshireInteriors
Hi,

You mentioned that you'd "also utilised your other post to add the Specials to the side menu too!". How did you achieve this?

Cheers, Johnny

Re: SOLVED - Link a Category to the Specials Module

Posted: Tue Sep 27, 2011 9:55 pm
by uksitebuilder
Very similar change but in catalog/view/theme/default/template/module/category.tpl

find

Code: Select all

      </ul>
    </div>
  </div>
</div>
add before

Code: Select all

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

Re: SOLVED - Link a Category to the Specials Module

Posted: Tue Sep 27, 2011 9:56 pm
by nodric
To add the specials link to the side bar menu.

File Edited
category.tpl

File Location
yoursite.com/catalog/view/theme/default/template/module

Edits Made
before the closing </ul>
add the folowing
<li><a href="index.php?route=product/special">Specials </a></li>

Credit for this goes to uksitebuilder

Re: SOLVED - Link a Category to the Specials Module

Posted: Tue Sep 27, 2011 11:19 pm
by YorkshireInteriors
Thanks for your prompt response (and also to uksitebuilder). Great help. Works perfectly. Cheers!!

Re: Link a Category to the Specials Module

Posted: Wed Mar 07, 2012 1:57 am
by Jamppe
uksitebuilder wrote:One small code change

edit: catalog/view/theme/default/template/common/header.tpl

find

Code: Select all

  </ul>
</div>
<?php } ?>
<div id="notification"></div>
add before

Code: Select all

<li><a href="index.php?route=product/special">Specials</a></li>
Hi UKSITEBUILDER
How do the code change, if you put language code in it instead of "Specials"
Br Jamp

Re: SOLVED - Link a Category to the Specials Module

Posted: Thu Mar 14, 2013 12:19 am
by Shark
How do you set an 'active' class when the selected page = specials?

Re: SOLVED - Link a Category to the Specials Module

Posted: Mon Jun 16, 2014 8:20 am
by sqwireless
Hi, i have the same problem, and thanks to all the guys, i'm getting 50% problem solved.

This Special offer page doesn't have multi-pages of product, (page1, page2), i have more than 25 products in this page, and only the first 25 is showing, and i don't see "page2". I have to click show100 to see the rest. This is very inconvenient.
Is there a solution please ?

Re: SOLVED - Link a Category to the Specials Module

Posted: Tue Sep 23, 2014 3:02 am
by evakotsi
sqwireless wrote:Hi, i have the same problem, and thanks to all the guys, i'm getting 50% problem solved.

This Special offer page doesn't have multi-pages of product, (page1, page2), i have more than 25 products in this page, and only the first 25 is showing, and i don't see "page2". I have to click show100 to see the rest. This is very inconvenient.
Is there a solution please ?
Try this one:
http://forum.opencart.com/viewtopic.php?f=20&t=125582

It worked like a charm for me ;)

Re: SOLVED - Link a Category to the Specials Module

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.