Developer forum

Forum » Templates » Returning the product image for an orderline.

Returning the product image for an orderline.

Antonio Amezquita Ganoza
Reply
Hi

Need to display product images in an small cart, is it possible to return the product image for an orderline?




Replies

 
Nicolai Høeg Pedersen
 
Antonio Amézquita Ganoza
Reply
Hi Nicolai

Thanks for your quick input, I still have an issue tough,

I can output the Ecom:Product.Name in a products loop inside an orderline loop, but not the the Ecom:Product.ImageSmall,
it works only when DwTemplate is included in the template.

Am I doing something wrong?, Here the code:


 <!--@LoopStart(OrderLines)--> 
    	<!--@LoopStart(Products)-->   
    <div class="pad9">
    	
        <div class="cartCol1">
        	<img alt="" src="/admin/public/getimage.aspx?&Image=<!--@Ecom:Product.ImageSmall.Clean-->&Width=87&Resolution=75&Compression=90" />	
        </div>
        <div class="cartCol2">  
            <div class="cartProductTitle"><a href="<!--@Ecom:Product.Link.Clean-->"><!--@Ecom:Product.Name--></a></div>           
            <div class="cartProductTitleAmount">Antal <!--@Ecom:Order:OrderLine.Quantity--></div>
            <div class="cartProductUnitPrice">
                <div class="left">Pr. stk.</div>
                <div class="right"><b><!--@Ecom:Order:OrderLine.UnitPriceWithoutSymbol-->&nbsp;<!--@Ecom:Order:OrderLine.UnitPrice.Currency.Code--></b></div>
            </div>
        </div>
          
          <!--@DwTemplateTags-->
          <div class="clear">&nbsp;</div>
    </div>
    <div class="productDetailSplitterCart">&nbsp;</div>   
    		<!--@LoopEnd(Products)-->   
        <!--@LoopEnd(OrderLines)-->


 

You must be logged in to post in the forum