Jump to content

Product always to default category


stanleyek18

Recommended Posts

Hello,

 

I'm looking for a way when customer enters a product from any category - product page will always go to default category of that product.

Is this possible?

 

I want to show my customers only (on "products in the same category module") items from default category.

Please help.

Link to comment
Share on other sites

I have made changes to productscategory.php

from line 118

if (isset($params['category']->id_category))
$category = $params['category'];

to 

if (isset($params['category']->id_category_default))
$category = $params['category'];

and now module show always product's form default product category. Simple as that!

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