PDA

View Full Version : Category relationships


authcode
22-06-07, 17:31
When I get the results for Vehicles, Parts & Accessories (493) ordered by popularity in the top 10 results is Test Tube Aliens (5891844) amongst dozens of other unrelated products. This is the same on the ShopWindow site. These products are actually in Electronic Gadgets (379) which is under a completely different category tree. I guess 'Electronic Gadgets' is 'related' to Vehicles, Parts & Accessories but I see no way to specify the relationship type I want to use when fetching products.

The category tree call uses the relationshipType but I can't see how this can affect the getProducts result. Besides if I set sRelationship to anything other than 'all' when calling categoryTree I get no sub-cats.

Is there a bug here or am I missing something?

amarath
24-06-07, 13:24
Hi Steve,

I will look into the twinned categories in our system on monday and check with our developers and report back to you.

Cheers

Amo

amarath
25-06-07, 11:52
Hi Steve,

Looked into this and for some reason we have twinned the electronic gadgets category to be displayed within Vehicle Parts etc.

I have made ammendments to our categories, if you could review them and let me know your thoughts in this category that would be great.

Also, I can see why these categories were twinned, but I dont think having the results from these categories within the results for Vehicles Parts is the best way of presenting them.

Do you think it would be more beneficial to have a second results panel displaying related products perhaps?

Or maybe just a section on the page reccomending the categories that have related products, so that the user can click into the categories?

Just trying to find out what would enchance a users experience.

Cheers

Amo

authcode
25-06-07, 14:16
Hi Amo,

I kind of see it working like this:
When fetching child categories of a category the children can be filtered by relationship as 'all', 'related', 'biological' or 'twinned'. That's how getCategoryTree currently works and that's fine (I actually have a few problems with implementing this but the theory's fine). This means a user can get to related categories via the navigation.
However, when listing products for a category and using includeDescendants at the moment all these twinned products are getting displayed as well and in this example the results are a little strange.
I think the obvious fix for this it to be able to specify the relationship type in getProductList as being 'all', 'related', 'biological' or 'twinned'.
This would allow us to be strict or loose about what products show for what categories. This would also allow you to populate a second panel with related products as you suggested above.

How does that sound?

amarath
25-06-07, 14:58
Spot on!

Ive added it to the requirements list for review this wednesday :)

Cheers Steve!