Fixed: Unable to remove items from onePageCheckout screen of e-commerce.

(OFBIZ-10800)

Thanks Arpit Mor for reporting and Dhaval Wagela for the patch.
This commit is contained in:
Suraj Khurana
2020-03-02 12:18:52 +05:30
parent 6d031fe2db
commit 2de8058af8
2 changed files with 7 additions and 3 deletions
+2 -2
View File
@@ -86,7 +86,7 @@ under the License.
</#if>
<tr id="cartItemDisplayRow_${cartLine_index}">
<td headers="orderItem">
<img src="<@ofbizContentUrl>${requestAttributes.contentPathPrefix!}${smallImageUrl}</@ofbizContentUrl>"
<img src="<@ofbizContentUrl>${requestAttributes.contentPathPrefix!}${StringUtil.wrapString(smallImageUrl!)!}</@ofbizContentUrl>"
alt = "Product Image" /></td>
<td headers="description">${cartLine.getName(dispatcher)!}</td>
<td class="amount" headers="unitPrice">${cartLine.getDisplayPrice()}</td>
@@ -184,7 +184,7 @@ under the License.
locale, dispatcher, "url")! />
<#if !smallImageUrl?string?has_content><#assign smallImageUrl = "" /></#if>
<#if smallImageUrl?string?has_content>
<img src="<@ofbizContentUrl>${requestAttributes.contentPathPrefix!}${smallImageUrl}</@ofbizContentUrl>"
<img src="<@ofbizContentUrl>${requestAttributes.contentPathPrefix!}${StringUtil.wrapString(smallImageUrl!)!}</@ofbizContentUrl>"
alt="Product Image" />
</#if>
</#if>
@@ -595,7 +595,11 @@ function updateShippingSummary() {
jQuery('#completedShippingContactNumber').html(shippingContactPhoneNumber);
jQuery('#completedEmailAddress').html(jQuery('#emailAddress').val());
jQuery('#completedShipToAddress1').html(jQuery('#shipToAddress1').val());
jQuery('#completedShipToAddress2').html(jQuery('#shipToAddress2').val());
if (jQuery('#shipToAddress2').val()) {
jQuery('#completedShipToAddress2').show().html(jQuery('#shipToAddress2').val());
} else {
jQuery('#completedShipToAddress2').hide();
}
if (jQuery('#shipToStateProvinceGeoId').val() == "_NA_") {
var shipToGeo = jQuery('#shipToCity').val()+", "+jQuery('#shipToCountryGeoId').val()+" "+jQuery('#shipToPostalCode').val();
}