Jump to content

Point to a different category page


edgarbain

Recommended Posts

Hi

How can I change the link on my menu to point to another category page instaed of using the default category.tpl template.

 

I want to be able to deplay all my category in a page with all having its own template pages. I sell make up online so i want to deplay face make up on a page with a template designe for it and lipstick on a page designed for it

 

Thanks

Link to comment
Share on other sites

  • 2 weeks later...

I saved the default template as faces.tpl and created a controller called facescontroller.php and in this section

 

public function initContent()
{
  parent::initContent();
  $this->setTemplate(_PS_THEME_DIR_.'category.tpl'); // Place here your category.tpl
}
 

changed .'category.tpl' to faces.tpl

 

however when i try to view the category prestashop says the page isnt available

 

this is the url used:

 

https://www.sachacosmetics.com/index.php?id_category=8&controller=FACE&id_lang=1

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...