Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hi,
I am trying to display product Image on Product details page. Below the code in Product[XSLT].xslt
<div style="float: left; width: 150px;"> <img alt="Image"> <xsl:attribute name="src"> <xsl:value-of select="umbraco.library:GetMedia($product/product/@thumbnailImage, true())/data[@alias = 'umbracoFile']"/> </xsl:attribute> </img> </div>
but does not display any product image
I am using umbraco v 4.5.2 Ucommerce Package version 1.1.1.0Ucommerce Store Package version 1.0.1.3
please give me an idea how to solve that problem.
Thanks
shah
Do you use the new or old xml schema? Your xslt says you want to use the old xml but have you configured umbraco to do that? You can find that in the umbracoSettings config in the config folder - UseLegacyXmlSchema true/false
For the new schema you'd use:
<xsl:value-of select="umbraco.library:GetMedia($product/product/@thumbnailImage, 0)/umbracoFile"/>
guys its working
Perfect. Could you make the thread as solved? Thanks.
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Product Image missing in Product Details page
Hi,
I am trying to display product Image on Product details page. Below the code in Product[XSLT].xslt
<div style="float: left; width: 150px;">
<img alt="Image">
<xsl:attribute name="src">
<xsl:value-of select="umbraco.library:GetMedia($product/product/@thumbnailImage, true())/data[@alias = 'umbracoFile']"/>
</xsl:attribute>
</img>
</div>
but does not display any product image
I am using
umbraco v 4.5.2
Ucommerce Package version 1.1.1.0
Ucommerce Store Package version 1.0.1.3
please give me an idea how to solve that problem.
Thanks
shah
Do you use the new or old xml schema? Your xslt says you want to use the old xml but have you configured umbraco to do that? You can find that in the umbracoSettings config in the config folder - UseLegacyXmlSchema true/false
For the new schema you'd use:
Thanks
guys its working
Perfect. Could you make the thread as solved? Thanks.
is working on a reply...