For an e-commerce website, a product page is considered the most essential page. If this page is full of information and beautifully presented, it'll attract many customers and direct them to purchase quickly.

Technically, there are many ways to build a product page. We’ve had a tutorial on doing it with Meta Box only. In this post and the next one of this series, we’ll dig in how to do it with page builders.

I also take a car rental page built with Oxygen as an example in this tutorial.

Example of a Product page

Video Version

Before Getting Started

The product is a kind of custom post type. In this case, each car for the rental will be a post in that post type. Besides the default information such as title and content of the post, we’ll need some extra information about the cars such as price, image gallery, type of fuel, etc. So, we use custom fields to save that information.

The extra information will be saved in custom fields

To create a custom post type and custom fields, we use the Meta Box core plugin. It’s free and available on wordpress.org.

We also need some Meta Box extensions for more advanced features. You can use Meta Box AIO or install the following extensions individually:

Don’t forget that we’ll build the page using Oxygen. You should use the 3.9 version or upper, which has had the native integration with Meta Box already.

Step 1: Create a New Custom Post Type

Go to Meta Box > Post Types > New Post Type to create a new custom post type for the product.

create new custom post type

Step 2: Create Custom Fields

Go to Meta Box > Custom Fields, then create fields as you want.

create new custom fields

In this tutorial, I just take a typical example of car rental with some common fields. They are all quite basic fields with no special configuration.

example of car rental with some common fields

Next, move to the Settings tab > Location > choose Post Type as Car Rental to apply these fields to this post type.

Settings tab > Location > choose Post Type as Car Rental

Back to the post editor, you will see all of the newly created custom fields.

newly created custom fields.

Step 3: Create a Template with Oxygen

Go to the Oxygen menu and choose to create a new template.

In the settings of the template, choose a design that you want the template to inherit from, then choose your post type in the Singular section to apply the template to it.

Choose the design for the template you wants to display

Move to the post editor and create a new post in the newly created post type. Pay attention that we can see the template is already rendered for this product page.

Move to the post editor and create a new post in the newly created post type

After filling in the information for the product, let’s edit the template.

First, select a Section component to contain all of the product information.

select a Section component to contain all of the product information.

If you want to set columns for the content as below, let’s add a Column component.

split the content into columns

add the column component

Just set the Column Layout as you want.

In this Column component, there’ll be 2 div tags available, equivalent to 2 columns. In the first div tag, select the Carousel Builder component to display the image gallery as a slider.

Choose Meta Box gallery in the Carousel content section, and fill in the ID of the gallery field in the Meta Box image field section. Then, all the images saved in that field will be displayed.

set the gallery

You can move to the Advanced tab to set the slider display as you want.

Move to the second column with the 2nd div tag. To get the title of the post, means the name of the product, add a Heading component. Then, insert data from the post title to this component.

insert data from the title of the post

For the product description, choose the Text component and connect it with the content of the post.

Also, choose the Text component for the price of the product. The pricing includes the currency, so you can type some text and symbols in this component to get the right format, then insert data from the field.

display the price of product

For all of this section, I’ll add a div component.

add a div component

For each row in this section, I also use a div component.

 Create a div to hold a row's information

div tag for section and div tag for section to cover all the information.

In the div for a row, choose the Heading component and name it as the name of the characteristic. Then, add a Text component, and connect it to the field which saves the corresponding data to the characteristic. Last one, style these two components and the div that covers them in your own way.

For the remaining characteristics, just clone this div, which is used for a row by duplicating. Then, just change the headings and link the Text components to the right fields.

We’ve finished getting all of the information about the product and displayed them on the product page. You can style them as you want. After styling, I got this one.

The product page when we finished creating it

Last Words

It seems to be so easy to create a product page with Meta Box and Oxygen, right? With custom fields, you can easily save extra information about products and display them in a more beautiful style on the product page. Let’s try and share the result with us in the comments.

Don’t forget to follow our channel to see other ways to use other page builders!

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 a User List On the Frontend with Meta Box
  9. Display The Latest Products Section - P2 - Using Meta Box and Elementor
  10. Display The Latest Products Section - P3 - Using Meta Box And Oxygen
  11. Display the Latest Products Section - P4 - Using Meta Box + Zion
  12. How to Add Custom Fields to Display Banners using Meta Box Plugin
  13. How to Add Guest Author in WordPress using Meta Box (Part 1)
  14. How to Add Guest Author in WordPress using Meta Box (Part 2)
  15. How to Add Related Posts to WordPress Using Meta Box
  16. How to Build a Hotel Booking Website Using Meta Box - P1
  17. How to Build a Hotel Booking Website Using Meta Box - P2 - Booking Page in Backend
  18. How to Build a Hotel Booking Website Using Meta Box - P4 - Booking Management Page
  19. How to Build a Hotel Booking Website Using Meta Box – P3 – Booking Page for Customer
  20. How to Create a Classified Ads Website using Meta Box
  21. How to Create a Product Page - P2 - Meta Box + Oxygen
  22. How to Create a Product Page - P3 - Using Meta Box + Bricks
  23. How to Create a Product Page using Meta Box Plugin
  24. How to Create a Recipe - P2 - Using Meta Box and Oxygen
  25. How to Create a Recipe with Meta Box Plugin
  26. How to Create a Simple Listing - P2 - Using Meta Box and Bricks
  27. How to Create a Team Members Page - P1- Using Meta Box and Elementor
  28. How to Create a Team Members Page - P2 - Using Meta Box and Oxygen
  29. How to Create a Team Members Page - P3 - Using Meta Box and Bricks
  30. How to Create a Team Members Page - P4 - Just Meta Box
  31. How to Create ACF Flexible Content Field with Meta Box
  32. How to Create an Auto-Updated Cheat Sheet in WordPress
  33. How to Create an FAQs Page Using Meta Box
  34. How to Create Buttons with Dynamic Link using Custom Fields
  35. How to Create Category Thumbnails & Featured Images Using Custom Fields
  36. How to Create Download Buttons Using Custom Fields with Meta Box Plugin
  37. How to Create Menu for a Restaurant - P1 - Using Meta Box and Elementor
  38. How to Create Online Admission Form for School or University
  39. How to Create Online Reservation Form for Restaurants using Meta Box
  40. How to Create Taxonomy Thumbnails & Featured Images - P2 - Using Meta Box and Oxygen
  41. How to Display Images from Cloneable Fields - P1 - with Gutenberg
  42. How to Display Images from Cloneable Fields - P2 - with Oxygen
  43. How to Display Images from Cloneable Fields - P3 - with Elementor
  44. How to Display Opening Hours for Restaurants - P1 - Using Meta Box + Gutenberg
  45. How to Display Product Variations - P1 - Using Meta Box and Gutenberg
  46. How to Display Product Variations - P2 - Using Meta Box and Oxygen
  47. How to Manually Reorder Posts with Meta Box
  48. How to Show Featured Restaurants on Homepage - P1 - Meta Box + Elementor + WP Grid Builder
  49. How to Use Custom HTML Field to Output Beautiful Texts or Output Custom CSS

Leave a Reply