Create Wordpress plugin to auto generate coupons for Gravity Forms

Completed Posted 4 months ago Paid on delivery
Completed Paid on delivery

We want to create a custom plugin that will auto create coupon codes for Gravity Forms. We currently have a custom coded solution that does this, but we want it built as part of the UI, so that we can easily create these for each form. Part of this functionality is adding restrictions for the coupons based on selections, this is not a core part of GF coupons and will need to be built. We have created a simple example of this which you can use as a basis for your code. I will provide FTP, WP and cPanel access to our site for you to build this and can provide support if needed. Project details are below.

Overview:

- When creating a new form, this plugin will add a new item under the 'Settings' for the form (currently contains: Form Settings, Notifications, Confirmations, etc.). The new settings page will have options to allow GF to create unique coupon codes upon form submission. The generated coupon code can be included as a merge tag in the confirmation or notification. After receiving the coupon code a customer can use it on other forms for a discount.

Example User Workflow

- User goes to form "Enter your email to get a discount coupon"

- User fills out the form

- User gets an email with their unique coupon code and a link to a different registration form

- User uses the coupon code on that form for the discount

1. When editing or creating a form, add a new items under 'Settings' called 'Auto Create Coupon'

2. This settings page will have these options (these 7 are same as current coupon options):

- Applies to Which Form?: Select dropdown with list of existing Gravity Forms. First option is 'Any Form'

- Coupon Prefix: Text field where user can add a prefix to the randomly generated coupon code

- Coupon Amount: Two fields:

> Dropdown: to select: Flat($) or Percentage(%)

> Text: Input either the flat discount or percentage discount of the coupon

- Start Date: Date when the coupon starts being valid

- End Date: Date when the coupon stops being valid

- Usage Limit: Number of times the coupon can be used

- Is Stackable: Checkbox, can be used with other coupons

3. Coupon Restrictions: These are also on the settings page, but are different from existing options. These settings are used to limit the coupon to certain options on a form. It would work similar to the Gravity Forms 'Conditional' settings. Fields in this section are:

- Enable Conditions: Checkbox to allow conditions or disable

- Source Form: Dropdown: Select from existing forms, this field will determine which fields are available for the conditional logic.

- Rules: See attachment. This section will include the rules that determine if a coupon should be allowed to be used on a form. For example, the coupon may be valid if: City = New York OR City = San Francisco.

> This type of logic appears in numerous other areas and I'm hoping that the UI code can be imported without building a custom solution.

> If the conditional logic code cannot be imported, then we may want to build these out as 'Feeds.' Feeds have built in options to add and save conditional logic. Our usage wouldn't exactly match Gravity Forms, but I think that could be customized more easily to match our goal.

> If the existing conditional logic UI cannot be used, then this can be simple text fields like 'input_7' 'equals' 'New York'. Where the user would just type in field ids, conditions and strings to match.

> Ultimately, how the field is built , is up to you. I haven't researched exact options, so you should go with the best solution you find. The functionality must allow the user to input fields and matching values. Must allow for 1 or more conditional statements and allow them to be evaluated using OR or AND.

4. Create the coupon upon form submission.

- Write PHP code to create a new coupon whenever a user submits the form. The created coupon should have the settings selected in the form options. Most options match to existing settings. The 'Conditional' options may need to be stored in post_meta or some other way so they can be looked up later.

- In our site there is a plugin called 'gf-auto-coupon-generate' that does this. You may want to look at that code to see how it is handled.

5. Create Merge Tag that can be used to display the generated coupon code in Confirmations and Notifications.

- Create a merge tag {generated_coupon_code} that can be added in messages to display the unique coupon code that was created.

6. Create code to restrict coupon usage based on the conditional settings. (attachment #3)

- When a user enters the coupon on a form and clicks 'Apply,' we need to check if the coupon code matches the conditional restrictions. If not, it should return a message "This coupon is not valid for your current selections." If the message can be more specific about which field, that would be great.

- GF has a hook called 'gform_coupons_can_apply_coupon' which can be used to limit coupon usage. In our [login to view URL] at line 2260 there is an example where we hard coded a restriction based on selected field values. To get this working, I had to modify core files in the 'gravityformscoupons' plugin. If you can get this restriction working without modifying core files, that would be best. Possibly, our plugin could fire a different AJAX call to handle the conditional check.

You can work on our live site, but be aware that people may be using this. Be very cautious not to bring the site offline. If you need a test environment, I can create a backup of our live site that you can use to build the plugin out. Would like to have this completed in about 2 weeks. Please let me know if you have any questions.

WordPress PHP HTML CSS JavaScript

Project ID: #37298475

About the project

119 proposals Remote project Active 4 mos ago

Awarded to:

sureshdevi

Hello, I will create wordpress plugin to generate coupons with conditional logic on Gravity Forms. I will complete this work in 7 - 10 days. Looking forward to your reply to start this work immediately. I am available More

$230 USD in 10 days
(1447 Reviews)
8.4

119 freelancers are bidding on average $290 for this job

BVMSolution

Hello, my name is Tejraj from BVM Web Solutions Pvt. Ltd., and I am excited to offer you our services for creating a custom plugin that will auto generate coupon codes for Gravity Forms. We have 15+ years of experience More

$375 USD in 15 days
(598 Reviews)
9.4
ahmadayaz

Hi I have a proven track record of successfully handling challenging projects in Full Stack Development, WordPress Theme and Plugin Development, Mobile App Design and Development, and more. With over a decade of experi More

$360 USD in 5 days
(350 Reviews)
8.8
AwaisChaudhry

Hi Good afternoon , How are you? I just saw your job posting and currently going through attached files . I see you have been looking for someone experience with these technologies JavaScript, HTML, WordPress, CSS a More

$400 USD in 12 days
(118 Reviews)
8.5
umar119

Hello there, Hope you are doing great, i have a 7+ year experience for web designing and development in WordPress , i can do your work as per your work requirements, please come on chat so we can discuss all work in de More

$250 USD in 7 days
(214 Reviews)
8.1
a4logic

Hi, Hope you are well, We have best team in our company, We can give you good work on time Regards

$500 USD in 5 days
(356 Reviews)
8.3
DigitalArcanum

I'm excited to propose the development of a custom Gravity Forms plugin that automates coupon code creation based on user-defined settings. This plugin will seamlessly integrate into the Gravity Forms UI, allowing effo More

$750 USD in 10 days
(526 Reviews)
8.6
globaltechnosys

Hi there! We understand that you are looking for someone to create a WordPress plugin that will automatically generate coupons for Gravity Forms. Specifically, you want us to build the functionality so that GF can crea More

$250 USD in 7 days
(265 Reviews)
8.2
webperfection123

Hi There, I can Create Wordpress plugin to auto generate coupons for Gravity Forms.I have read your job description and assure you that I am a perfect fit for the job.I am a senior  Designer & Developer having vast an More

$400 USD in 7 days
(328 Reviews)
8.2
cmitexperts

Hi there! Did go through your job description and glad to share that I have experience in working with wordpress plugin development platform. I have more than ten years of industry experience and have been the part o More

$400 USD in 7 days
(450 Reviews)
8.3
evgendob

Hello. WordPress development expert ready to help you with a plugin development. I have more than 400 good reviews and more than 11 years of development experience behind, so project will be done with the best quality More

$400 USD in 7 days
(692 Reviews)
8.3
seefattechnologi

Hello, - Stay up-to-date with recent and relevant technologies ^^^^I am here to achieve your goals Create Wordpress plugin to auto generate coupons for Gravity Forms ^^^^ I am Passionate WP /Full stack developer havin More

$300 USD in 3 days
(146 Reviews)
8.0
TechTimes

Dear, I am excited to offer my expertise in developing the custom plugin you require for Gravity Forms. Here's a concise overview of the proposed solution: 1. **New 'Auto Create Coupon' Feature**: I will add a dedica More

$250 USD in 7 days
(118 Reviews)
7.7
mascotindia123

Hello Employer, Hope you're doing well. I have read your project description regarding "Create Wordpress plugin to auto generate coupons for Gravity Forms" & it can be done as I'm an expert having 13+ years of proven More

$300 USD in 7 days
(337 Reviews)
7.8
admk80

Hello! My name is Arshad I am a pro developer in JavaScript, CSS, HTML, WordPress and PHP with the counting of 6 years experience. These whole years of experience have made me the most exceptional and demanding one. Am More

$225 USD in 3 days
(286 Reviews)
7.4
divumanocha

Hello, Greetings! I have read your project description and am confident that I can complete this project to your satisfaction. However, I do have a few queries. Please leave a message in the chat so that we can discu More

$250 USD in 6 days
(126 Reviews)
7.6
inertiasoftltd

Hey, I'm really excited to help you create a custom plugin that will auto-create coupon codes for the Gravity Forms website as per your requirements. Also, proficient with all the assigned skills, Customizations, Plug More

$300 USD in 7 days
(132 Reviews)
7.6
onkarkulkarni8

Hello sir/Madam, I hope you are doing well. My approach to WordPress website development is rooted in simplicity, functionality, and user experience. Here is an overview of the services and features I will provide: C More

$400 USD in 10 days
(140 Reviews)
7.5
Sunita0610

Hello, Hope you are doing good! I am Full stack Website ,CSS and PHP developer with 12 years of experience and I have read your project description and I can work on your project as per your requirements. Please me More

$250 USD in 7 days
(219 Reviews)
7.3
Rekhathakur

" I am a Senior Web & Mobile App developer and ready to get started " Hi, I am the best here! I understand your project requirements. I am confident that I can provide the best solution for your needs. I already worke More

$400 USD in 7 days
(105 Reviews)
7.6
Aliraza2727

I’m senior developer having 7 years’ experience in WordPress, Shopify, React, Laravel, HTML, CSS, Bootstrap, JavaScript, jQuery, Ajax, PHP and Graphic designing. Please discuss with me in chat so I can start work on More

$350 USD in 2 days
(215 Reviews)
6.7