WooCommerce is a popular platform for eCommerce in WordPress which provides some information saved in the product data section. But, you still may need some things further that it does not provide, such as custom fields for extra information about products. Let’s dive in to explore how to display them with Meta Box and Bricks.

This is an example of a single page for products in WooCommerce that we will create in this practice.

An example about a single page for products in WooCommerce

Video Version

Before Getting Started

Besides some information saved in the product data section that WooCommerce provides, we will add some extra information saved in custom fields created with Meta Box to the page as well.

Information saved in WooCommerce and custom fields

In this practice, we absolutely need WooCommerce to have some features for your products and shop.

For custom fields, we need the Meta Box core plugin to have a framework to create them. You can download it directly from wordpress.org.

We also need some Meta Box extensions to have some advanced features:

  • Meta Box Builder: to have a UI on the back end to create custom fields easily;
  • Meta Box Group: to group the fields together for better structure. It is optional.

You can install these extensions individually or just use Meta Box AIO.

Finally, remember to enable the Bricks that help to build the page.

Create Custom Fields

Although WooCommerce provides some fields from basic to advanced to input the product information. You may want to have some other information for products in some cases. Then, custom fields will come handy.

These are the fields that I’ll create for example. They are just some basic fields for typical information.

These are the fields created for extra information

Go to Meta Box > Custom Fields to create the fields.

Go to Meta Box > Custom Fields to create the fields

Meta Box has more than 50 field types that can meet almost any type of data you expect to input.

For the basic information, we use the Text field.

This is Text fields for basic information

I’ll create some fields that allow the user to choose one from the provided list in the Select type.

Some fields that allow the user to choose one from the provided list in the Select type

There is a choice box to add options in the Select field type.

A choice box to add options

After having all the fields, move to the Settings tab, choose Location as Post type, and select Product to apply these fields to it.

Move to the Settings tab, choose Location as Post type, and select Product to apply these fields

Pay attention that the product post type is auto-generated by WooCommerce. It is not the post type created with Meta Box.

The product post type is auto-generated by WooCommerce

Now when editing a product, you will see the created fields.

These are the created fields

Just input some data.

Input some data in the created fields

You still can add product data in the Product data section provided by Woocommerce. It does not affect the data in the custom fields at all, and vice versa.

Some product data in the Product data section provided by Woocommerce

Create a Template for the Product Page

Go to Bricks to create a new template for the product page.

Go to Bricks and create a new template for the product page

Select the template type as Woocommerce Single Product. Then, edit the created template with Bricks.

Select the template type as Woocommerce Single Product

Go to the settings of this template, set a condition to assign to Product in the Post type.

Set a condition to assign to Product in the Post type

And, also set a preview for it in the Populate content section.

Set a preview for it in the Populate content section

Add a Section for covering all the page content.

Add a Section for covering all the page content

Display the Product Information in WooCommerce

Now, I’ll display some information saved in the product data section that WooCommerce provides.

Choose the two columns layout for the Container inside the section. Then, add one by one element to display all the product information.

Choose the two columns layout for the Container inside the section

At the top of the page content area, select Breadcrumbs element to generate the corresponding breadcrumbs for each single product page.

Select Breadcrumbs element to generate the corresponding breadcrumbs

Bricks provides some elements that are specific for Woocommerce, so you can easily display the product information just by choosing the corresponding elements.

Bricks provides some elements that are specific for Woocommerce

Add the Product gallery element to display all the images from the Product gallery field provided by WooCommerce.

Add the Product gallery element to display all the images

For some information about products, add the Product title element then add the Product price. It’s also from a field provided by Woo.

For some information about products, add the Product title element then add the Product price

I’ll choose the Product Meta element and then select Product short description to describe the product.

Choose the Product Meta element and then select Product short description to describe the product

A product page also should have the Add to cart button and Bricks also provides a dedicated element to have this button for Woo.

Choose Add to cart button for a product page

Moreover, Bricks also has a dedicated element for a popular section that displays the tabs of product details, review, comment, and so on.

Bricks also has a dedicated element for a popular section

Add Heading element for the related products.

Add Heading element for the related products

And select Related Products to show it.

Select Related Products for showing

Display the Product Information in Custom Fields

Now, for other information saved in custom fields created with Meta Box, instead of using the elements that are for Woo only, we should choose the normal element, then use the dynamic data feature.

All the data that is saved in the fields is a kind of a list of characteristics about the product, so choose the List element to display them.

Choose the List element to display kind of a list of characteristics about the product

I’ll open the Items section and there will be a list of items.

Just set the name of the item.

Set the name of the item

Then set the Meta for the item using dynamic data.

Set the Meta for the item using dynamic data

I’ll set an icon for the item like this.

Set an icon for the item

Do the same with some kind of information that we have in the fields. Just duplicate the first item for saving time and change the title, the field in the Meta setting as well.

This is all information saved in custom fields.

This is all information saved in custom fields

This is all the information about the product that I expect to display on the single page but without styling.

All the information about the product displayed without styling

Style the Product Page

To have a better look for the product page, you should go back to the page editor with Bricks. Then, choose each element, both the element dedicated for Woo or the one for custom fields created with Meta Box, just change the settings to style them.

Now, you will see the page has turned to a new look.

This is a new look of the page

Last Words

We have finished creating a single page for products in WooCommerce using Bricks and Meta Box.

If you want to add the products which are in an online store built with WooCommerce. You can follow this instruction for more detail.

Let’s try and share the result with us in the comments.

If you want to suggest any tutorials, feel free to leave a comment and keep track of our blog. Thanks for readin!

Other case studies you might be interested in

  1. Create A Dynamic Landing Page in WordPress Using Custom Field
  2. Create a Filter to Find Hotels by Location
  3. Create an OTA Website Like Booking.com with Meta Box Plugin - P1: Create a Page to Introduce Hotel Rooms
  4. Create an OTA Website Like Booking.com with Meta Box Plugin - P2: Create Filters on the Archive Page
  5. Create an OTA Website Like Booking.com with Meta Box Plugin - P3: Create Filters for Single Hotel Pages
  6. Create Dynamic Favicon in WordPress using Meta Box plugin
  7. Create Posts Series in WordPress Using Meta Box
  8. Display The Latest Products Section - P2 - Using Meta Box and Elementor
  9. Display The Latest Products Section - P3 - Using Meta Box And Oxygen
  10. How to Add Custom Fields for WooCommerce - P2 - Using MB Views
  11. How to Add Custom Fields to Display Banners using Meta Box Plugin
  12. How to Add Custom Fields to Products in WooCommerce - Using Meta Box and Bricks
  13. How to Add Guest Authors and Guest Posts - Using Meta Box
  14. How to Add Related Posts - Using Custom Fields
  15. How to Build a Hotel Booking Website Using Meta Box - P1
  16. How to Build a Hotel Booking Website Using Meta Box - P2 - Booking Page in Backend
  17. How to Build a Hotel Booking Website Using Meta Box - P4 - Booking Management Page
  18. How to Build a Hotel Booking Website Using Meta Box – P3 – Booking Page for Customer
  19. How to Create a Classified Ads Website using Meta Box
  20. How to Create a Custom 404 Page in WordPress - P1 - Using Meta Box and Elementor
  21. How to create a FAQs page - P5 - Using Meta Box and Breakdance
  22. How to Create a Product Page - P2 - Using Meta Box and Oxygen
  23. How to Create a Product Page - P3 - Using Meta Box and Bricks
  24. How to Create a Product Page - P4 - Using Meta Box and Elementor
  25. How to Create a Product Page - P5 - Using Meta Box and Gutenberg
  26. How to Create a Product Page - P6 -Using Meta Box and Breakdance
  27. How to Create a Product Page - P7 - Using Meta Box + Kadence
  28. How to Create a Product Page - P8 - Using Meta Box and Brizy
  29. How to Create a Product Page - P9 - Using Meta Box and Divi
  30. How to Create a Product Page using Meta Box Plugin
  31. How to Create a Recipe - P2 - Using Meta Box and Oxygen
  32. How to Create a Recipe - P3 - Using Meta Box and Elementor
  33. How to Create a Recipe - P4 - Using Meta Box and Bricks
  34. How to Create a Recipe - P5 - Using Meta Box and Zion
  35. How to Create a Recipe - P6 - Using Meta Box and Brizy
  36. How to Create a Recipe - P7 - Using Meta Box and Breakdance
  37. How to Create a Recipe - P8 - Using Meta Box and Kadence
  38. How to Create a Recipe - P9 - Using Meta Box and Divi
  39. How to Create a Recipe with Meta Box Plugin
  40. How to Create a Simple Listing - P2 - Using Meta Box and Bricks
  41. How to Create a Simple Listing - P3 - Using Meta Box and Breakdance
  42. How to Create a Simple Listing - P4 - Using Meta Box and Elementor
  43. How to Create a Team Members Page - P1- Using Meta Box and Elementor
  44. How to Create a Team Members Page - P2 - Using Meta Box and Oxygen
  45. How to Create a Team Members Page - P3 - Using Meta Box and Bricks
  46. How to Create a Team Members Page - P4 - Just Meta Box
  47. How to Create a Team Members Page - P6 - using Meta Box and Breakdance
  48. How to Create a Team Members Page - P7 - Using Meta Box and Kadence
  49. How to Create a Video Gallery Page - P2 - Using Meta Box + Bricks
  50. How to Create a Video Gallery Page - P3 - Using Meta Box and Breakdance
  51. How to Create a Video Gallery Page - P4 - Using Meta Box + Elementor
  52. How to Create a Video Gallery Page - P5 - Using MB Views
  53. How to Create a Video Gallery Page - P6 - Using Meta Box and Zion
  54. How to Create a Video Gallery Page Using Meta Box + Oxygen
  55. How to Create ACF Flexible Content Field with Meta Box
  56. How to Create an Auto-Updated Cheat Sheet in WordPress
  57. How to Create an FAQs Page - P1 - Using Meta Box and Elementor
  58. How to create an FAQs page - P2 - Using Meta Box and Oxygen
  59. How to create an FAQs page - P4 - Using Meta Box and Bricks
  60. How to Create an FAQs Page - P6 - Using MB Views
  61. How to Create an FAQs Page - P7 - Using Meta Box and Divi
  62. How to Create an FAQs Page - P8 - Using Meta Box and Kadence
  63. How to Create an FAQs Page - P9 - Using MB Blocks
  64. How to Create an FAQs Page -P3- Using Meta Box
  65. How to Create Buttons with Dynamic Link using Custom Fields
  66. How to Create Category Thumbnails & Featured Images Using Custom Fields
  67. How to Create Download and Preview Buttons - P1 - Using Meta Box and Bricks
  68. How to Create Download and Preview Buttons - P2 - Using Meta Box and Oxygen
  69. How to Create Download and Preview Buttons - P3 - Using MB Views
  70. How to Create Download Buttons in WordPress - Using Custom Fields
  71. How to Create Dynamic Landing Page in WordPress - P1 - Using Meta Box and Elementor
  72. How to Create Dynamic Landing Page in WordPress - P2 - Using Meta Box and Bricks
  73. How to Create Menus for Restaurants - P1 - Using Meta Box and Elementor
  74. How to Create Menus for Restaurants - P2- Using Meta Box and Bricks
  75. How to Create Notification Using Custom HTML Field
  76. How to Create Online Admission Form for School or University
  77. How to Create Online Reservation Form for Restaurants using Meta Box
  78. How to Create Relationships - P1 - Using Meta Box and Oxygen
  79. How to Create Relationships - P2 - Using Meta Box and Bricks
  80. How to Create Relationships - P3 - Using MB Views
  81. How to Create Relationships - P4 - Using Meta Box and Breakdance
  82. How to Create Taxonomy Thumbnails & Featured Images - P2 - Using Meta Box and Oxygen
  83. How to Create Taxonomy Thumbnails & Featured Images - P3 - Using Meta Box and Bricks
  84. How to Create Taxonomy Thumbnails & Featured Images - P4 - Using MB Views
  85. How to Create YouTube Video Timestamps on WordPress Website - P1 - Using MB Views
  86. How to Display a Video Playlist - P1- Using MB Views
  87. How To Display All Listings On A Map With Meta Box
  88. How to Display Author Bio in WordPress - P1 - Using Meta Box and Bricks
  89. How to Display Author Bio in WordPress - P2 - Using MB Views
  90. How to Display Dynamic Banners in WordPress - P3 - Using MB Views
  91. How to Display Images from Cloneable Fields - P1 - with Gutenberg
  92. How to Display Images from Cloneable Fields - P2 - Using Meta Box and Oxygen
  93. How to Display Images from Cloneable Fields - P3 - with Elementor
  94. How to Display Images from Cloneable Fields - P4 - with Bricks
  95. How to Display Opening Hours for Restaurants - P1 - Using Meta Box + Gutenberg
  96. How to Display Opening Hours for Restaurants - P2 - Using Meta Box and Oxygen
  97. How to Display Product Variations - P1 - Using Meta Box and Gutenberg
  98. How to Display Product Variations - P2 - Using Meta Box and Oxygen
  99. How to Display Product Variations - P3 - Using Meta Box and Bricks

Leave a Reply

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