Jump to content

Products Category Module - how is the category chosen?


threeopus3

Recommended Posts

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 by threeopus3 (see edit history)
Link to comment
Share on other sites

  • 2 weeks later...

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

  • 1 year later...
  • 1 year later...

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