You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by jl...@apache.org on 2020/03/28 11:43:40 UTC
[ofbiz-plugins] branch release18.12 updated: Fixed: Product Images
not rendering on One Page Checkout (OFBIZ-11400)
This is an automated email from the ASF dual-hosted git repository.
jleroux pushed a commit to branch release18.12
in repository https://gitbox.apache.org/repos/asf/ofbiz-plugins.git
The following commit(s) were added to refs/heads/release18.12 by this push:
new fcbb750 Fixed: Product Images not rendering on One Page Checkout (OFBIZ-11400)
fcbb750 is described below
commit fcbb750cf6c521dac76b1cf7d95918332684b452
Author: Pawan Verma <pa...@hotwaxsystems.com>
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="<@o...@ofbizContentUrl>"
alt="Product Image" />