[ofbiz-plugins] branch release18.12 updated: Fixed: Product Images not rendering on One Page Checkout (OFBIZ-11400)

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[ofbiz-plugins] branch release18.12 updated: Fixed: Product Images not rendering on One Page Checkout (OFBIZ-11400)

jleroux@apache.org
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 <[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" />