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

META-INF.resources.view.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" %>

<%
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