By Neil on December 3, 2014
This video tutorial shows you how to charge people to add content to your WordPress website. This could be useful for example if you run a classified ads site or you allow people to promote their products and services on your website. In a previous tutorial I showed how to let people add content and create posts on your WordPress website using a front-end form, and in this new tutorial we use this same form but integrate it with the WooCommerce plugin to take people to a checkout page once they click submit.
This process requires the CRED forms plugin, the CRED Commerce plugin, and the WooCommerce plugin. We use the CRED Forms plugin to create the front-end form (as shown here in this tutorial) and to enable the option to add a payment element to the form we need to install and activate the CRED Commerce plugin. The CRED Commerce plugin does not need configuring it simple enables more features on the standard CRED Forms plugin.
Essentially what we are doing here is letting someone buy a product via WooCommerce, so once WooCommerce is activated we create a new product. All we have to do is give the product a name and fill out the price field. Once this is done we open up our CRED Form editor and scroll down to the bottom of the page where there is a check box for ‘Charge payment with this form’. This opens up a few fields to work through, but basically all we do is tell CRED to link the form to the product we have just set up when someone clicks the submit button. We also need to set the option to take people to a checkout page when they click submit.
Once you have done this simple configuration it is all setup. Now instead of generating a new product post when someone clicks the submit button on the form they are instead taken to a checkout page where then need to fill out their billing info and pay. Once they have paid their product is published live on the website.
This is a relatively simple process and if you ever need to add a way of charging people to add content to your WordPress website then this could be the solution for you. The WooCommerce plugin is free which is fantastic, although the CRED plugins do cost some money. The CRED plugin can either be purchased alone or it can be purchased as part of a suit of plugins called Toolset. I personally have the Toolset because I use the custom post types, custom fields, and custom page template features of the other plugins a lot along with the forms functionality of CRED.