Developer forum
E-mail notifications
Product primary group
Is there any way of doing this today without the need to specify a customfield for holding a groupid on a product?
Im really missing this feature i must say...
Replies
Will this be implemented some time in the future?
You rock +1!
How is this attribute used in frontend? I can't seem to find a template tag containing this, but I might be looking the wrong place.
BR.
Lars
It is used to render a canonical if you check the "Use canonical in eCommerce" checkbox in mgmt center under url settings...
You need it as a tag?
BR Nicolai
I need it as a tag :-)
/Rune
So was this ever made possible? That way we could make a breadcrumb straight to the product. Like: Pagename > Product Group > Product Name
In addition to it being available as a tag, should this also update the GroupLink tag? Or at least have it available side by side? I would love to be able to have consistent links to products, regardless of where they are being shown...
Imar
The tag is available:) If you've specified a primary group, the GroupID of that group is available in
<!--@Ecom:Product.PrimaryGroupID-->
There doesn't seem to be a full link tag that includes the GroupID, however, but I can live with that:)
BR.
Lars
... And you need to apply the GroupID parameter before the ProductID in the link. Otherwise, the URL will be /ProductName/GroupName.aspx :)
The problem with that is that it gives you the primary group, nut not the path to it. I have a structure like this:
/Workstations/MultiCoreServers/MyProduct
where MultiCoreServers is the primary group. The canonical is correctly set to /Workstations/MultiCoreServers/MyProduct but by using the ID alone I can't link to it correctly....
Imar
For now I have used snippets and done this on the product page:
<!--@SnippetStart(ProductGroupLink)--> <!--@LoopStart(AssociatedGroups)--> <!--@If(AssociatedGroups.LoopCounter=1)--> <!--@Ecom:Group.Link--> <!--@EndIf--> <!--@LoopEnd(AssociatedGroups)--> <!--@SnippetEnd(ProductGroupLink)-->
And then:
<!--@Snippet(ProductGroupLink)-->
where i need to build my breadcrumb.
This gives me the whole group link, with name and all.
/Rune
I do get the path (8.3.1.9), however, when the product is in a subgroup, the URL is /ProductName/SuperGroupName/SubGroupName.aspx.
Br.
Lars