
Posted in
July 17, 2017
Once upon a time, people had to thumb through thick tomes of printed material called “catalogues” to find the products they wanted to buy. If you’re old enough to remember looking through the Sears catalogue at Christmas time looking for toys to ask Santa for, you know what I’m talking about.
(And if you aren’t old enough to remember that, I don’t want to talk to you.)
While print catalogues have largely gone the way of the dinosaurs, the concept of letting people browse a selection of products has not. That’s where online catalogue functionality comes in.
Basically, it’s a listing of products. You need to display multiple products on a page so people can browse through them and pick the one they want. There can be filters and categories and various other ways of going from thousands of products down to a manageable number that people can actually scan through.
In Commerce 2.x, everything is just search results that come up, but it appears like a catalogue. So if you filter by a specific tag or parameter, it presents like a catalogue with nice rows of products. But since it’s really just a search result, you can apply all the filters that you would for a search. You can do a keyword search in a category, for instance. Or you can filter by price, brand, colour, or any other parameter you care to use. Think of the kind of shopping experience you get on Amazon (only more specific), and you’ll get what we’re talking about here.
There are lots of different options. You can choose to display everything with the “television” tag, for instance. Results can be displayed alphabetically, or you can have the top sellers display first, or you can have products come first and have accessories listed lower down. You can add manual weightings to products, or you can have weightings based on other tags or even on dynamic data. There are a lot of adaptabilities.
In Commerce 1, you could use views and display products that way, which allowed for some filtering, but it was pretty basic. In Commerce 2.x, catalogues are now searches, so they’re cool and flexible, and they can do whatever you want.
To learn more, check out our High Five episode How Drupal Commerce 2.x handles Catalog Functionality.
Subscribe to our YouTube Channel for more Drupal Commerce goodness!