GetManufacturer image in project listing tile

Jignesh Patel asked on October 12, 2015 03:56

Hi,

I want to show manufacturer image/logo into product tile. Please help me and show me how can I retrieve manufacturer thumbnail/image?

My current macro/transformation is

<%@ Register Src="~/CMSAdminControls/ContentRating/RatingControl.ascx" TagName="RatingControl" TagPrefix="cms" %>

<!-- START: Product tile -->
<div class='product-tile'>
    <div class='tile-header')">
        <!-- HERE I WANT TO DISPLAY MANUFACTURER IMAGE -->
    </div>
    <div class='tile-content'>
        <h3><%# Eval("Heading") %></h3>
    </div>
    <cms:RatingControl ID="elemRating" runat="server" Enabled="false" RatingType="Stars" ExternalValue='<%# EvalDouble("DocumentRatingValue")/(EvalDouble("DocumentRatings") == 0?1:EvalDouble("DocumentRatings")) %>' />
    <a class='overflow-link' href='<%# GetDocumentUrl() %>'></a>
</div>
<!-- END: Product tile -->

Thanks

Correct Answer

Maarten van den Hooven answered on October 12, 2015 10:17

Hi Jignesh, this is working for me :

<img src="<%# ResolveUrl("~/CMSPages/GetMetaFile.aspx?fileguid=" + CMS.Ecommerce.EcommerceTransformationFunctions.GetManufacturer(Eval("SKUManufacturerID"),    "ManufacturerThumbnailGUID")) %>" />

Good luck!

1 votesVote for this answer Unmark Correct answer

   Please, sign in to be able to submit a new answer.