Difference between revisions of "LoyaltyUserGuide"

From CleverVerve Wiki
Jump to: navigation, search
Line 124: Line 124:
 
- increase the value in the "Accrued Points 3" field (the number of points of the 3rd type)  of the "Loy Transaction" object (transaction) by the amount equal to the result of division of the value in the " Amount " field (purchase sum)  of the "Loy Transaction" object (transaction) by "200";<br>
 
- increase the value in the "Accrued Points 3" field (the number of points of the 3rd type)  of the "Loy Transaction" object (transaction) by the amount equal to the result of division of the value in the " Amount " field (purchase sum)  of the "Loy Transaction" object (transaction) by "200";<br>
 
- increase the value in the "Accrued Points 4" field (the number of points of the 4rth type)  of the "Loy Transaction" object (transaction) by the amount equal to the result of division of the value in the " Amount " field (purchase sum) of the "Loy Transaction" object (transaction) by "20";
 
- increase the value in the "Accrued Points 4" field (the number of points of the 4rth type)  of the "Loy Transaction" object (transaction) by the amount equal to the result of division of the value in the " Amount " field (purchase sum) of the "Loy Transaction" object (transaction) by "20";
 +
 +
[[File:LoyRuleActions.png]]

Revision as of 08:33, 12 July 2017

Loyalty – Administration and Configuration

Configuration of the functionality of work with the application

Go to «Opportunity Page Layout». To the "Opportunity Detail" section, add the "Loyalty Program" field and the "Refresh Data" button.

OppDetail.png

Go to the "Products Related Lists" settings.

ProdRelList.png

Add the following fields to the displayed ones:
«Discount» - amount of discount;
«Point Type» - the type of points selected for payment of the product;
«Total Point Price» - the total price of points of the selected type required for the purchase of the product;
«Total Point Pay» - the total amount of money funds required for the purchase of the product;
«Member`s Point» - the number of points of the selected type available with the customer;
«Pay by Points» - the flag of payment for the product using the selected type of points.

ProdRelListProp.png
Add the "Select Point Type" button displaying and save the settings for "Products Related Lists" with the "OK" button.

RelListPropProd2.png
Save the "Opportunity Page Layout" settings with the "Save" button.

OppLayoutSave.png
If the "Discount" field is not displayed in "Products Related Lists", it is necessary to configure access to this field for the profiles whose users will be working with the application. Go to the "Opportunity Product Fields" screen and click the hyperlink in the "Discount" field.

OppProdStandardFields.png
On the "Discount" field properties screen click the "Set Field-Level Security" button.

DiscountFieldSec.png
Set the "Visible" and "Read-Only" attributes for the profiles required by the users and save changes with the "Save" button.

DiscountFieldSec2.png

Configuration of the functionality of work with the order

Go to «Order Page Layout». To the "Order Detail" section, add the "Loyalty Program" field and the "Refresh Data" button.

OrdPageLayout.png

Go to the «Products Related Lists» settings.

OrdProdRelList.png

Add the following fields to the displayed ones:
«Discount» - amount of discount;
«Point Type» - the type of points selected for payment of the product;
«Total Point Price» - the total price of points of the selected type required for the purchase of the product;
«Total Point Pay» - the total amount of money funds required for the purchase of the product;
«Member`s Point» - the number of points of the selected type available with the customer;
«Pay by Points» - the flag of payment for the product using the selected type of points;
«Total Price With Discount» - the total amount of money funds required for the purchase of the product, taking into consideration the discount accrued.

RelListPropOrdProd.png

Add the "Select Point Type" button displaying and save the settings for "Products Related Lists" with the "OK" button.

RelListPropOrdProd2.png

Save the «Order Page Layout» settings with the «Save» button.

OrdPageLayoutSave.png

A loyalty program creation

Go to the "Loy Programs" tab and click the "New" button.

LoyProgTab.png

Specify the name of the loyalty program being created and save the entry with the “Save” button.

NewLoyProg.png

Follow the hyperlink in the field with the name of the loyalty program created.

LoyProgList.png

To create a new loyalty program rule, click the “New Loy Rule” button in the “Loy Rules” section.

NewLoyRule.png

In the “Rule” section, fill in the following attributes for the rule being created:
«Rule Name» - the name of the rule;
«Criteria Logic» - the type of logic being used for the combination of the rule criteria;
«Criteria Custom Logic» - not used (for further development of the functional);
«Active» - the flag of activity of the rule (the rule is used provided that this flag is set);
«Start Date» - the rule start date;
«End Date» - the rule end date;
«Description» - rule description.
The attributes "Start Date" and "End Date" determine the validity period of the active rule (i.e. the rule with the "Active" flag set).

LoyRuleDetail.png

In the "Criteria" section, with the "Add Criteria" button, create the required criteria for application of the rule and fill in the following attributes:
«Object» - the object whose fields will be used in the criterion;
«Object Field» - the object field name given by the "Object" attribute;
«Condition» - the type of relation between the attributes being compared;
«Match Object» - the object for comparison whose fields will be used in the criterion;
«Match Object Field» - the name of the object field for the comparison given by the "Match Object" attribute;
«Operator» - the operator being used to complete operations on the "Match Object Field" and "Value" attributes;
«Value» - the numeric value which is used as an operand in the operation with the "Match Object Field" attribute (if this attribute is not given, this value is used to be compared with the "Object Field" attribute).
The screenshot example shows that the given criterion works as follows: if the value in the "Amount" field (purchase amount) of the "Loy Transaction" object (transaction) is greater than "0", then apply the actions specified in the rule.

File:LoyRuleCriteria.png

In the "Actions" section, with the "Add Action" button create the required actions (which should be performed if the set of rule criteria is satisfied) and fill in the following attributes:
«Type» - the type of action (possible values: “Update Attribute”, “Upgrade Tier”);
The “Upgrade Tier” value is not used (further development of the functional).
«Action» - action (possible values: "Assign" - appoint, "Increment" - increase);
«Target Object» - the target object whose fields will be used;
«Target Field» - the object field name given by the "Target Object" attribute;
«Source Object» - the source object whose fields will be used;
«Source Field» - the object field name given by the "Source Object" attribute;
«Operator» - the operator being used to complete operations on the "Source Field" and "Value" attributes;
«Value» - the numeric value which is used as an operand in the operation with the "Source Field" attribute (if this attribute is not given, this value is used in the operation (given by the "Action" attribute) with the "Target Field" attribute).
The screenshot example shows that the given actions work as follows:
- increase the value in the "Accrued Points 1" field (the number of points of the 1st type) of the "Loy Transaction" object (transaction) by the amount equal to the result of division of the value in the " Amount " (purchase sum) field (purchase amount) of the "Loy Transaction" object (transaction) to "100";
- increase the value in the "Accrued Points 2" field (the number of points of the 2nd type) of the "Loy Transaction" object (transaction) by the amount equal to the result of division of the value in the " Amount " field (purchase sum) of the "Loy Transaction" object (transaction) by "10";
- increase the value in the "Accrued Points 3" field (the number of points of the 3rd type) of the "Loy Transaction" object (transaction) by the amount equal to the result of division of the value in the " Amount " field (purchase sum) of the "Loy Transaction" object (transaction) by "200";
- increase the value in the "Accrued Points 4" field (the number of points of the 4rth type) of the "Loy Transaction" object (transaction) by the amount equal to the result of division of the value in the " Amount " field (purchase sum) of the "Loy Transaction" object (transaction) by "20";

File:LoyRuleActions.png