{% extends "_market/_layouts/main" %} {% set currentVendor = market.vendors.getCurrentVendor() %} {% set vendorSettings = market.plugin.getVendorSettings().getSettings() %} {% set shippingZones = craft.commerce.getShippingZones().getAllShippingZones() %} {% set currentCurrency = craft.commerce.getPaymentCurrencies().primaryPaymentCurrency %} {% set site = craft.app.getSites().currentSite %} {% set title = 'Create new shipping profile'|t('market') %} {% if profileId is defined and profileId != null %} {% if shippingProfile is not defined %} {% set shippingProfile = market.plugin.shippingProfiles.getShippingProfileById(profileId) %} {% endif %} {% if not shippingProfile %}{% exit 404 %}{% endif %} {% set title = shippingProfile.name %} {% elseif shippingProfile is not defined %} {% set shippingProfile = create({ class: 'angellco\\market\\models\\ShippingProfile', vendorId: currentVendor.id }) %} {% endif %} {% set breadcrumbs = [ { url: url('market/shipping'), label: 'Shipping'|t('market') }, { url: craft.app.request.getUrl, label: title } ] %} {% block content %}
{% endblock %}