[ofbiz-plugins] branch release17.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 release17.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 release17.12
in repository https://gitbox.apache.org/repos/asf/ofbiz-plugins.git


The following commit(s) were added to refs/heads/release17.12 by this push:
     new 3e312ac  Fixed: Product Images not rendering on One Page Checkout (OFBIZ-11400)
3e312ac is described below

commit 3e312acc68c2731e5e63c0039c1f8e77a5efa2c6
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" />