![]() ![]() ![]() To modify the Total with the discount rate of the coupon code, create a calculation using the Product and Discount Rate fields.įor a percentage discount, multiply the Product field by the Discount Rate field. Step 2: Create a single calculation to modify your total ![]() We’ll demo a percentage discount in this example, so the Default Value is set to 1. In the Discount Rate field, set the Default Value to 1 for a percentage discount and 0 for a flat discount. Ensure that the field supports calculations. The “Choose your plan” field represents the product/service to which you want to apply the discount. However you’re currently handling your total price, you’ll need to use an HTML field to do this. This is a Hidden field that will contain the discount value. Coupon Code. This is a Single Line Text field.The demo form showcases a percentage discount, but you can use the same method for a flat discount as well. You’ll need the Conditional Logic add-on installed and activated to apply the discount rate only when a coupon code is entered. See the demo form below for an example of how to apply conditional logic to your existing form. How to Setup Coupon Codes in a WordPress Form Now, you can effortlessly enable your forms to calculate discount coupon codes! Let’s explore how to do it. Maybe you tried setting up coupon codes through your forms before and found it too complex.įiguring it out from scratch can be challenging, but with this concise guide, it becomes a breeze. You might have believed that only larger commerce plugins could handle this feature, but that’s not the case. You might have assumed there wasn’t an easy way to implement coupon codes in WordPress forms, but you were wrong. Offering coupon codes as a flat or percentage discount is an excellent way for you to incentivize your product or service. Thought using coupon codes in WordPress forms was complicated? Think again! ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |