Skip to content

michaelrobbe/commerce_discount_first_time_customer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

commerce_discount_first_time_customer

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

About

Sandbox Project offered up for public download

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages