Friday, April 29, 2022

How to Customize the WooCommerce Checkout Page

How to Customize the WooCommerce Checkout Page

The checkout page is one of the most important pages on any eCommerce website. All the effort that you put into your website content, design and marketing will amount to nothing if your customers keep abandoning their carts and never complete the checkout process. Some statistics show that cart abandonment rate can vary in range form 64% to around 90% depending on the industry in which you are selling products.

The WooCommerce WordPress plugin automatically creates a checkout page for your website visitors to complete their order by filling out a form. However, it is a general-purpose form meant to cover all bases and not optimized for your specific use-case. This means that your cart abandonment rates are likely to be high. Reducing the abandonment rate can be the difference between just getting by or making decent amount of profit to further expand the business.

In this tutorial, we will show you how to customize the checkout page in WooCommerce for free using plugins and a little bit of code.

Tips for Improving Checkout Process

There are a few things that you can change on the checkout page to improve your conversion rate.

You should consider keeping the number of fields required to be filled to complete an order as low as possible. This helps for two reasons. First, people are usually unwilling to share extra information about them due to privacy concerns. Second, filling out a form takes time and not everyone will be willing to spend theirs filling out unnecessary details.

Another thing that you can do to improve your conversion rate is build customer confidence. You can do that by adding a customer testimonial on the checkout page. Also try to convey that the payment process is handled in a secure manner on your website. Making all common payment methods available also helps.

One of the primary reasons for abandoned carts is additional unexpected checkout fees due to high shipping charges or some other reason. Make sure that customers don't see any extra charges on the checkout page and provide legitimate explanations for charges that you cannot avoid. The discount coupons should also work as expected on the checkout page.

Customizing the Checkout Page

We will now incorporate some of these tips to customize our own WooCommerce checkout page. The following image shows what the checkout page looks like in its default form for the Storefront theme.

Default WooCommerce CheckoutDefault WooCommerce CheckoutDefault WooCommerce Checkout

Removing and Rearranging Fields

As you can see, there are a couple of extra fields like Company Name that we don't want our customers to fill out. We will get rid of them and arrange the remaining fields in a different order like bringing the phone and email address field close to the name input.

Begin by installing Checkout Field Editor for WooCommerce from the WordPress plugin directory. Once you have installed and activated the plugin, navigate to WooCommerce > Checkout Form from the dashboard menu.

Drag and the fields around to place them in any order that you prefer. After that, select the billing_company field and click on the Remove button as shown below. Finally click on the Save changes button and you will see the changes reflected on the checkout page on reload.

Checkout Field EditorCheckout Field EditorCheckout Field Editor

You might have noticed that there was no option to remove the Order notes field in the settings. You will find it by switching the tabs to Additional Fields and the top of plugin settings. Please note that you probably won't be able to remove the Order notes field by selecting it and clicking on the Remove button. This is because it is the only field under that tab. Another way to get rid of it is to click on the Disable button and then Save changes.

Checkout Field Editor Disabling OptionsCheckout Field Editor Disabling OptionsCheckout Field Editor Disabling Options

You can also add extra fields to the checkout form based on your specific business needs. For this example, I am adding a checkbox to let us know that the order is a gift. First we click on the Add Field button and then select Checkbox from the dropdown menu. Once you have filled out all other information like the image below. Click on the Save & Close button.

Adding New FieldsAdding New FieldsAdding New Fields

Updating Text Content

The Checkout Field Editor provided us an easy way to add, remove or rearrange fields in the checkout form. Now we will use another plugin called StoreCustomizer to make changes to the text on the checkout page. This plugin allows us to make changes to different pages in our WooCommerce store. We used it earlier in the tutorial about customizing the WooCommerce shop page.

Once you have installed the plugin, navigate to Appearance > Customize > StoreCustomizer > Checkout Page. You should now see a bunch of options under different headings.

We will begin by checking the box for Edit Coupon Section Text. Replace the default text with anything that is appropriate for your business. Once you are done, hit the Publish button to apply changes.

StoreCustomizer Coupon OptionsStoreCustomizer Coupon OptionsStoreCustomizer Coupon Options

Scroll down a bit within the StoreCustomizer checkout page settings and you will find another subsection titled Design Elements. You can tweak the settings here to customize the Place Order button. Change the text, font size, padding and color values to something that goes well with your overall website design.

Store Customizer Order ButtonStore Customizer Order ButtonStore Customizer Order Button

You can also change the heading for different sections by checking the box for Customize checkout details headings. It will also allow you to change the font size and color. I have made the text slightly bigger by setting the font size to 32 pixels. I have also set the color to black.

StoreCustomizer Checkout HeadingsStoreCustomizer Checkout HeadingsStoreCustomizer Checkout Headings

Updating the Appearance with CSS

We were able to make some changes to the appearance of different elements on the checkout page using the StoreCustomizer plugin. However, the plugin only has limited options for any styling related changes.

Our best bet is to use custom CSS that we can place inside Appearance > Customize > Additional CSS. In this case, we will modify the look of the coupon section as well as the order summary table. Some other minor changes include the addition of borders under input fields.

Custom CSS for Checkout FormCustom CSS for Checkout FormCustom CSS for Checkout Form

You can find the selectors for different elements using the style inspector in the respective browsers. Here is the CSS that I am going to use for our checkout page.

Click on the Publish button now and you will have a checkout form that looks like the image below.

Checkout Form After CSSCheckout Form After CSSCheckout Form After CSS

Adding Content Using Hooks

This last section requires you to have at least a little bit of familiarity with coding. Any wrong steps could potentially make your site inoperable until you fix the errors. Please be careful and make extra changes only if you know what you are doing. We will be updating the functions.php file of your current theme here. Make a copy of the file before proceeding.

A lot of developers integrate hooks within their plugins so that others can customize the plugin functionality according to their own needs. These hooks allow you to make changes within the plugin at specific pre-defined points. WooCommerce also has a lots of hooks of its own that are mentioned on their website. However, you might prefer to see it all laid out visually. Take a look at this visual guide for WooCommerce checkout page hooks.

Lets say you want to add a customer testimonial before the payment methods. The visual chart shows us that we will have to use the hook woocommerce_review_order_before_payment to add the testiomonial there. Add the following code to the functions.php file.

You can also use some CSS to make the testimonial blend in with the rest of the layout. Place the following CSS inside Appearance > Customize > Additional CSS like we did in the previous section.

Your checkout page should now look like the image below.

Final Version Checkout PageFinal Version Checkout PageFinal Version Checkout Page

Final Thoughts

In this tutorial, we used a combination of techniques to customize a WooCommerce checkout page for free. The easiest and safest way to make content related changes is with plugins, both free and paid. After that, you can make layout related or visual changes using custom CSS code. Sometimes, the customization that you are looking for might not be provided with either free or paid plugins. In that case, your best bet is to write your own code.

Hopefully, you will be able to follow the steps in this tutorial to create your own customized WooCommerce checkout page.


No comments:

Post a Comment