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:
- Checks if the UID (User ID) is 0 (Anonymous) then pass as TRUE.
- Otherwise it queries the UID against the commerce_order table, counts the number of orders that UID has made.
- If 1 or less than one (Having an active cart, counts as 1. Ergo, first order), pass condition as TRUE.
http://www.qed42.com/blog/first-time-customer-order-discount-drupal-commerce Maintainers
- michaelrobbe - original author
- AjitS - current maintainer
Install with Composer:
composer require drupal/commerce_discount_firsttime