Hi Sanjeev,

You can use this code in
<ofbizDir>/applications/order/webapp/ordermgr/entry/cart/showAllPromotions.tfl
to see all promotions with promotion images.

<div>
    ${uiLabelMap.OrderSpecialOffers}
    <div>
        <ul>
        <#-- show promotions text -->
        <#list productPromosAllShowable as productPromo>
                <#assign productPromoContentWrapper =
Static["org.ofbiz.product.product.ProductPromoContentWrapper"].makeProductPromoContentWrapper(productPromo,
request)/>
            <#assign imageUrl =
Static["org.ofbiz.product.product.ProductPromoContentWrapper"].getProductPromoContentAsText(productPromo,
"ORIGINAL_IMAGE_URL", request)?if_exists>
                <#if !imageUrl?string?has_content>
                  <#assign imageUrl =
productPromoContentWrapper.get("ORIGINAL_IMAGE_URL")?if_exists>
                </#if>
                <#if !imageUrl?string?has_content>
                  <#assign imageUrl = "/images/defaultImage.jpg">
                </#if>
            <li><img
src=&quot;&lt;@ofbizContentUrl>${contentPathPrefix?if_exists}${imageUrl}</@ofbizContentUrl>"
class='cssImgStandard' alt="" /></li>
            <li><a
href=&quot;&lt;@ofbizUrl>showPromotionDetails?productPromoId=${productPromo.productPromoId}</@ofbizUrl>"
class="button">${uiLabelMap.CommonDetails}
${StringUtil.wrapString(productPromo.promoText?if_exists)}</li>
        </#list>
        </ul>
    </div>
</div>

<#if (shoppingCartSize > 0)>
  ${screens.render(promoUseDetailsInlineScreen)}
</#if>

Regards
Mohd Viqar

--
View this message in context: 
http://ofbiz.135035.n4.nabble.com/How-to-access-image-associated-with-Promo-tp4632744p4633373.html
Sent from the OFBiz - User mailing list archive at Nabble.com.

Reply via email to