Developer forum

Forum » Templates » Missing related product on BOMProducts

Missing related product on BOMProducts

Oliver Lassen
Reply

Hi,

We have a problem. We seems to be missing our related products when we are looping through BOMProducts.

We are using this XSLT code:

<xsl:for-each select="loop[@name='BOMProducts']/item">
<xsl:for-each select="loop[@name='ProductRelatedGroups']/item">
<xsl:for-each select="loop[@name='RelatedProducts']/item">
Related product for BOMproduct
</xsl:for-each>
</xsl:for-each>
</xsl:for-each>

We have tried getting the XML that is passed to the XSLT, and there we can see related products on the main product, but we can not see related products on BOMProducts. How can we fix this?

 


Replies

 
Nicolai Høeg Pedersen
Reply

You can not.

 

That would impose a possible infinite loop. Only solution is to do a product template extender and make it render the related products when you arr rendering a product that is part of a bom list.

 

BR Nicolai

 
Oliver Lassen
Reply

Okay, thanks for the answer. We got our problem solved by downgrading the solution somehow. 

 
Nicolai Høeg Pedersen
Reply

So it used to work? But not any more?

 

Then it is a bug that needs to be investigated.

 

BR Nicolai

 
Oliver Lassen
Reply

Yes. For our solution it is working:

 

Dynamicweb.dll 8.1.1.7

8.1.1.7 Dynamicweb, Version=8.0.0.0, Culture=neutral, PublicKeyToken=null
  

Dynamicweb.Admin.dll 8.1.1.7
Dynamicweb.Admin, Version=8.0.0.0, Culture=neutral, PublicKeyToken=null

Dynamicweb.Controls.dll 8.1.1.7
Dynamicweb.Controls, Version=8.0.0.0, Culture=neutral, PublicKeyToken=null

 

 
Nicolai Høeg Pedersen
Reply

OK, will have a QA look into the matter and get back to you.

 

Thanks, Nicolai

 
Merethe Nielsen
Reply

Hi

 

I can reproduce that it's not the correct related product that is rendered for the BOM product when using e.g. 8.2.2.6 (it renders the BOM product it self as related product), but I can not reproduce missing related products for the BOM products.

 

This issue is bugged as bug 12054.

 

Kind regards,

Merethe

 

 

You must be logged in to post in the forum