Drupal 9

Automatically redirecting a user after login in a Drupal project is a common requirement. In Drupal 7, you'd probably have used hook_user_login() to handle this, but in Drupal 8/9 there's a more robust way to go about it. There are several contributed modules that offer this functionality, for example the...
Apr
The third version of Drupal 9 has been available for 1 month now. New features and improvements in Drupal 9.3 include: The new Olivero UI theme that was added in Drupal 9.1.0 is now stable.A new experimental beta module CKEditor 5 is included with Drupal 9.3.0 primarily for development purposes...
Jan
Drupal 9 is finally here. The big question within the Drupal world as we enter this new phase in the evolution of my favourite CMS: Now what? In an environment of Covid-19 quarantines and stay-at-home orders, websites are relied upon to do more heavy lifting than ever before. I'm passionate...
Jun
Jun
Drupal 8 dramatically improved the capabilities for creating multilingual websites. The content translation was moved to the core and an improved architecture made it much easier to internationalize complex sites. However, the language switcher could use some improvements. Here's how we customized it. As a digital agency with Catalan origins...
As ever-evolving Drupal developers, we've been in the process of moving towards a Composer-based workflow for managing our Drupal project code bases. While it is (usually) an easy leap to move from "drush dl" to "composer require" for Drupal contributed modules and themes, there is another significant opportunity for us...
Jun
Jun
Doing this for a particular order is pretty straightforward. All you need to have is the ID of the coupon code: // This is the ID of the coupon code you want to add to the order. $coupon_id = 1; /** @var \Drupal\commerce_order\Entity\OrderInterface $order */ $order = \Drupal\commerce_order\Entity\Order::load(1); $order->get('coupons')->appendItem($coupon_id); $order->save()...

Need a Drupal Expert?

Senior Drupal developer, freelance, specialized in what's hardest: migrations, multilingual sites, SaaS platforms and Stripe integration. I leverage AI to cut delivery times and costs, with expert review on every line of code.

No agency, no middlemen. Direct contact with the one who does the work.