george90 Posted April 25, 2016 Share Posted April 25, 2016 Hi, I use the block "Products in the same category" in the product page. My products have been assosiated in multiple categories such as parent categories (men->t-shirt ) or discount categories. If the customer looks a t-shirt, then in the block "Product in the same category" is appearing a lot of unrelated products from men category, discount category etc. Could you help me to define the block to appear each time only the exact related products in the same category that user has looked at the specific time? Thank you in advance George Link to comment Share on other sites More sharing options...
george90 Posted April 25, 2016 Author Share Posted April 25, 2016 Hi George, this module shows products of the same category. And as you know it a product can be assigned to multiple categories. The module just select all products from a category based on the current id category. Hi ndiaga, This module doesn't select only products on the current id category in my shop. it selects all products from all categories which the current product has been assigned. This happens if the product has only one category. Could you guide me to implement it in order to appearing only current category products? Thank you for your response. BR, George Link to comment Share on other sites More sharing options...
george90 Posted June 5, 2016 Author Share Posted June 5, 2016 The module use the current product id to get the corresponding category id. You will have to add some code in category.tpl in order the get the id_category and besed on that id you can select only products of that category. I solved it..but the module doesn't show the newest related products..how can i do that? Link to comment Share on other sites More sharing options...
george90 Posted June 5, 2016 Author Share Posted June 5, 2016 I think it depends on the sorting you choose from the BO. There isn't such choice from BO. Could you please help to do that in the module? What should i change in my code? Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now