This is an automated email from the ASF dual-hosted git repository.
pawan pushed a commit to branch trunk
in repository
https://gitbox.apache.org/repos/asf/ofbiz-plugins.gitThe following commit(s) were added to refs/heads/trunk by this push:
new 6b0c188 Fixed: Product Images not rendering on One Page Checkout (OFBIZ-11400)
6b0c188 is described below
commit 6b0c188f5afddfd5969e30a2af86287f387ba5cf
Author: Pawan Verma <
[hidden email]>
AuthorDate: Sat Mar 28 15:47:12 2020 +0530
Fixed: Product Images not rendering on One Page Checkout
(OFBIZ-11400)
Thanks: Archana Asthana for the report and Devanshu Vyas for the patch.
---
ecommerce/template/cart/UpdateCart.ftl | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/ecommerce/template/cart/UpdateCart.ftl b/ecommerce/template/cart/UpdateCart.ftl
index 5b0689e..d7505b0 100644
--- a/ecommerce/template/cart/UpdateCart.ftl
+++ b/ecommerce/template/cart/UpdateCart.ftl
@@ -181,8 +181,8 @@ under the License.
</#if>
<#assign smallImageUrl = Static["org.apache.ofbiz.product.product.ProductContentWrapper"]
.getProductContentAsText(cartLine.getProduct(), "SMALL_IMAGE_URL",
- locale, dispatcher, "url")! />
- <#if !smallImageUrl?string?has_content><#assign smallImageUrl = "" /></#if>
+ locale, dispatcher, "html")! />
+ <#if !smallImageUrl?string?has_content><#assign smallImageUrl = "/images/defaultImage.jpg" /></#if>
<#if smallImageUrl?string?has_content>
<img src="<@ofbizContentUrl>${requestAttributes.contentPathPrefix!}${StringUtil.wrapString(smallImageUrl!)!}</@ofbizContentUrl>"
alt="Product Image" />