perch_shop_customer_has_purchased_file()

Checks if the currently authenticated customer has purchased the nominated file with perch_shop_customer_has_purchased_file().

Requires

Parameters

Type Description
Integer ID of the file to download*.

Usage examples

Has the customer purchased the file with ID 123.

if(perch_shop_customer_has_purchased_file(123)) {
  ...
}