Drupal Commerce order quantity limitations with Rules

I needed a while to set up some order quantity restrictions in Drupal Commerce and I've seen many different questions and issues on how to do such things. So here's what I did:

Tasks

  1. Set a line items order limit (quantity of same product)
  2. Set a product order limit (quantity of different products)

Requirements

How to programmatically add a product variation to the cart in Drupal commerce 2.x (Drupal 8)

Playing a bit with Drupal commerce in Drupal 8, we notice that several functions that we used to use in the past with D7 are gone in D8, or they've had several changes, dued to the new API.

Drupal commerce has lots of changes. The new concept give us more flexibility and features (for example, we don't need a content type to display our products, because they have now their own display page, the product variations are now in commerce core, or the Store concept.).

Commerce Avatax (5.x)

Connect to Avatax

After installing Commerce Avatax, configure the connection to AvaTax:

Performance

Locking

There are two different common locking problems you will likely encounter and it is very common to assume you have a single locking problem. Since these two locking problems are actually completely unrelated, it causes a lot of confusion as people look for the solution to “the locking problem” and get stuck on the wrong fix or a combination of the two.

Commerce Order Sub-total

The sandbox module, Commerce Order Sub-total, was developed for a client's shipping calculation requirement. The idea behind the module is to provide useful sub-totaling of Orders using the Rules framework. This module exposes three different ways to retrieve a sub-total of an order:

Pages

Subscribe with RSS Subscribe to RSS - Commerce