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!

Share this post


Link to post
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..

Share this post


Link to post
Share on other sites

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

Thanks, still works in 1.6.1.4

 

Make sure to empty cache and refresh the browser properly if it doesn't seem to work.

 

indeed

i tested it in 1.6.1.5 too and seems like everything is okay too

Share this post


Link to post
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
 Share

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More