Developer forum

Forum » Development » Troubles identifying groupid in prductloop

Troubles identifying groupid in prductloop


Reply
In the productlist view I would like to identify the groupid which is active to the current productlistview. I cannot seem to find it anywhere.

Previous I had just one type of products per productlistview. (for example productlistview plants shows only products from productgroup plants) I just took the  Products.Item(0).Groups(0).ID.Tostring(), the groupid of the first item in the loop to identify the groupid I needed.

Now I have a productlistview with products from serveral productgroups
(for example productlistview bestbuys shows products from productgroup plants and products from productgroup accessories)
In this case ....Groups(0) is no longer usefull.

But the product shown in this view was selected because of an groupid it has ....I want that id!

Can you help?

Replies

 
Reply
Isn't the ID in the query string or in the reqest?

Imar
 
Reply
No ... it doesnt seem to be ... just checked once again ...
 
Reply
In that case, you need to most more code and provide more context about what it is you're doing and need....

Imar

 

You must be logged in to post in the forum