In this we will know how to create a promotional discount using custom reward point
for 100 points $1 discount and if for $1 purchase will add 1 will be added to your reward points
Create a Custom entity field for the reward points under the custom tab in customer record In customer record at top right there will be a customize option available after giving edit in customer record, there were we can create a new field

Extend the template file of checkout summary for adding the reward point section. Inspect the template file where you want to add the new reward point section and extend that template file. And add the section in it

Create an extension for calculation and functionality of reward points
Create a extension and extend the corresponding view file in the extension file
Create a click function that when “Apply” button is Pressed the that value must be reflect on the checkout box and in section also. Give condition that applied reward points must not exceed the available points and the total discount amount should not exceed the total amount.
Create clear reward function for removing the applied reward points from section.




Create a Transaction body field for storing the discount amount in sales order file
Create a new Transaction body field in customization tab for storing the data. Fill the required filed and in applied to check the which section You have to apply and save it
then go to website configuration>adv tab in that add the TBF and save it


This will store the date form discount amount in the sales order form in custom field
Create a Client Script for updating the discount amount in the sales order form. To update the discount amount in the sales order form when order is placed in website, we have to write Client Script and deploy that script to sales order

