All Downloads are FREE. Search and download functionalities are using the official Maven repository.

META-INF.resources.checkout_step.shipping_method.jsp Maven / Gradle / Ivy

There is a newer version: 5.0.100
Show newest version
<%--
/**
 * SPDX-FileCopyrightText: (c) 2000 Liferay, Inc. https://liferay.com
 * SPDX-License-Identifier: LGPL-2.1-or-later OR LicenseRef-Liferay-DXP-EULA-2.0.0-2023-06
 */
--%>

<%@ include file="/init.jsp" %>

<%
ShippingMethodCheckoutStepDisplayContext shippingMethodCheckoutStepDisplayContext = (ShippingMethodCheckoutStepDisplayContext)request.getAttribute(CommerceCheckoutWebKeys.COMMERCE_CHECKOUT_STEP_DISPLAY_CONTEXT);

List commerceShippingMethods = shippingMethodCheckoutStepDisplayContext.getCommerceShippingMethods();
CommerceOrder commerceOrder = shippingMethodCheckoutStepDisplayContext.getCommerceOrder();

String commerceShippingOptionKey = ParamUtil.getString(request, "commerceShippingOptionKey");

if (Validator.isNull(commerceShippingOptionKey)) {
	commerceShippingOptionKey = shippingMethodCheckoutStepDisplayContext.getCommerceShippingOptionKey(commerceOrder.getCommerceShippingMethodId(), commerceOrder.getShippingOptionName());
}
%>

var continueButton = A.one('#continue'); if (continueButton) { Liferay.Util.toggleDisabled(continueButton, true); }
    <% for (CommerceShippingMethod commerceShippingMethod : commerceShippingMethods) { List commerceShippingOptions = shippingMethodCheckoutStepDisplayContext.getFilteredCommerceShippingOptions(commerceShippingMethod); %>
  • <% for (CommerceShippingOption commerceShippingOption : commerceShippingOptions) { String commerceShippingOptionName = shippingMethodCheckoutStepDisplayContext.getCommerceShippingOptionName(commerceShippingOption); String curCommerceShippingOptionKey = shippingMethodCheckoutStepDisplayContext.getCommerceShippingOptionKey(commerceShippingMethod.getCommerceShippingMethodId(), commerceShippingOption.getKey()); %>
  • <% String thumbnailSrc = commerceShippingMethod.getImageURL(themeDisplay); %>
    <%= HtmlUtil.escapeAttribute(commerceShippingOptionName) %>
  • <% } } %>




© 2015 - 2025 Weber Informatics LLC | Privacy Policy