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

META-INF.resources.edit_commerce_shipping_fixed_option_rel.jsp Maven / Gradle / Ivy

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

<%
CommerceShippingFixedOptionRelsDisplayContext commerceShippingFixedOptionRelsDisplayContext = (CommerceShippingFixedOptionRelsDisplayContext)request.getAttribute(WebKeys.PORTLET_DISPLAY_CONTEXT);

CommerceShippingFixedOptionRel commerceShippingFixedOptionRel = commerceShippingFixedOptionRelsDisplayContext.getCommerceShippingFixedOptionRel();

long countryId = commerceShippingFixedOptionRelsDisplayContext.getCountryId();
long regionId = commerceShippingFixedOptionRelsDisplayContext.getRegionId();
long commerceShippingMethodId = commerceShippingFixedOptionRelsDisplayContext.getCommerceShippingMethodId();

long commerceShippingFixedOptionRelId = 0;

if (commerceShippingFixedOptionRel != null) {
	commerceShippingFixedOptionRelId = commerceShippingFixedOptionRel.getCommerceShippingFixedOptionRelId();
}
%>


	

	
		
		
		
		

		
<% for (CommerceShippingFixedOption commerceShippingFixedOption : commerceShippingFixedOptionRelsDisplayContext.getCommerceShippingFixedOptions()) { %> <% } %>
<% for (CommerceInventoryWarehouse commerceInventoryWarehouse : commerceShippingFixedOptionRelsDisplayContext.getCommerceInventoryWarehouses()) { %> <% } %>
<% for (Country country : commerceShippingFixedOptionRelsDisplayContext.getCountries()) { %> <% } %>
<% for (Region region : commerceShippingFixedOptionRelsDisplayContext.getRegions()) { %> <% } %>
new Liferay.DynamicSelect([ { select: 'countryId', selectData: function (callback) { Liferay.Service( '/country/get-company-countries', { active: true, companyId: '<%= company.getCompanyId() %>', }, callback ); }, selectDesc: 'nameCurrentValue', selectId: 'countryId', selectSort: '<%= true %>', selectVal: '<%= countryId %>', }, { select: 'regionId', selectData: function (callback, selectKey) { Liferay.Service( '/region/get-regions', { active: true, countryId: Number(selectKey), }, callback ); }, selectDesc: 'name', selectId: 'regionId', selectVal: '<%= regionId %>', }, ]);




© 2015 - 2024 Weber Informatics LLC | Privacy Policy