Community

I have added a coupon code to my order form for members to use (some users will not be members) and a credit card handling fee. I would like the discount to show up in the order summary. Is this possible? And the total to be paid does not seem to have the credit card fee added. What am I missing?

Comments (3)

Vipin

Mar 20, 2024

You will have to calculate the discount, transaction fee, net amount separately and these fields must be mapped correctly in the Summary settings. Otherwise, it will not be included in the order summary. Add coupon code option In the Neartail Edit page, click on the Add field button > enter the title "Coupon Code", select Textbox widget and click Create > Settings page will be displayed > click Save. Calculate discount In the Neartail Edit page, click on the Add price field button > select Discount and click Next > select Custom formula and click Next > enter the below formula and click Create. IFS(Coupon Code == "WELCOME", 0.10 * Order Amount,0) Note: Coupon codes are case sensitive. You can change the coupon code and discount percentage as required. You can also add multiple coupon codes or provide fixed discounts. IFS(Coupon Code == "LOYAL10", 0.10 * Order Amount, Coupon Code == "WELCOME", 10,0) Calculate transaction fee We do not have the default option for the transaction fee. The workaround is to use the Tip option to calculate the transaction fee as a fixed percentage of order amount. In the Neartail Edit page, click on the Add price field button > select Tip and click Next > select Percentage % option and click Next > select the percentage (ex 3.5%) of Order amount and click Create. Calculate amount to be paid In the Neartail Edit page, click on the Add price field button > select Net amount and click Next > select Standard calculation using NETOTAL() formula and click Next > click Create. Note: When you use the Add price field option to add discount, transaction fee, net amount etc, the summary settings is automatically mapped. If you have added these fields separately, then you can update the mapping. Summary settings In the Neartail Edit page, click on the gear next to the form title > Form settings page will be displayed > click on the configure key fields icon next to the Save button in the bottom right corner > Summary settings page will be displayed > select the relevant form fields for the Amount, Discount, Tip, Net Amount option and click Save.

Ann

Mar 20, 2024

Thanks, it is calculating correctly now. I'm not seeing where to get the list of Summary settings but the different fields are displaying in the order summary and it is calculating correctly.

Vipin

Mar 21, 2024

If the order summary is displayed correctly, then the summary settings is updated proprely. If you would like to check this, please follow the instructions below. In the Neartail Edit page, click on the form title to select it (new editor) > click on the gear next to the form title > Form settings page will be displayed > click on the configure key fields icon next to the Save button in the bottom right corner > Summary settings page will be displayed > Check the form fields selected for the Amount, Discount, Tip, Net Amount option.

Add your comment