{% extends "commerce/_layouts/cp" %} {% set selectedSubnavItem = 'shipping' %} {% set bodyClass = (bodyClass is defined ? bodyClass~' ' : '') ~ "commercesettings" %} {% set title = "Shipping"|t('commerce') %} {% set navItems = {} %} {% if currentUser.admin or currentUser.can('commerce-manageShipping') %} {% set navItems = navItems|merge({ 'shippingmethods': { title: "Shipping Methods"|t('commerce'), minEdition: 'pro' }, 'shippingcategories': { title: "Shipping Categories"|t('commerce'), minEdition: 'pro' }, 'shippingzones': { title: "Shipping Zones"|t('commerce'), minEdition: 'pro' } }) %} {% endif %} {% if selectedItem is not defined %} {% set selectedItem = craft.app.request.getSegment(3) %} {% endif %} {% set docTitle = navItems[selectedItem].title~' - '~title %} {% block sidebar %} {% endblock %}