Slide 1

Slide 1 text

WordCamp SLC 2016 talk by Luke Cavanagh Gravity Forms for e-commerce and other cool things.

Slide 2

Slide 2 text

Luke Cavanagh WordPress Developer WordPress Core and WP repo support. @Bluehost

Slide 3

Slide 3 text

Gravity Forms is more than just simple contact forms Gravity Forms can be used for e-commerce, user creation, post creation, 3rd party API integrations as well as for many complex options options on forms. One of the most powerful features is conditional logic and well as a very complete set of integration add-ons. The most powerful of which is the Zapier add-on. Since Zapier has integrations with thousands of services. Gravity Forms integrates with most payment gateways like PayPal, Stripe, Authorize.net as well as with many CRMs.

Slide 4

Slide 4 text

1. Why Gravity Forms? Because is has the most complete set of add-ons, integrations and 3rd party plugins out there. ➔ Well Priced The Developer license is very well priced. ➔ Add-ons It comes with 36 add-ons that you can use. ➔ 3rd Party Plugins There are a lot of 3rd party plugins which integrate with GF.

Slide 5

Slide 5 text

Use a reliable form plugin. Easiest way to fix form issues, is use a solid form plugin.

Slide 6

Slide 6 text

Tried all of the form plugins, the best option is Gravity Forms. (But Caldera Forms rocks and is free on the WP repo.)

Slide 7

Slide 7 text

2. Building a Payment Form You build a payment form the same way you would build a regular form. ➔ Add Product Fields You can add in as many needed product fields as you require, you can also add in product options. ➔ Add a product total You can also add in shipping methods and product total on the form.

Slide 8

Slide 8 text

Pricing field options There are more enough to build your payment form using them.

Slide 9

Slide 9 text

I've been ionized, but I'm okay now. -Buckaroo Banzai

Slide 10

Slide 10 text

3. Payment Feed Time Now that you have created your form. You need to select a payment gateway and then create a payment feed on the form. ➔ Select a payment gateway GF supports Stripe, PayPal and Authorize.net as well as many others. ➔ Payment Feed So you will need to add in the creds and API key or PayPal’s case make you sure have IPN enabled. Also you need to select the transaction type, payment amount and select any notification options.

Slide 11

Slide 11 text

Ron Burgundy. I immediately regret this decision. Source: imdb.com

Slide 12

Slide 12 text

4. Remember the Notifications After everything else has been setup, remember to setup the user and admin notifications. ➔ Admin Notifications So in GF there are not event types. So you can use those in your notifications as the trigger type. Examples Payment Complete or Payment Failed. ➔ User Notifications Make the message personal, use merge tags. Those could be the users first name which is used in the body of the notification.

Slide 13

Slide 13 text

So what else can GF do? Do you like WP-CLI? Well GF has a CLI add-on. so you can manage GF using WP-CLI. WP-CLI Zapier, it integrates with pretty much anything. So you can send the form submission entries to any service. Zap it! ACF to add user meta fields. Then you can use those fields on user creation and auto-populate fields on a form. ACF, Users and auto-populate

Slide 14

Slide 14 text

Remember conditional logic, it makes complex forms look simple. #conditionallogic

Slide 15

Slide 15 text

Further reading If you are interested in finding out more cool things you can do with Gravity Forms. Further reading https://gravitywiz.com/ https://github.com/lukecav/awesome-gravi ty-forms https://www.gravityhelp.com/documentatio n/ https://www.gravityhelp.com/other-resourc es/