[Guide] Customize WooCommerce Shop Page With Page Builder (Elementor/Beaver…)

customize woocommerce shop page

In the previous post on the same topic, I showed you how to customize WooCommerce shop page using a template file. Though it works, many people find it hard to follow since they have to access files on the server. This post will show you another way, easier, friendlier for people who doesn’t want to mess up with code.

We are going to customize the shop page using page builders such as Elementor, Visual Composer, Beaver, Divi… or any page builder you have. You can completely change the layout, the designs, the type of products, number of products display on the shop page without writing any code yourself. I promise at the end of this post, you can start working on designing your WooCommerce shop page without any problem.

In case you got some problems, no worries. You can simply contact me or leave a comment below, I’ll get back to you.

Let’s get started!

How To Customize WooCommerce Shop Page Using Page Builders

The idea is very simple. Here are the steps:

  1. You will create a page that display your products with your favorite page builder
  2. You will set that page as your shop page

And that’s that! There isn’t a third step.

In case you want to watch a video tutorial instead, I’ve made one here:

If you are still with me, let’s dive in.

Step 1: Create a page listing your products with your page builder

I’m not going to show you how to use your page builder (Elementor, VC, Divi…) in this post since I assume that you have already know how to use them. I’m going to use Elementor. I’m going to create a page like this on my site:

create a new page to use as shop page in elementor

As you can see, I have a blank page. Let’s say I want to have three section on my shop page:

  1. Featured products
  2. Best selling products
  3. New arrival products

I’m going to create three headings first:

create the headings for the shop page

Now, I’m going to fill the products to this page. How can I do that?

Fill the products to the shop page using WooCommerce products shortcode

It’s time to use some shortcodes to display the products we want on the page. You can find the extensive list of WooCommerce shortcodes here

However, to include products, you only need to know these ones:

  1. [featured_products]: List featured products. If you don’t know what featured products are or want to know how to create featured products, I’ve made an extensive WooCommerce featured products tutorial here
  2. [best_selling_products]: List of your best sellers
  3. [top_rated_products]: Top rated products
  4. [sale_products]: Products are on sales
  5. [recent_products]: New products
  6. [products]: This is the most powerful shortcode. If you don’t add any attributes, then it will list all the products on your store

You maybe eager to start adding the shortcodes to your page and you can. However, there are some very important things about the shortcodes attributes you may want to know first.

Set number of columns: How many columns do you want to use to display the products? The default number is 4, however, you can set any other number you like. For example, you want to display best selling products in 3 columns, you’ll use this shortcode[best_selling_products columns="3"]

Here is what it look like when I set 3 columns:

best selling products shortcode 3 columns woocommerce

 

Limit the number of products displayed: You may notice that though we have the products displayed in 3 columns, you possibly want to limit the number of products. For example, if I want to limit the number of products to only 9 (three rows), I’ll use this attribute:limit

So, the shortcode to display top 9 best selling products in 3 columns would be:

[best_selling_products limit="9" columns="3"]

Easy, right?

Specify the categories to get products from: You may want to have a section that display products from specific category(ies) only. In such case, you’ll use the category attribute. You are going to need the category’s slug to make this work. What is the category’s slug? Simple, go to Products->Categories, under the category, click on Quick Edit:

find category slug

You’ll see the category’s slug in the Slug field.

So, in this example, if I want to display all products in the category Business PC, I would use this:

[products category="business-pc"]

If I want to display products from Business PC and Laptop (given the slug of the Laptop category is laptop), I would use this shortcode:

[products category="business-pc, laptop"]

Now, you have all you need to start adding products to the new page. Here is what I have after adding the shortcodes:

final shop page created by page builder

I must admit, I’m not a good designer but from here, you can see that you can create a custom layout for your shop page.

Now, it’s time to make this page your official shop page.

Set the page as our new shop page

The first thing  you need to do know is to create a child theme to enter a bit of code. You can put the code right in the functions.php file of your current theme but that’s a bad practice. Future update of your theme can wipe out all your changes. If you need help creating child themes, I have a quick tutorial here on this matter.

Now, I assume that you have created your child theme. Let’s first grab the URL of the page you have just created, then go to Appearance->Theme Editor:

If you see any warning popup, just click on “I understand”.

Now, your interface might be different from what I have here:

paste the code in functions file to make it works

However, most of the time, you’ll see the “Theme Function” file on the right. Just click on that and paste the following code at the end of that file:

add_action('template_redirect', 'bc_010101_redirect_woo_pages');

function bc_010101_redirect_woo_pages()
{
 
 
 if (is_shop())
 {
  //don't remove the quotes(')
  wp_redirect('http://localhost/wordpress/my-shop-page/');
  exit;
 }
}

Make sure you replace your own URL inside wp_redirect.

Now, save the page and if you go to your original shop page, you’ll see the new page display.

Conclusion

As you can see, it is quite simple to customize WooCommerce shop page using page builder. There is a bit of code to enter, however, you don’t need to understand that code to make things work. One of the most important thing you need to do is to create a child theme to enter the code. It’s much safer than entering the code directly to the theme you currently use.

Click on a star to rate it!

Average rating / 5. Vote count:

6 thoughts on “[Guide] Customize WooCommerce Shop Page With Page Builder (Elementor/Beaver…)

  1. Hi, thanks for this but how do I do the same redirect for product categories? I.e. If I go to my new store page, click on a product and then click on the category from the product posting, it takes me back to the old default Woocommerce shop?

    1. Hi Henry,

      Actually I’m making a plugin for that. I’ll release it soon and notify you via email. Thanks

  2. Hi,

    I tried this on my own custom theme that uses the Divi Page Builder plugin.
    It doesn’t seem to work if I have the same URL set as my default shop page as the one that I’ve added into the functions php code.

    For example, I’m working on a shop page with the URL “myurl.co.uk/new-shop-page” which I have added into the functions.php code you wrote above. When I do this, the page doesn’t load, and it says “ERR_TOO_MANY_REDIRECTS”.

    Do you know what could be going wrong?

    1. Hi Jack,

      Yes, you cannot put the default shop URL there since it will create a loop, which exactly what you see in the error message.

      Please create a new page and redirect to that page.

Leave a Reply

Your email address will not be published. Required fields are marked *