Skip to content
Snippets Groups Projects
Commit 429d7701 authored by Jakub Piasecki's avatar Jakub Piasecki Committed by Jonathan Sacksick
Browse files

Issue #3466900 by zaporylie: Breadcrumbs are incorrect on the customer's order page

parent a1f7ed7b
Branches
Tags
8 merge requests!418Issue #3511232 by ccjjmartin: Fix add to cart dropdown when only one non-default variation type is provided,!379Issue #3491248 Validation is breaking the amount number format decimal point,!375Issue #3413020 by czigor: Using a translatable string as a category for field...,!357Issue #2914933: Add service tags to order-related interfaces,!344Resolve #3107602 "Product attributes do not update visually when switching variations",!343Resolve #3107602 "Product attributes do not update visually when switching variations",!342Issue #3476581 by josephr5000: add OrderItemLabelEvent,!300Issue #3466900 by zaporylie: Breadcrumbs are incorrect on the customer's order page
Pipeline #248014 passed
......@@ -401,3 +401,23 @@ function commerce_order_update_8220() {
return "You have elected to skip the order balance backfill. Please update your database manually with the following SQL:\n UPDATE commerce_order SET balance__currency_code = total_price__currency_code, balance__number = total_price__number - total_paid__number WHERE total_paid__number IS NOT NULL AND total_price__number IS NOT NULL and balance__number IS NULL;";
}
/**
* Update customer orders list view and change default url rewrite pattern.
*/
function commerce_order_update_8221() {
$config_factory = \Drupal::configFactory();
$view = $config_factory->getEditable('views.view.commerce_user_orders');
if ($view->get('display.default.display_options.fields.order_number.alter.path') === 'user/{{ raw_arguments.uid }}/orders/{{ order_id }}') {
return "The view is already up-to-date.";
}
if ($view->get('display.default.display_options.fields.order_number.alter.path') === 'user/{{ arguments.uid }}/orders/{{ order_id }}') {
$view->set('display.default.display_options.fields.order_number.alter.path', 'user/{{ raw_arguments.uid }}/orders/{{ order_id }}');
$view->save(TRUE);
return "The views.view.commerce_user_orders view was updated";
}
return "The views.view.commerce_user_orders couldn't be updated as the default path for the title field has been overridden with custom value. Test if rewrite pattern is correct.";
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment