META-INF.resources.view.jsp Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of com.liferay.commerce.checkout.web
Show all versions of com.liferay.commerce.checkout.web
Liferay Commerce Checkout Web
<%--
/**
* 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" %>
<%
CheckoutDisplayContext checkoutDisplayContext = (CheckoutDisplayContext)request.getAttribute(WebKeys.PORTLET_DISPLAY_CONTEXT);
%>
<%
boolean complete = true;
String currentCheckoutStepName = checkoutDisplayContext.getCurrentCheckoutStepName();
int step = 1;
List commerceCheckoutSteps = checkoutDisplayContext.getCommerceCheckoutSteps();
Iterator commerceCheckoutStepIterator = commerceCheckoutSteps.iterator();
while (commerceCheckoutStepIterator.hasNext()) {
CommerceCheckoutStep commerceCheckoutStep = commerceCheckoutStepIterator.next();
String name = commerceCheckoutStep.getName();
if (!currentCheckoutStepName.equals(name) && !commerceCheckoutStep.isVisible(request, response)) {
continue;
}
String cssClass = "multi-step-item";
if (commerceCheckoutStepIterator.hasNext()) {
cssClass += " multi-step-item-expand";
}
if (currentCheckoutStepName.equals(name)) {
cssClass += " active";
complete = false;
}
if (complete) {
cssClass += " complete";
}
%>
-
<%
step++;
}
%>
<%
checkoutDisplayContext.renderCurrentCheckoutStep(pageContext);
%>
function saveCheckoutStep() {
submitForm(document. fm);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy