5.5. Membership Plan

Top  Previous  Next

create_contract.tpl - processes a status of the contact created and displays the "You have successfully subscribed for the membership plan" message or displays error messages, if any.

Local variables:

o

$errors - the associated array where keys are field captions and values include coding of errors

o

$error - the code for specific error (PAYMENT_IS_NOT_VERIFIED, INVALID_PAYMENT_ID)

 

errors.tpl - contains the description for errors

Local variables:

o

$ERRORS - the array where keys are coding of errors and values are the additional information

o

$error -  the key for specific error

o

$error_message -  the data of the specific error

 

result_choose_contract.tpl - processes error messages, if any after a membership plan was changed, or displays "You have successfully changed your membership plan" message

Local variables:

o

$error - the  array of errors (MEMBERSHIP_PLAN_IS_NOT_AVAILABLE, CONTRACT_IS_NOT_SAVED, CONTRACT_IS_NOT_SET_TO_USER)

 

 

subscription_page.tpl - displays membership plans on the /subscription/ user page

Local variables:

o

$available_membership_plans - the array of available membership plan for the User Group

o

$id - the ID of the membership plan

o

membership_plan_fields.name.caption - the caption of the "Name" field of the membership plan

o

$membership_plan_fields.name.element - the value of the "Name" field of the membership plan

o

$membership_plan_fields.description.caption - the caption of the "Description" field of the membership plan

o

$membership_plan_fields.description.element - the value of the "Description" field of the membership plan

o

$membership_plan_fields.price.caption - the caption of the "Price" field of the membership plan

o

$GLOBALS.custom_settings.transaction_currency - the current currency, which is used for payments (Admin Panel -> System Configuration -> Custom Settings -> edit transaction_currency)

o

$membership_plan_fields.price.element - the value of the "Price" field of the membership plan

o

$membership_plan_fields.subscription_period.caption - the caption of the "Expiration Period" field of the membership plan

o

$membership_plan_fields.subscription_period.element - the value of the "Expiration Period" field of the membership plan