threeopus3 Posted June 5, 2013 Share Posted June 5, 2013 (edited) Hi, I'm not optimistic that anyone will have an answer to this one, but any tips to point in the right direction would be MUCH appreciated. On my product page I display the "products category" module. This module displays products from the same category. If I get to a product page from my default shop page, the module seems to display products from the category "shop". If I then click on one of the "related products", I am taken to the appropriate product page AND the product category module now shows products of the same default category. It's a bit confusing, I know. Here is my shop: http://sideroad.squarecrop.net/73-shop. Click on any of the products and you will see related products (products category module) on the right of the page. You'll see that the list is put together based upon the category of the page that you just came from (Shop). Now click on any of those related products, and you'll see the next product page, and that list of related products is now set by different criteria. On product-list.tpl, the product link looks like this: {$product.link} In the products category module, the product link looks like this: {$link->getProductLink($categoryProduct.id_product, $categoryProduct.link_rewrite, $categoryProduct.category, $categoryProduct.ean13)} My question is: how can I always ensure that the products category list of products always shows a list of products that a share a similar default category. Is there something that I can add to the product-list.tpl links to ensure that this happens? Or, on the product page, when you first get there, is the category not getting set properly? #$#%, I know this is confusing, but, what the heck, if anyone has any ideas at all, THANK YOU!! Kent ----------------- Further to this, I see that if I click to open a product in a new tab, the products category module shows products of the correct category, but if i simply click, the categories that are displayed are incorrect. Doh! ------------------- SOLVED: in productscategory.php there is the following note: /* If the visitor has came to this product by a category, use this one */ The module carries over the category from where you came. If you want to relate products according to their default category, delete the code below that note. Edited June 5, 2013 by threeopus3 (see edit history) Link to comment Share on other sites More sharing options...
carlosse Posted June 17, 2013 Share Posted June 17, 2013 Great solution threeopus3, your page looks quite cool. May I know how you moved related products blog to your sidebar? Link to comment Share on other sites More sharing options...
threeopus3 Posted June 17, 2013 Author Share Posted June 17, 2013 Carlosee, I edited the smarty template file and moved it to the sidebar. Really, I just reworked the formatting for the entire template. Think I might have moved the footer to the side of the page. So, I'm not sure that there is one easy answer to that one. K Link to comment Share on other sites More sharing options...
stanleyek18 Posted August 24, 2014 Share Posted August 24, 2014 Hi! I'm facing the same problem. Could you tell me what that code looks like? I don't have similar quotations in my productsgategory.php. I'm also using 1.6 version. Thanks in advance! Link to comment Share on other sites More sharing options...
dasteralo Posted June 1, 2016 Share Posted June 1, 2016 Hello all! Exactly the same for me I did not find the note /* If the visitor has came to this product by a category, use this one */ I'm using Prestashop 1.6 Did someone found a solution? Thanks 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