Account created on 8 February 2007, almost 18 years ago
#

Recent comments

🇩🇪Germany flefle

The ones dealing with this issue, please consider to add an config/install/system.action.commerce_price_adjust.yml before enabling your Module (maybe update hook) or implement a post enable process (Route + Controller) running following code:

try {
$entity_type_manager = \Drupal::entityTypeManager();
$module_handler = \Drupal::moduleHandler();

// Save the bulk delete action to config.
$config_install_path = $module_handler->getModule('mbkovanie')->getPath() . '/' . InstallStorage::CONFIG_INSTALL_DIRECTORY;
$storage = new FileStorage($config_install_path);
$storageRead = $storage->read('system.action.commerce_price_adjust');
$entity_type_manager
->getStorage('action')
->create($storageRead)
->trustData()
->save();
} catch (\Exception $e) {
return new Response('Already exists.');
}

.... fun fact, if you are running a Commerce Module that evolved meanwhile, it is possible that the DC Actions are not active (available) and should be reinitialised by a similar process. My issue was solved by this, and wanted to provide the community my solution. Happy coding.

🇩🇪Germany flefle

Except of that, there is no hint or option to change this behaviour. I had to dig deep into the functionality to find out about this "design".

🇩🇪Germany flefle

@jsacksick: definitely there is a custom way to hook into but what if the Default Workflow should be used? The next Button is missing and there is no reason to do so? If for instance the Shipping Info (Anonymous user) is collected right away, there is no continue button.

🇩🇪Germany flefle

My bad, I wonder to which version it could be and how did it get there. @jsacksick Thank you for solving this "mystery" :)

🇩🇪Germany flefle

@grahamC as Sascha mentioned, could you please confirm if the "dialog-off-canvas-main-canvas" within /core/modules/system/templates/off-canvas-page-wrapper.html.twig present is? Was it overwritten maybe and after that the issue occurred?

See also:
https://www.drupal.org/forum/support/theme-development/2019-08-08/how-to...

Such cases as of: https://www.drupal.org/project/drupal/issues/3409505 🐛 Uncaught TypeError: Cannot read properties of null (reading 'style') (toolbar.js) Needs work should be escaped but the Issue could be fixed by applying the dialog-off-canvas-main-canvas in my case.

🇩🇪Germany flefle

Latest patch for 4.0.0-alpha3 version. Maybe something to put into next release?

🇩🇪Germany flefle

Attached bellow is the adopted patch for 10.2.x.

🇩🇪Germany flefle

This patch focuses only at:
Symfony\Component\DependencyInjection\Exception\ServiceCircularReferenceException: Circular reference detected for service "asset.css.collection_renderer", path: "ajax_response.subscriber
ArgumentCountError: Too few arguments to function Drupal\Core\Asset\CssCollectionRenderer::__construct(), 1 passed in /modules/contrib/amp/src/Asset/AmpCssCollectionRenderer

Production build 0.71.5 2024