Skip to content
Sandbox Project offered up for public download
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.


Sandbox Drupal Project for public download

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: First, 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.

1.) Download & Enable Module. 2.) Create/Edit Discount 3.) Add Condition "First Time Discount" 4.) Save Discount

You can’t perform that action at this time.