Commerce First Time Customer Discount

Component ID

2155637

Component name

Commerce First Time Customer Discount

Component type

module

Maintenance status

Development status

Component security advisory coverage

covered

Downloads

577

Component created

Component changed

Component body

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