How To Build A Filterable WooCommerce Product Grid In Divi 5

by | Oct 2, 2026 | Etcetera | 0 comments

A product grid provides customers a strategy to browse your catalog. Seek, filters, and sorting lend a hand them slender that catalog to merchandise that have compatibility their wishes. In Divi 5, the Loop Builder permits you to create customized product playing cards and repeat them in a grid, whilst the Post Filter Module supplies the controls customers use to refine the effects.

Under, we’ll construct a product grid that customers can seek through key phrase and slender through class and worth. Alongside the best way, we’ll take a look at different controls you’ll upload, together with inventory standing, assessment scores, product attributes, and sorting through worth, recognition, or score. You’ll want Divi 5, WooCommerce, and a couple of merchandise to your catalog.

Get ready Your Product Catalog

WooCommerce should be put in and feature merchandise able to show ahead of you start. If you wish to have lend a hand with that, our information to installing WooCommerce covers the setup, and the Divi and WooCommerce integration web page explains how the 2 paintings in combination.

WooCommerce installed with a populated product catalog

Filters use information that already exists. If you wish to have customers to filter out through class, colour, or dimension, the related classes and attributes want to be assigned for your merchandise. Including a filter out regulate does now not create that underlying knowledge.

Sooner than development, verify that your product classes comprise merchandise. For world attributes, outline the phrases and assign them to the fitting merchandise. A variety of costs makes it more straightforward to show the fee slider, whilst merchandise with other assessment scores assist you to see how a score filter out impacts the effects.

Sorting additionally will depend on the to be had information. For instance, Reputation (Gross sales) makes use of gross sales counts. Merchandise and not using a gross sales can nonetheless seem, however a catalog the place each product has the similar gross sales depend won’t produce a significant recognition score.

Construct A Product Loop

Divi contains a number of WooCommerce Modules for exhibiting product knowledge all over your retailer, together with in Theme Builder templates. For this educational, we’ll use person Symbol, Heading, Textual content, and Button Modules, then allow a Loop on their father or mother container.

This manner provides us regulate over the product card’s construction. We will come to a decision which knowledge to turn, learn how to organize it, and which portions want their very own format ahead of connecting the modules to product information.

If you happen to would relatively get started with a completed card design, 12 Shop Loops For Divi 5 contains twelve unfastened product-grid layouts. Import the JSON below Divi > Divi Library, upload a format for your web page, and proceed with the question settings underneath.

Both manner, construct the Loop first and fasten the Put up Filter out Module in a while. This educational makes use of a customized Divi product Loop relatively than the usual WooCommerce store grid.

The finished filterable outdoor gear product grid

Construct The Product Card

Open the web page within the Visual Builder and upload a Row or Team to carry the grid. Within it, upload a 2nd container for the product card.

Make a choice the outer container and turn its Structure to CSS Grid. The outer container arranges the repeated playing cards into columns, whilst every interior card stays one unit. Set the column depend and gaps to fit your design.

Product grid container with CSS Grid settings in Divi 5

Within the card container, upload an Symbol Module for the product picture, a Heading Module for the name, a Textual content Module for the fee, and a Button Module linking to the product.

We’ve additionally added Team Modules to prepare portions of the cardboard. Those allow us to organize decided on parts horizontally whilst maintaining the entire card vertical. You’ll be able to alter that interior construction with out converting how the outer grid arranges the playing cards.

See also  Obtain a FREE Weblog Put up Template for Divi’s Seafood Eating place Format Pack

Modules used to build the product card for the Loop

Permit The Loop And Set The Question

Take away any unused Columns from the grid so most effective the supposed card construction stays. Then make a choice the cardboard’s personal container, the only keeping the Symbol, Heading, Textual content, and Button Modules, and allow its Loop.

Set Question Sort to Put up Sort, make a selection Merchandise because the Put up Sort, and set Posts In keeping with Web page to the collection of merchandise you wish to have to turn ahead of pagination.

Pagination is treated through a separate module. A Pagination Module hooked up to the similar Loop follows its energetic filters and returns to the primary web page once they alternate. Our information to using the Loop Builder and Pagination Module together covers that setup.

As soon as the question is about, Divi repeats the cardboard container for the goods it returns. The outer grid handles their association, so you don’t want to copy the cardboard manually.

Bind The Modules To Dynamic Content material

Subsequent, attach the modules throughout the card to the present product’s information. Open every module and use its dynamic content material choices to assign the fitting price:

  • Symbol: The product’s featured symbol.
  • Heading: The product name.
  • Textual content: The product worth.
  • Button Hyperlink: The product URL.

Set the Button’s textual content one after the other to the label you wish to have customers to peer.

Each and every repeated card receives the information for its personal product. A Heading hooked up to the product name presentations the proper identify in each card, whilst the Symbol and worth replace in the similar manner.

You configure the construction and dynamic connections as soon as. Adjustments to that shared card design then follow around the merchandise displayed through the Loop.

Label The Loop

Give the 2 bins distinct labels below Meta > Component Label. Use Product Grid for the outer container and Product Card for the internal container with the Loop enabled.

The Put up Filter out Module’s Goal Loop dropdown identifies Loops through their Component Labels. For this setup, the filter out will have to goal Product Card, as a result of that’s the part repeating for every product.

Transparent labels grow to be particularly helpful on pages with a number of Loops. Additionally they assist you to establish parts within the Layers Panel and when opting for goals for Interactions.

Attach The Put up Filter out Module

With the product Loop in position, upload a brand new one-column Row above the grid and insert a Put up Filter out Module. Conserving the shape in its personal Row way the grid’s format does now not want to account for the filter out controls.

The starter shape features a Seek box, a Class checkbox record, a Reset button, and an Observe button. Till you select a goal, the module presentations a Make a choice a Loop message.

Open Content material > Goal and set Goal Loop to Product Card, the usage of the label assigned to the looped container.

Two further settings regulate how the shape works:

  • Observe Mode: Publish waits for the consumer to click on Observe. Auto applies adjustments as a box is adjusted.
  • Relation: And calls for all energetic filter out stipulations to compare. Or lets in merchandise matching any energetic situation.

For this construct, use Auto and And. This we could customers mix a key term, class, and worth vary to slender the grid.

The instance eliminates each buttons for a compact shape. The Observe button is senseless in Auto mode, however Reset can nonetheless supply a handy strategy to transparent alternatives. Stay it if you wish to have that choice to be had to customers.

One Put up Filter out Module can comprise the other box pieces wanted for this kind. We’ll stay them in combination right here, with the father or mother module controlling the objective and the connection between the energetic filters.

Set Up The Filter out Pieces

With the buttons got rid of, the Seek and Class pieces stay. The default Seek box searches product titles and content material. It does now not routinely seek each price displayed on a card, so use devoted controls for classes, attributes, and worth.

The Class merchandise first of all refers to plain submit classes. Open it and alter Box Choice to Product Classes so it suits the Merchandise question utilized by the Loop.

See also  13 Best AI Writing Software in 2023 (Compared)

Take a look at that the displayed choices now correspond for your product classes. If they don’t, verify each the sphere’s supply and the goods assigned to these classes.

Upload The WooCommerce Filter out Pieces

When focused on a WooCommerce product Loop, you’ll use 3 product-specific box varieties:

  • Value Vary: Offers customers a slider for narrowing merchandise through worth.
  • Inventory Standing: Filters through availability, together with in inventory, out of inventory, and on backorder.
  • Overview Score: Filters merchandise through celebrity score.

Those controls use the ideas stored together with your merchandise. For this construct, we’ll upload most effective the Value Vary slider, however you’ll come with the others when they’re helpful in your catalog.

Click on Upload New Put up Filter out Merchandise, set Box Sort to Value Vary, and input Value as its label. Take a look at the displayed worth bounds towards your catalog ahead of shifting on.

Filter out Through Attributes, Tags, And Customized Fields

Attributes lend a hand customers examine merchandise through main points equivalent to dimension, colour, or subject matter. For instance, a jacket catalog might get pleasure from dimension and colour filters along its product classes.

Use world product attributes with phrases assigned to the related merchandise. Filtering the grid is helping customers in finding matching merchandise; settling on a particular variation nonetheless occurs during the product’s variation controls.

So as to add an characteristic filter out, create a Put up Filter out Merchandise, set Box Sort to Checkbox, and make a selection the characteristic below Box Choice. Checkboxes permit customers to choose more than one to be had values.

The similar common setup applies to product tags and transport categories: create a separate merchandise and make a choice the corresponding supply below Box Choice.

Customized fields may give further filtering standards. Select the related box supply and ensure the filter out values fit the information stored together with your merchandise. The sphere kind and comparability will have to go well with that information, in particular when operating with numeric values.

We’re leaving those not obligatory controls out of the completed instance. Its seek box, product classes, and worth slider are sufficient to show the setup with out making the shape unnecessarily lengthy.

Let Consumers Type The Grid

Sorting adjustments the order of the goods returned through the Loop. An Order Through merchandise permits you to make a selection which sorting choices customers can use. For a product Loop, those come with Value, Reputation (Gross sales), and Score, along choices equivalent to name and date.

An Order merchandise provides customers ascending and descending possible choices. A A couple of Order merchandise permits them to mix as much as 5 sorting laws.

Sorting reads the underlying product information relatively than the visual card content material. For instance, customers can kind through score even though your card design does now not show a score.

We don’t seem to be including sorting to this actual shape, however this stuff are to be had in the similar module when your product grid wishes them.

What Occurs When A Filter out Is Used

The shape applies its energetic stipulations to the chosen Goal Loop. With And decided on, a client can input a key phrase, make a selection a class, and alter the fee vary to show merchandise matching the ones stipulations in combination.

Observe Mode determines when the ones adjustments take impact. In Auto mode, filters follow as the consumer adjusts the fields. In Publish mode, customers could make a number of alternatives ahead of clicking Observe.

A separate grid with a distinct goal isn’t managed through this kind. That difference permits you to position more than one collections on a web page with out making each filter out have an effect on each Loop.

The instance additionally presentations energetic filters within the web page URL. This makes filtered perspectives helpful past the present surfing consultation: customers can bookmark a diffusion, and you’ll percentage a hyperlink to a particular set of effects.

For instance, a hyperlink to tents inside of a specific worth vary may end up in the similar grid with the ones filters already carried out. Open a copied filtered URL in a brand new tab to substantiate that it restores the supposed variety.

Active filters stored in the page URL

Sooner than styling the shape, take a look at the controls for my part and in combination. Ascertain that the effects fit your catalog, then transparent the choices to go back to the unfiltered view.

See also  How To Construct An Electronic mail Popup In Divi 5

Taste The Filter out Shape

The father or mother Put up Filter out Module’s Design tab supplies shared styling for the shape’s pieces. Its format settings regulate the entire association, whilst teams for fields, choices, checkboxes, radio choices, and buttons assist you to taste the controls inside of it.

For this situation, we use off-white backgrounds, skinny borders, and constant label colours to glue the shape visually with the product grid.

To breed the demonstrated association, use a Flex format with wrapping enabled. Each and every Put up Filter out Merchandise has its personal Column Magnificence below Sizing, which determines its percentage of the to be had width.

Set Seek to complete width, Product Classes to one-third, and Value to two-thirds. This puts Seek by itself line, with classes and worth sharing the road underneath it.

A Measurement of Shrink to Are compatible could make an merchandise practice its content material width. Use it the place that fits the format, whilst leaving enough room for the fee slider to stay comfy to make use of.

Taste Each Box In One Go

With the association in position, open the father or mother module’s Box crew. Set the background colour, border width and colour, and nook radius.

Those shared settings lend a hand the quest box, class regulate, and worth slider really feel like portions of the similar shape. You’ll be able to identify the average styling right here ahead of adjusting any person exceptions.

Subsequent, alter the sphere padding and label typography. Padding provides the controls enough room, whilst the Label Textual content crew controls font weight, colour, and line peak.

A rather heavier label can distinguish it from enter textual content with out overpowering the shape. If your preferred font helps variable weights, Divi 5 permits you to make a selection a weight between the standard common and ambitious values.

Particular person Put up Filter out Pieces even have their very own design settings. Use the ones when one merchandise must vary from the shared father or mother styling, relatively than configuring each box one after the other from the beginning.

You’ll be able to save reusable styling as Choice Team Presets and use it on other kinds. That is useful when a number of filtered grids will have to percentage the similar box and label design.

Set The Filter out Structure For Small Monitors

The only-third and two-thirds association works on wider monitors. On a telephone, give the class and worth pieces their very own traces so neither regulate feels cramped.

Transfer to the telephone breakpoint and set every merchandise’s Column Magnificence to complete width. Seek, classes, and worth will then stack vertically.

Take a look at the product grid’s responsive column depend on the identical time. The shape and playing cards will have to stay simple to make use of in combination, with readable textual content and enough room for the slider and class choices.

Construct A Product Grid Consumers Can Discover

Your product grid in Divi 5 now we could customers seek through key phrase, make a selection a class, and slender the fee vary. The Loop Builder handles the repeated product playing cards, whilst the Put up Filter out Module controls which merchandise seem. This setup makes use of Divi and WooCommerce with out a separate filtering plugin.

You’ll be able to construct at the identical basis with attributes, inventory standing, scores, and sorting when they’re helpful in your catalog. Get started with the controls customers want maximum, then upload others because the product vary calls for them.

The Loop Builder additionally helps different information resources, together with customized submit varieties and customized fields. The similar common manner can be utilized for different filterable content material, whilst WooCommerce supplies the product-specific controls used on this educational.

The submit How To Build A Filterable WooCommerce Product Grid In Divi 5 seemed first on Elegant Themes Blog.

WordPress Maintenance Plans | WordPress Hosting

read more

0 Comments

Submit a Comment

DON'T LET YOUR WEBSITE GET DESTROYED BY HACKERS!

Get your FREE copy of our Cyber Security for WordPress® whitepaper.

You'll also get exclusive access to discounts that are only found at the bottom of our WP CyberSec whitepaper.

You have Successfully Subscribed!