Commit 298da3c6 authored by bojanz's avatar bojanz Committed by bojanz

Issue #2885483 by Hubbs, gauravjeet, bojanz, AaronChristian, rszrama: Improve...

Issue #2885483 by Hubbs, gauravjeet, bojanz, AaronChristian, rszrama: Improve the Commerce configuration UX
parent 289a07eb
......@@ -2,12 +2,18 @@ commerce.admin_commerce:
title: 'Commerce'
route_name: 'commerce.admin_commerce'
parent: 'system.admin'
description: 'Administer your commerce data and configuration.'
description: 'Administer and configure your Commerce store.'
weight: -9
commerce.configuration:
title: 'Configuration'
route_name: 'commerce.configuration'
parent: 'commerce.admin_commerce'
description: 'Configure your store and Commerce module settings.'
description: 'Configure your store settings and structure.'
weight: 10
commerce.store_configuration:
title: 'Store'
route_name: 'commerce.store_configuration'
parent: 'commerce.configuration'
weight: -20
......@@ -9,7 +9,16 @@ commerce.admin_commerce:
commerce.configuration:
path: '/admin/commerce/config'
defaults:
_controller: '\Drupal\system\Controller\SystemController::systemAdminMenuBlockPage'
_controller: '\Drupal\system\Controller\SystemController::overview'
link_id: 'commerce.configuration'
_title: 'Configuration'
requirements:
_permission: 'access commerce administration pages'
commerce.store_configuration:
path: '/admin/commerce/config/store'
defaults:
_controller: '\Drupal\system\Controller\SystemController::systemAdminMenuBlockPage'
_title: 'Store'
requirements:
_permission: 'access commerce administration pages'
......@@ -11,6 +11,14 @@ use Drupal\Core\Field\BaseFieldDefinition;
use Drupal\Core\Form\FormStateInterface;
use Drupal\Core\Session\AnonymousUserSession;
/**
* Implements hook_menu_links_discovered_alter().
*/
function commerce_cart_menu_links_discovered_alter(&$links) {
$description = t('Manage fields, Add to Cart forms, other form and display settings for your order items.');
$links['entity.commerce_order_item_type.collection']['description'] = $description;
}
/**
* Implements hook_theme().
*/
......
entity.commerce_checkout_flow.collection:
title: 'Checkout flows'
route_name: 'entity.commerce_checkout_flow.collection'
parent: 'commerce.configuration'
description: 'Manage your checkout flows.'
parent: 'commerce_order.configuration'
description: 'Configure your checkout forms.'
commerce_order.configuration:
title: 'Orders'
route_name: 'commerce_order.configuration'
parent: 'commerce.configuration'
weight: -5
entity.commerce_order.collection:
title: Orders
route_name: entity.commerce_order.collection
parent: commerce.admin_commerce
title: 'Orders'
route_name: 'entity.commerce_order.collection'
parent: 'commerce.admin_commerce'
description: 'Manage your orders.'
entity.commerce_order_type.collection:
title: Order types
route_name: entity.commerce_order_type.collection
parent: commerce.configuration
description: 'Manage your order types.'
title: 'Order types'
route_name: 'entity.commerce_order_type.collection'
parent: 'commerce_order.configuration'
description: 'Manage fields, form and display settings for your orders.'
weight: -10
entity.commerce_order_item_type.collection:
title: Order item types
route_name: entity.commerce_order_item_type.collection
parent: commerce.configuration
description: 'Manage your order item types.'
title: 'Order item types'
route_name: 'entity.commerce_order_item_type.collection'
parent: 'commerce_order.configuration'
description: 'Manage fields, form and display settings for your order items.'
weight: -5
commerce_order.configuration:
path: '/admin/commerce/config/orders'
defaults:
_controller: '\Drupal\system\Controller\SystemController::systemAdminMenuBlockPage'
_title: 'Orders'
requirements:
_permission: 'access commerce administration pages'
entity.commerce_order.add_page:
path: '/admin/commerce/orders/add'
defaults:
......
commerce_payment.configuration:
title: 'Payment'
route_name: 'commerce_payment.configuration'
parent: 'commerce.configuration'
weight: -10
entity.commerce_payment_gateway.collection:
title: 'Payment gateways'
route_name: 'entity.commerce_payment_gateway.collection'
parent: 'commerce.configuration'
description: 'Manage your payment gateways.'
parent: 'commerce_payment.configuration'
description: 'Configure the gateways you take payment through.'
commerce_payment.configuration:
path: '/admin/commerce/config/payment'
defaults:
_controller: '\Drupal\system\Controller\SystemController::systemAdminMenuBlockPage'
_title: 'Payment'
requirements:
_permission: 'access commerce administration pages'
entity.commerce_payment.add_form:
path: '/admin/commerce/orders/{commerce_order}/payments/add'
defaults:
......
entity.commerce_currency.collection:
title: Currencies
route_name: entity.commerce_currency.collection
parent: commerce.configuration
parent: 'commerce.store_configuration'
description: 'Manage your currencies.'
commerce_product.configuration:
title: 'Products'
route_name: 'commerce_product.configuration'
parent: 'commerce.configuration'
weight: -15
entity.commerce_product.collection:
title: 'Products'
route_name: 'entity.commerce_product.collection'
......@@ -13,11 +19,11 @@ entity.commerce_product_attribute.collection:
entity.commerce_product_type.collection:
title: 'Product types'
route_name: 'entity.commerce_product_type.collection'
parent: 'commerce.configuration'
description: 'Manage your product types.'
parent: 'commerce_product.configuration'
description: 'Manage fields, form and display settings for your products.'
entity.commerce_product_variation_type.collection:
title: 'Product variation types'
route_name: 'entity.commerce_product_variation_type.collection'
parent: 'commerce.configuration'
description: 'Manage your product variation types.'
parent: 'commerce_product.configuration'
description: 'Manage fields, form and display settings for your product variations.'
commerce_product.configuration:
path: '/admin/commerce/config/products'
defaults:
_controller: '\Drupal\system\Controller\SystemController::systemAdminMenuBlockPage'
_title: 'Products'
requirements:
_permission: 'access commerce administration pages'
......@@ -7,5 +7,5 @@ entity.commerce_store.collection:
entity.commerce_store_type.collection:
title: 'Store types'
route_name: 'entity.commerce_store_type.collection'
parent: 'commerce.configuration'
description: 'Manage your store types.'
parent: 'commerce.store_configuration'
description: 'Manage fields, form and display settings for your stores.'
entity.commerce_tax_type.collection:
title: 'Tax types'
route_name: 'entity.commerce_tax_type.collection'
parent: 'commerce.configuration'
description: 'Manage your tax types.'
parent: 'commerce.store_configuration'
description: 'Define the taxes you collect.'
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment