EnglishGerman

Mitgliedschaft

0,00 

Kategorie:

Beschreibung

Default Code

Direkt bei uns bestellen:

0,00 In den Warenkorb

 

Beschreibung der Subscriber-Funktion

$user_id will allow you to specify a defined user ID (when is not used for current logged in user); $product_ids (string or an array) will allow to specify defined product Ids to check $dayswill allow you to specify the number of days to search for (or the period if you prefer)…

function has_bought_multi( $user_id = 0, $product_ids = 0, $days = 0 ) {

 

if( has_bought_multi( ”, 514, 60 ) ){ echo “<p>Customer has bought product id # 514 in past 60 days</p>”; // do something } else { echo “<p>Customer <strong>HAS NOT</strong> bought product id # 514 in past 60 days</p>”; // do something else }