Posted on Leave a comment

WooCommerce Tickets – Create & Sell In 5 Minutes

woocommerce tickets

There are a lot of work managing an event, create and sell tickets is one of them. Long gone are the day you have to setup a shop to sell tickets to your fan. Nowadays, you can sell tickets online. Since you are searching for WooCommerce tickets, I can safely assume that you have a WordPress site with WooCommerce installed. Thus, in this post, I’m going to show you how you can setup your WooCommerce store to start selling tickets in less than 5 minutes.

Install plugin to enable WooCommerce Tickets

By default, WooCommerce does not support ticket as a product. Of course you can create a simple product and name it as event tickets but you’ll miss some cool features such as:

  1. Set a start date and end date for the tickets (Events always have a specific date, aren’t they)
  2. Create scarcity by increase the price of the tickets as it gets closer to the event date or number of available tickets is getting low.
  3. Add a location to your event using Google Map
  4. Disable the tickets after the event expires
  5. Send an email to the customers who purchased tickets about the events and their purchases

All the above benefits are available in this plugin: YITH Event Tickets. It’s a prerequisite for this tutorial to work.

Create WooCommerce Tickets With YITH plugin

Now I assume that you have the plugin install and activated. Let’s go to Product->Add new to add a new product. Let’s first enter some details about the events and the tickets as you normally do with other WooCommerce products:

enter basic info for the ticket

Now, let’s get to the main part. As you might already know that, WooCommerce comes with three default product types: simple, variable, grouped. With the WooCommerce Event ticket plugin installed, you have a new one now.

Let’s go down to the product data section and click on the dropdown right next to it. You’ll see there is a new product type: Event ticket. Let’s select that as we are going to create an event ticket.

WooCommerce event ticket product type

Now, you’ll see there are a lot of options for your to build the great ticket in the General tab:

General settings for woocommerce tickets

At this tab, you can set the price for the ticket as usual. In addition, there are field to setup start date and end date. Interestingly, you can set tax status and even apply a tax class to the ticket if you want.

You can notice that there are two bold lines at the bottom of the screen:

  1. increase price based on stock
  2. Increase price by time

I’ll walk you through these two cool options to help you maximize your tickets sales.

In crease tickets’ price based on stock

Human are driven by a lot of factor and scarcity is one of the biggest. Thus, showing the fan that ticket price will increase as the stock get lower will encourage them to buy soon. To set this up, first you need to enable managing stock. Let’s click on Inventory tab to start adding tickets to your stock.

set stock for the tickets

First, you need to check the box says: “Enable stock management…”. Then, you need to set a number of available tickets. Now, go back to the General tab and click on “Increase price based on stock”:

increase ticket price based on stock

Click on the button “Add price-increase rule” to start configuring your ticket price based on your stock. As you can guess, there isn’t any limit on how many rules you can set. However, I prefer to keep things simple. Thus, here are my rules:

  1. As the stock get lower than 500, I’ll increase the ticket price by $20
  2. If stock gets below 100, I increase the ticket price by $50

Here is the configuration:

setting up price based on stock

Of course, you can set the increase by percentage, not a fix amount.

Increase ticket price by time

Using time as a factor to encourage people to buy the tickets sooner is a good strategy. If you set the price structure so that it will get higher as we approach the event date, people will buy the tickets sooner.

It’s very easy to setup that structure using this plugin.

Click on increase price by time:

increase ticket price by time

Similar to increase ticket price by stock, you’ll see there is a button for your to add the rule.

Let’s click on that to start adding the rules. Similar to the stock-based price increase, I setup two rules for time:

setup ticket price by time

Now, save the product. The ticket is ready for the fan.

Woocommerce ticket product page

Adding service for the event-goers

As people go to the event, they may need some extra services such as accommodation, car parking… If you can offer such services, it’s a great chance to earn some more other than tickets sales.

In case you want to add extra services, click on the service tab and start adding your services with their inventory (optional) and price.

setup additional services for the event

Now, on the product page, the fans can select the service that they need and pay along with the ticket. That’s very convenient!

additional event services

Take customers’ request by adding fields

If you want to get the customers requirements, you can easily do so by adding fields to the tickets product page.

add custom fields to the product

In this example, I added a textarea field so the customers let me know if they have any special requirements. After updating the product, I can see there is a text box appears on the product page:

custom fields on the product page

Conclusion

As you can see, this plugin is quite complete for selling tickets. It lets you create tickets very quickly. In addition, you can even add some extra services to upsell your customers. If it is what you need, you can get it here.

Good luck organizing your events!

Posted on Leave a comment

The Ultimate Guide To Create Contact Form On WordPress

contact form on wordpress

Creating contact form is super easy in WordPress. Do a simple search and you can find tons of plugins available with 4.5+ star rating. You think that why do you need another tutorial, right? Well, for most people those plugins will work right out of the box and they can move on doing other important things. For some others, things are not so easy.

Maybe you have followed some tutorials, setup exactly as they said but still, the form doesn’t work. In other cases, you may want to add some tweaking to the look and feel of the form.

Whatever your reasons, my goal is to help you setup contact form for your website from scratch and make it work so you never miss an important message from your visitors.

Let’s get started.

Plugins to use

Before we begin, let’s have the following plugins ready:

  1. Contact Form 7 (required)
  2. Easy WP SMTP (required)
  3. Super simple grid (my plugin, optional if you want to have multiple columns form)
  4. Recaptcha V2 For Contact form 7 (optional but recommended)

Step 1: Create a contact form with contact form 7

The first step is to create a contact form with Contact form 7. You should have contact form 7 installed and activated for now.

If you look at your dashboard menu on the left, there should be an option called Contact:

The Ultimate Guide To Create Contact Form On WordPress 1

Click on that option, you’ll see contact form 7 screen:

The Ultimate Guide To Create Contact Form On WordPress 2

As you can see, there is already a form created for you. Go ahead and delete it as we are going to create a new form.

Click on the add new button at the top to add a new form.

The Ultimate Guide To Create Contact Form On WordPress 3

As you can see, there are three main things we are going to do with Contact form 7:

  1. Enter a form name (nearly the easiest thing)
  2. Add, remove fields to your form (hardest)
  3. Click on Save button to save your form (the easiest)

As the form name, you can enter anything you like. In case you need to have multiple contact form, the name should help you tell which for is which.

Now, let’s go ahead to configure the fields of our form.

Normally, a contact form should have the following fields:

  1. Contact name
  2. Contact email
  3. Subject
  4. Message

However, you can add more fields if you need to.

Contact form 7 support a variety of fields as you can see at the top of the form editor:

The Ultimate Guide To Create Contact Form On WordPress 4

As you can see, you can even add radio, checkboxes and even quizzes to the contact form, which is very great.

To add any field to your form, first, put the cursor where you want to insert the field, then click on the field you want to insert.

For example, I want to insert a confirmation checkbox below the message box, I click on the space below that message box:

The Ultimate Guide To Create Contact Form On WordPress 5

Then, click on acceptance button at the top:

The Ultimate Guide To Create Contact Form On WordPress 6

Configure the field before adding to your form

A window will show up for me to configure the field:

The Ultimate Guide To Create Contact Form On WordPress 7

There are a few things you need to pay attention to:

  1. Name: this should be human readable and it should tell you what the field is about. If you are adding a telephone field (tel), then you should name it tel, phone…
  2. Id and class: These fields are useful if you want to style them using CSS later. If you are happy with the default, leave them blank.
  3. Condition: this option is specific to acceptance field only
  4. Options: This option is specific to acceptance. In other fields, you will have the required checkbox to mark the field cannot be blank when submitting form.

Now, I have the form ready. I’m going to save it. After saving the form, there is a field appears:

The Ultimate Guide To Create Contact Form On WordPress 8

This is the shortcode. You can think of shortcode as a placeholder for a, usually, much bigger text. In this case, it’s our form.

This is the code we put in the contact page to display the contact form. Thus, let’s go ahead and put this code in a page.

If you are using Gutenberg editor, you should add a shortcode element first before putting the shortcode:

The Ultimate Guide To Create Contact Form On WordPress 9

In case you use the classic editor, you just paste the code in the page’s body.

Let’s publish the page and take a look at our form:

The Ultimate Guide To Create Contact Form On WordPress 10

As you can see, the form looks great and it has all the fields as added in contact form 7 form builder.

Step 2: Configure SMTP server to ensure mail delivery

Nowadays, most hosting providers offer mail function out of the box for PHP (the programing language behind WordPress). As a result, many of you may not have any problem get the contact message delivered to your inbox. However, if you have built your contact form, tried to submit a message but still didn’t see anything in your inbox, it’s time to configure your SMTP server.

Don’t worry about the jargons, it is very simple to fix mail sending problem in WordPress as I made a tutorial here:

The tutorial is for WooCommerce but it works for WordPress too.

Step 3: Put your form in multiple columns

Now you should have the form up and running. When someone submit the form, you should get a message in your inbox. That’s great!

However, what if you want to put the form in multiple columns? No worries, I got you covered!

Here is the detailed tutorial on how to put contact form 7 in multiple columns.

Step 4: Add recaptcha v2 to your form to prevent spam

Spam is a serious problem that any site owner has to face today. When you put up a form, you open a door to your inbox for spammer. Thus, adding captcha to your form is a great way to keep your inbox clean.

Now, let’s add the plugin Recatpcha V2 For contact form 7 to your site.

After you activate the plugin, you’ll see a new option under Contact form 7 menu:

The Ultimate Guide To Create Contact Form On WordPress 11

Click on that to start setting up Recaptcha.

The Ultimate Guide To Create Contact Form On WordPress 12

Select the options as in the screenshot and click on submit.

You are done on that screen. However, there in one extra step you need to do to make recaptcha works. That is integrate recaptcha with your site.

Still under Contact menu, click on Integration:

The Ultimate Guide To Create Contact Form On WordPress 13

You’ll see there is a box says reCaptcha. Click on setup integration button in that box to start integrating it to your site:

The Ultimate Guide To Create Contact Form On WordPress 14

The next screen is where you put reCaptcha keys:

The Ultimate Guide To Create Contact Form On WordPress 15

You may wonder, where do I get those keys? Don’t worry, I’ll walk you through that.

First go to this url:

https://www.google.com/recaptcha/admin/create

If you are not logged in to your gmail account, login first and try visiting that page again. You’ll see a screen like this:

The Ultimate Guide To Create Contact Form On WordPress 16

There are two recaptcha options at the time of this writing: v2 and v3. You should select v2, not v3 for this to work.

Make sure you add your domain at “add a domain, e.g. example”

Finally, click on Submit to finalize the process. As a result, you’ll see the keys available in the next screen:

The Ultimate Guide To Create Contact Form On WordPress 17

Now, copy them to put in the integration screen on your blog and you are done.

The Ultimate Guide To Create Contact Form On WordPress 18

Click on save changes to save the keys.

Now, there is one more thing you need to do. That is putting [recaptcha] tag to the contact form so the captcha will show up.

The Ultimate Guide To Create Contact Form On WordPress 19

And when I view the form, sure enough, recaptcha box is there:

Recaptcha is working on contact form 7 form

Conclusion

As you can see, setting up contact form on WordPress could be quite tricky. However, with the helps of plugins, it is much easier to create fully functional contact page. Hopefully the tutorial is helpful to you. If you need further assistance, don’t hesitate to drop me a message.

Posted on Leave a comment

How To Add Columns In Contact Form 7

contact form

Contact form 7 is a great plugin to build contact form for WordPress. In contrast to its super powerful functions, the look at feel of this form builder has been very basic through the years.

One of the most needed feature is to layout the contact form in multiple columns. This feature is available in many form builders. However, we still haven’t seen any sign of it get added to contact form 7.

If you need to layout your form in multiple columns, don’t worry, I got your back.

I will show you how to layout contact form 7 fields in as many columns as you like (well, may not as many as you want but sufficient for all your needs).

Let’s get started.

Step 1: install plugin to enable grid system on your site

We are going to install a plugin which I’ve made a few minutes ago to enable multiple columns layout on your site. My plugin uses a CSS framework called skeleton CSS to let you layout elements on multiple columns.

You are not limited to use this for laying out contact form 7 elements. You can use this for many other things you need.

Let’s download and install my plugin here:

https://www.dropbox.com/s/685l4umn4pi5k6v/super-simple-grid.zip?dl=0

Install and activate it then you are done. There isn’t anything to configure with my plugin. Isn’t that great 😉

Step 2: Putting contact form 7 elements to columns

Before we actually begin putting contact form 7 elements, I would like to introduce you to our grid system.

There are three elements of our system:

  1. Container (this is the outer most element)
  2. Row (represents a row)
  3. Column (represent a column)
Illustration of  contact form 7 grid
Illustration of contact form 7 grid

If you now HTML/CSS, this diagram is not strange to you.

Now, let’s create a simple form in contact form 7.

I’m not going to show you how to create a form since it’s very easy to do so. You’d probably know how to do that already.

This is my form code:

contact form 7 code

I’ll take the shortcode and put on a contact page. This is what I have:

How To Add Columns In Contact Form 7 20

You can see that, everything is in one column.

What if I want to put the email field to the right of the name field?

It is super simple. I’m going to:

  1. Add a container div that wrap the form
  2. Add a row at the top and inside that row, add two columns
  3. One column hosts the name field, the other hosts the email field
  4. I add another row. Inside that row, add one column that spans the whole row.
  5. Then, I put the rest of the form in that row

Here is the code:

contact form 7 code layout in multiple columns

The grid system is based on 12 columns layout. So, in the first row (.c7-row), you see that I have two columns, each spans six columns so they will occupy equal amount of space.

On the second row, I put everything in one column that span 12 columns. You can see that the class is twelve columns.

Now, save the form and let’s see the result:

How To Add Columns In Contact Form 7 21

Not surprisingly, we have the two fields: name and email laid out in a single row.

Conclusion

As you can see, it’s very simple to create a contact form 7 form that has multiple columns. Hope you now can create better contact form for your site.

If you have question, please ask. I’d love to hear your feedback.

Posted on Leave a comment

How To Quickly Give Away Products In WooCommerce

Giving products away is a great way to enhance your customers’ loyalty to your store. For customers that have spent a significant amount of money on your store, they will definitely feel appreciated.

We are going to install a plugin called WooCommerce Give Products to accomplish our goal in this post. The plugin is very simple to use and has quite limited functions. If you need more functions, simply leave a comment below and I’ll consider adding it to the plugin.

Get WooCommerce Give Products plugin

You can get WooCommerce Give Products at WooCommerce following this URL.

After that, let’s install it on your site using the zip file you downloaded. If you don’t know how to install a plugin/theme from a zip file, please check this tutorial.

Send products to user for free using WooCommerce Give Products

After you activate the plugin, you should see a new menu item under Products called Give Products:

woocommerce give products

Click on that option to bring the plugin’s interface:

How To Quickly Give Away Products In WooCommerce 22


As you can see, there are two fields for you to enter the needed information. In the first box, you need to enter the user that should get the products for free. You can enter her email/name or ID there and there will be a suggestion list for you to select from.

user suggestions on typing
Select products to give away for free

When you are done, simply click on the “Give products” button to send the products to the user.

What actually happens behind the scene is there is an order created automatically for you regarding this transaction.

If you go to orders, you’ll see all the details there:

Give away products stored in orders

Conclusion

This plugin is very simple. However, it does what it promises. If you need a tool to give away products for your customers, this is definitely the choice. However, there are cases you might want to give a way to not one but many customers at the same time, you might need something else or someone to customize this plugin for you.

Posted on Leave a comment

Fastest Way To Link PayPal To WooCommerce

accept paypal payment on woocommerce

PayPal is one of the most popular method that vendors use to accept payments and link PayPal to WooCommerce is simple. In this post, I’ll show you exactly how to do that in just a few minutes.

Install WooCommerce PayPal checkout gateway

The first step is to install PayPal checkout gateway plugin from WooCommerce. You can see it right away by searching for “WooCommerce Paypal checkout gateway” in plugin search:

install woocommerce paypal checkout gateway plugin

It has quite low rating. However, it will serve our purposes well so let’s go ahead and install it. As you can see in the screenshot, I have that plugin installed and activated.

Setup configurations to link PayPal to WooCommerce

Now you have that plugin installed. Let’s go to WooCommerce->Settings->Payments. You’ll see a list of payments method available on your store here:

list of payment methods in WooCommerce

There is a method called PayPal Checkout. That’s the one get added to the list thanks to the plugin we have just installed. Click on Manage to start configure PayPal Checkout payment gateway.

In the next screen, you’ll see this:

configure woocommerce paypal checkout dashboard

Make sure you set the “Environment” option to Live instead of Sandbox. If you select sandbox, you will get no money into your account when someone buy your products.

Then, click on “Click here to toggle manual API credential input”. You’ll see three new input boxes appear.

show inputs to enter paypal credentials

Where do you get the details to enter to those inputs? That’s what we’ll do in the next step.

Get Credentials From PayPal

Now, you need to login to your PayPal account to get the credentials.

In PayPal dashboard, click on Tools->all tools:

Fastest Way To Link PayPal To WooCommerce 23

On the next screen, pay attention to the menu on the left and click on Integrate PayPal:

Fastest Way To Link PayPal To WooCommerce 24

Then, select click Open button in API Credentials box:

select API credentials

On the next screen, you’ll get three options. Click “Manage API Credentials” in “NVP/SOAP API integration (Classic)”

Fastest Way To Link PayPal To WooCommerce 25

Then, you’ll see the place where you can get PayPal credentials that you can use to link with WooCommerce.

get paypal api credentials

You need to click on the Show link at the right of each field to get the hidden data.

Link PayPal to WooCommerce With the details you get from PayPal

Now, we can finalize our effort to link PayPal to WooCommerce. Head back to your site and put the details from the inputs:

entering paypal details in WooCommerce

Now, save the settings and your store is ready to accept payments from PayPal checkout.

Integrate PayPal To WooCommerce: Video tutorial

If you prefer watching video, I’ve made one here with step by step tutorial. Please check it out:

Conclusion

As you can see, link PayPal to WooCommerce is quite simple. You may ask that what don’t we use the default PayPal payment comes with WooCommerce (the plugin). The reason is that option is not stable. As I tested a few cases, it failed to accept payments. So, it is best to install WooCommerce PayPal checkout gateway plugin to configure PayPal checkokut.