This Function Has Been Available Since:
(AFCommerce v 2.1, Functions v 1.1)
Displays how many reward points a product is worth and shows a user how many points they have accumulated.
Description
afc_display_reward_points (idnumber, mode)
This function currently has 2 modes, "product" and "member". If you want to see how many reward points a product is worth (based on the value you set in the admin area), the first parameter would be the product's id number (prodid) and the second would be "product". If you want to see how many reward points a member has earned, the first parameter would be the member's id number (memberid), and the second would be "member".
Parameters
idnumber (integer) - The id number of the member or product (depending on the second parameter)
mode (string) - This parameter can only be "product" or "member".
Return Values
This function has no return value, however it does print the reward points inside its own html table. This table is very basic, so that you wouldn't need to edit it, and you may enclose the function call inside another table which you create, allowing you to adjust it. The wording used next to the number of rewards points is defined in the language file which is completely open source.
Open Source: NoPaul's Examples There are currently no examples for this function.
|
Back to Functions List
|