Thank you for your suggestion to use the Commerce Combine Carts module. While itβs an interesting approach, I believe it doesnβt fully solve the issue.
The Combine Carts module merges all carts, which could confuse users. For example, if a user logs out, starts a new cart, and logs back in, merging items from an old cart into the new one might clutter their cart unnecessarily. This would require manual cleanup, leading to a less-than-ideal shopping experience.
Our goal is to display only the most relevant cart (e.g., the active one tied to the session) without merging or altering its contents. If there are other approaches you think might work better for this scenario, Iβd be happy to consider them.
alexdezark β created an issue.
I can't seem to understand: is there or is there not a version ready for Drupal 10?
Hi there,
Is it gonna be a Drupal 10 compatible version ?
For the moment, we should not think about creating new sites in Drupal 9 insofar as its end of life is fast approaching...
Thanks in advance for your answer.
Hi mohithasmukh
Thank you for your answer and the patch.
I can confirm that it works but I still need to do some testing as I've used it so far to generate a lot of taxonomy term aliases with Pathauto.
But without a doubt, who can do more can do less.
Anyway I still have tests to do because I am currently creating my terms and their translation programmatically and if the url of the term in the language of the site is created automatically, the url is not created for the translated term.
It may be a problem in my script, I'll come back soon to tell you what it is.
Here is my code, if you see something missing for the translation to be created don't hesitate to tell me.
$new_term = Term::create([
'vid' => 'activites',
'name' => $value["fr"]["name"],
'description' => [
"value" => $value["fr"]["description"],
"format" => 'full_html',
],
]);
$new_term -> addTranslation('en', [
'name' => $value["en"]["name"],
'description' => [
"value" => $value["en"]["description"],
"format" => 'full_html',
],
'path' => [
'pathauto' => PathautoState::CREATE,
]
]);
$new_term -> save();
alexdezark β created an issue.