Jump to content

"XX products in the same category" module showing EVERYTHING!


Recommended Posts

Here's a picture of the bug I just found. Does anyone know how I can fix this? 

 

 

2z6cd8m.jpg

 

 

I'm pretty confident the change needs to happen in this part of the code (productscategory.php - line 113 / 114), but I'm not sure how:

		/* If the visitor has came to this product by a category, use this one */
		if (isset($params['category']->id_category))
			$category = $params['category'];
		/* Else, use the default product category */
		else
		{
			if (isset($product->id_category_default) && $product->id_category_default > 1)
				$category = new Category((int)$product->id_category_default);
		}
Edited by noesac (see edit history)
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...