Hi Everyone,

Question.

Background Info:

I've got 3 products.

Product A - 12 pack
Product A - 75 pack
Product A - 150 pack

In my primary menu I link to the catalog.
I then have a child link that links to "Product A".

I've got 3 product A's with different pack quantities, so my child link links to "Product A - 12 pack" by default.

All of that works fine.

Next I use the uc_upsell module to display the "Product A - 75 pack" and the "Product A - 150 pack" when viewing the default "Product A - 12 pack"

Problem:

If you click the link to view "Product A - 12 pack" in the primary menu, you will land on the product. The link that you've clicked takes on a class of ".active-trail".

That is great.

The problem is that if you click on related "Product A - 75 pack" or "Product A - 150 pack" you'll be taken to that product and there since the primary menu child link links to "Product A - 12 pack" by default and not to the "Product A - 75 pack" / "Product A - 150 pack", Drupal has no way of telling the menu to apply the ".active-trail" class to child link in the primary menu.

Possible Solutions:

I know that the core logic problem lies with me trying to use duplicate products with different pack quantities but I did not see any other way of accomplishing this with Ubercart (Please correct me if I am wrong).

The only solution I could come up with is to write a static JavaScript to append the .active-trail class to the primary menu child when viewing the "Product A - 75 pack" and "Product A - 150 Pack".

If anyone else has a better way of doing this I would love to hear your advice.

I hope this is all comprehensible. It's a tricky situation to explain. To see the website I am working with head over to:

http://ec4u.dev.creative-ctrl.com/product/wallys-natural-100-beeswax-ear...

Please keep in mind that I am only responsible for the technical end of things on this site and not the creative design end ;) Also, the site hasn't been optimized for Internet Explorer yet. It has been developed in Firefox 3.0.11.

Thank you all very much in advance.