Straightforward action and implementation.

What it does: Adds "First Time Order Discount" to Commerce Discount Condition list, for an "Order" type discount.

How it works:

  1. Checks if the UID (User ID) is 0 (Anonymous) then pass as TRUE.
  2. Otherwise it queries the UID against the commerce_order table,
    counts the number of orders that UID has made.
  3. If 1 or less than one (Having an active cart, counts as 1.
    Ergo, first order), pass condition as TRUE.

Documentation: http://www.qed42.com/blog/first-time-customer-order-discount-drupal-comm...

Maintainers

Supporting organizations: 
Development
Maintenance

Project information

Releases