Skip to main content
Michael Michalak

Main navigation

  • Home
  • About
  • Blog
  • Contact
User account menu
  • Log in

Blog

Drupal 7: End of Life 2021

Recently I have been planning ahead with a couple of clients for their Drupal 7 upgrade.  Drupal 7 will be supported by the community until the end of November 2021.

What does this mean for Drupal 7 projects?  It means that if you haven't started planning an upgrade to Drupal 8, you should now.  

The same goes for Drupal 8 and Drupal 8 will only be supported to the end of 2021 like Drupal 7, but the transition will be very easy to Drupal 9.  That means by the end of  2021 each Drupal 7 and Drupal 8 project should be updated to the latest version of Drupal 8.

Tags

  • Drupal
  • Drupal 7
  • Drupal 8
  • Drupal Commerce
Default blog post image

Drupal 8 - Update Routes

I recently update my modules routing.yml file and needed to update the routes in my Drupal 8 project.

Clearing the caches won't update the routes.

To update the routes run this command with Drush: drush ev '\Drupal::service("router.builder")->rebuild();'

Tags

  • Drupal 8
  • Drupal Development
  • Drush
Drupal 7 Image Style Admin Page

Drupal 7 - Image Styles Not Regenerating

Every now and then I work on a project were the image styles are missing and usually not regenerating.  This usually occurs when moving a site from one hosting provider to another due to missing files and or purging image styles.

In this case, I was moving a Drupal 7 project to Pantheon.  This is when I found missing images and I was trying to regenerate them.

A couple of good modules for managing image styles are: 

Tags

  • Drupal 7
Default blog post image

Drupal 8: Form API - Weight Fields

Currently, I am working on a custom form that generates products on the fly for a custom purchase order implementation.  

For this Drupal 8 commerce website, the product variations have a required weight field which was needed in the custom form.  

Here is an example of the weight field. 

Tags

  • Drupal 8
  • Drupal Commerce
  • Drupal Development
  • Form API
  • Purchase Orders
Default blog post image

Drupal 8: Applying Patches with Composer

How to apply and manage patches with composer. 

First add the library 'cweagans/composer-patches' to your composer.json

Then under installer-paths in your composer.json add "patches".  "Patches" is then organized by modules.  Here is an example: 

Tags

  • Composer
  • Drupal
  • Drupal 8
  • Drupal Development
Default blog post image

Drupal 8: Form API Autocomplete Filtering By Role

I have been creating a lot of custom forms for purchase order creation and custom shipping methods, using Drupal 8's form API.

For the latest form, I needed to add an autocomplete field for user accounts that filtered by a specific role.

In the example below I only needed to show users with the role of 'Supplier'

Example:

Tags

  • Drupal
  • Drupal 8
  • Form API
Michalak video update

Video Update! Drupal Backend and Commerce Development

Looking for a Drupal developer?  Specifically a Drupal Commerce or a backend developer? Then you came to the right place. 
I am a backend Drupal developer with extensive experience working with Drupal Commerce for both Drupal 7 and 8 for over seven years now.

Tags

  • Commerce Shipping
  • Drupal
  • Drupal 8
  • Drupal Commerce
  • Drupal Development
  • Form API
  • Integration
  • Payment Gateway
  • Purchase Orders
  • REST API
  • Update
  • Video
  • Warehouse Mangement
Google Icons

Google Chrome Ignoring Autocomplete

While working on a Drupal Commerce project, I came across an interesting issue during checkout. My client’s coupon field keeps getting populated with a user’s country when they use autofill to fill out their address.

Upon working through disabling the autofill or autocomplete feature on the coupon field, the new version of Google’s browser Google Chrome ignores the autocomplete=off setting.

The solution to this problem was to update the autocomplete attribute with a string other than ‘off.’

Correct way, but ignored by Google:

Tags

  • Google
  • Drupal Development
Drupal Vs Wordpress

Drupal Vs WordPress

Why Choose Drupal Over WordPress?

There are three main reasons why I prefer using Drupal for website development, and they are:
- Licensing
- Security
- Flexibility

Tags

  • Drupal
  • Wordpress
Default blog post image

Drupal 8 Commerce 2.x Order Messages

I'm currently working on a custom feature for Drupal 8 Commerce 2.x, and I decided along the way that I wanted to update orders with messages. Documentation on this topic was so light that I decided to write my own post about it!

Your custom module will need to have a couple of additional files:
- mymodule.commerce_log_categories.yml
- mymodule.commerce_log_templates.yml

mymodule.commerce_log_categories.yml

Defines our log categories.  e.g.

Tags

  • Drupal
  • Drupal Development
  • Drupal Commerce

Pagination

  • First page
  • Previous page
  • Page 1
  • Page 2
  • Current page 3
  • Page 4
  • Next page
  • Last page

About

  • Resume
  • Shopify Experience
  • Drupal 7 Experience
  • Drupal 8 Experience
  • Drupal Commerce Experience
  • Hosting Experience
  • Videos

Connect

  • Contact
  • LinkedIn
  • Drupal.org
  • Github

Drupal Association

Drupal Association Individual Member Logo

 

RSS feed

Footer

  • Privacy Policy
  • Terms of Use

Mindfulness and Meditation LLC © 2023