Allow Group Leaders to create their own Club Management Groups (accounts) online
A Group Leader can create their own Club Management Groups (accounts) online with the addition of a new page called GrpMiniCreate.aspx. This page is only distributed to clients who have purchased the Club Management module. Users can be directed to the GrpMiniCreate.aspx page where they can create the new group via a link. The following information is required in order to create a new group: Group Name, Group Leader, Address, City, State, Zip code, Area code, Phone Number, Email, Group Log-in Name, Group Leader Password and Group Member Password. Once this information is populated into the fields on the page, the user clicks the Create Group button and an email is sent to the email address set for the group notifying the user that the group has been created. After Sales Host processes the request, the group is ready to be used. Below are new site config file settings that are required for this functionality to work:
• Site Admin Panel > Group/Accounts and Club Management Settings > grpDCI value = CLUBMGMT NEWCLUBS CLUBMGMTIT
• Site Admin Panel > Group/Accounts and Club Management Settings > grpPayType value = Other
• Site Admin Panel > Group/Accounts and Club Management Settings > grpMessageForMembers value = Your group is being created. Please check your email for additional information.
• Site Admin Panel > Group/Accounts and Club Management Settings > grpCreate value = template/CreateGroup.txt
• Site Admin Panel > Group/Accounts and Club Management Settings > grpSubjectForEmail value = New Group Created
• Site Admin Panel > Group/Accounts and Club Management Settings > grpReturnURL value = https://www.greatskiing.com/ecommerce/GrpLogin2.aspx
• Site Admin Panel > Group/Accounts and Club Management Settings > grpAccountType value = 5
• Site Admin Panel > Group/Accounts and Club Management Settings > grpItemTree value = ClubMgmt Group
In order for a new group (account) to be created, a sale string needs to be constructed that appears to Sales Host as a legitimate sale. The sale string needs to have a valid item in it that is priced at $0.00. Set the "grpDCI" key to the DCI for the item you want to use for this group creation sale. The DCI must be padded to thirty characters. In a similar manner, the sale string for this group creation sale needs to have a valid payment type. Set "grpPayType" to the payment type to use for this sale. Once these are set, the pages properly construct the sale string in order that the group (account) creation takes place.
Set "grpMessageForMembers" to the message to display on GrpMiniCreate.aspx once the user has populated the fields on the page and clicked the Create Group button. In addition to displaying the message, the pages also send out an email notifying the user that the group has been created. The "grpCreate" key is used to instruct the pages as to which email template is used for this purpose. The "grpSubjectForEmail" key is used to set the subject for this email and the "grpReturnURL" key is used to set the URL that gets inserted into the group create email. When clicked, this URL takes the user to the Club Management log-in page.
When Sales Host processes the group creation sale, it creates the new account and assign an item tree to that account. Use "grpAccountType" to set the account type to assign the group that gets created. The item tree node that you want the newly created group to see is set with the "grpItemTree" key.
The following two email templates are distributed to be used with this functionality, CreateGroup.txt and CreateGroup.html. These templates can contain the following fields which get populated when the email is generated:
{{NickName}} – Group Log-in name
{{club owner}} – Group Leader name
{{owner password}} – Group Leader password
{{member password}} – Group Member password
{{url}} – the URL that gets set in the "grpReturnURL" key
The following is an example of how to use these fields in an email:
Dear {{club owner}}
Your new group {{Nick Name}} has been successfully created. The owner password for this group is {{owner password}} and the member password is {{member password}}. You can direct your friends to {{url}} and ask them to use the group name and member password to log on.