Skip to main content
Michael Michalak

Main navigation

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

Blog

Drupal coupon Drupal promotions

Drupal 8 Commerce Promotions - Buy X or more of the same product and get % off that order item

Currently "Buy X and Get Y" discount is only related to the whole order and not at the order item level. 

I needed order item level discounts. e.g. buy 10 or more of the same product and get 10% off that order item. 

The new promotion will only discount at the order item level for order items with a quantity of 10 or more.

Tags

  • Commerce Promo
  • Drupal 8
  • Drupal Commerce
  • Drupal Development
Titles

Drupal 8 - Longer Titles - Entity Title Length/Node Title Length

I created this post to have a quick overview of the two different Drupal 8 modules that extend the default node title length.  There are currently two modules: Node Title Length and Entity Title Length.  

Both modules are easy to set up and both have a very minimal configuration.   I do recommend the Node Title Length module due to being in a stable and released state.

Node Title Length [Recommended]

  • Module: https://www.drupal.org/project/title_length

Tags

  • Drupal
  • Drupal 8
Default blog post image

Drupal 8 Commerce - Setting a Default Currency on Product Variations

By default Drupal 8 commerce 2.x product variations do not have a default currency setting for multi-currency projects.  

Currently, there is a patch in the works to solve this issue.  The patch can be found in the commerce issue queue: https://www.drupal.org/project/commerce/issues/3016777

Thank you a.dmitriiev for creating a patch to solve this issue!

Tags

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

Drupal: Pantheon Cookies

I've been using the commerce_currency_resolver module and it has been fantastic to use.   One issue I ran into was with how the cookies are handled on Pantheon.

When using custom cookies a special naming convention must be used.  The cookie's name must start with STYXKEY.

Per Pantheon: 

Tags

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

Drupal 8 Configuration Synchronization

Configuration Synchronization

Drupal 8 has a really great configuration synchronization system, and is great for syncing up different environments.  When creating new modules and adding new fuctionality I really enjoy working with Drupal 8's configuration synchronization tool.  Not only does this tool take the guesswork out of updates that need to be made on other environments.  The configuration synchronization also allows for all changes to be documented.  

Tags

  • API
  • Composer
  • Drupal
  • Drupal 8
  • Drupal Commerce
  • Drupal Development
  • Update
Drupal commerce multicurrency

Drupal Commerce Multi-currency

I have been working on many Drupal commerce projects both Drupal 7 and Drupal 8 and I have encountered the need for multiple currencies many times.   Drupal 8 has made it very easy to have multiple currencies. 

Tags

  • Commerce Shipping
  • Drupal
  • Drupal 8
  • Drupal Commerce
  • Drupal Development
  • Integration
  • Payment Gateway
Default blog post image

Drupal 8 Commerce Tax for VAT and Sales Tax

Today I have been working through an issue with commerce tax.  I had to apply a patch that allows me to configure taxes a bit more.

The patch allows Drupal commerce to decouple the tax calculation with the store address.  That way the Drupal commerce store can have multiple tax rates instead of one tax rate for the state the store is located in.  

Drupal Issue: https://www.drupal.org/project/commerce/issues/3005440

Tags

  • Drupal
  • Drupal 8
  • Drupal Commerce
  • Drupal Development

Drupal 8 Performance Tuning

This week I started a mini project to optimize a slow Drupal 8 website.  The issue, various parts of the website are taking 10, 20 and even 30 seconds to load.  Wow, long time.

Tags

  • Drupal
  • Drupal 8
  • Drupal Development
  • Drupal Performance
  • Google
  • Update
Drupal Currency Conversion

Exchange Rates API

Wow, what a great little API.  Exchange Rates API is a free API that helps with currency conversion rates.  

All that needs to be sent is the base currency and the currency that you want to convert.  Then the conversion rate is returned.  Making it simple. 

Example

GET Request: https://api.exchangeratesapi.io/latest?base=USD&symbols=GBP

Result: {"base":"EUR","rates":{"USD":1.1264,"GBP":0.86168},"date":"2019-04-11"}

Tags

  • API
  • Drupal
  • Drupal 7
  • Drupal 8
  • Drupal Commerce
  • Drupal Development
  • Integration
Website Security

Drupal and Cloudflare

Cloudflare is a great tool to add another layer of security to your Drupal website.  

When setup correctly Cloudflare will act as a firewall to block malicious traffic to your Drupal website at the application level.  Cloudflare blocks many types of attacks: cross-site scripting, cross-site forgery requests, and SQL injection attacks.  User checks can also be enabled such as GEO IP location and browser integrity checking to limit questionable or unneeded traffic.

Cloudflare also acts as a CDN and has many caching and performance features.  

Tags

  • Drupal
  • Drupal 7
  • Drupal 8
  • Drupal Commerce
  • Drupal Performance
  • Security

Pagination

  • First page
  • Previous page
  • Page 1
  • Current page 2
  • 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