covered

drupal/commerce_discount_firsttime

Straightforward action and implementation. What it does: Adds "First Time Order Discount" to Commerce Discount Condition list, for an "Order" type discount. http://www.qed42.com/blog/first-ti...

0 active installs

About this module

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-commerce Maintainers

Install with Composer:

composer require drupal/commerce_discount_firsttime