Jump to content

Category page as homepage


Recommended Posts

Hello,

 

I'm with PrestaShop™ 1.6.0.14 version.

The thing that I'm asking is:

 

How I can make a category page as homepage...

I made it to this command:

 

Tools::redirect('index.php?id_category=3&controller=category');

In the IndexController.php

 

But this command, make a redirrect and it is visible in the link...

How can I make this redirrect but not visible for the user?

 

Do I need to mask the url somehow or there is another way?

 

Regards!

Link to comment
Share on other sites

some time ago i wrote tutorial: category as homepage

checked it a second ago in prestashop 1.6.1 and it works

 

Hello,

 

Thank you for your reply!

I'm not sure due to DNS loadings.. but when I load the website index it's still change the link to the redirrected page.

In my case.. when I enter test.domain.bg - it loading test.domain.bg/3-category-page

So the effect is the same as the:

Tools::redirect('index.php?id_category=3&controller=category');

 

Do you know how I can mask that url, not to change..

Link to comment
Share on other sites

  • 4 months later...
  • 4 months later...
  • 2 weeks later...

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...