Skip to content
OpenCart · User manual

Search Pro

Version 0.8.1 Product page
Chapter 7

The search in your shop

What your visitors see when they search, how the results page of your theme is answered and how Search Pro decides the order of the products.

The full-screen search

When a visitor touches the search box of your shop (a click, a tap or the first key), Search Pro opens a large search over the page. Its script and styles are loaded at that moment, not with every page.

Before typing

BlockWhat it shows
Popular searchesThe searches you wrote in the Search tab for the visitor's language, or your main categories when you wrote none. One click runs the search.
Recommended for youTen products of the store: the most sold first, then the most viewed and the newest.

While typing

ElementWhat it shows
SuggestionsCompleted searches for what is being typed.
"Did you mean"A corrected spelling when the words typed match nothing as written.
Product gridEach product with its image, name, price, special price with the discount percentage, and an "Out of stock" mark when it has no stock.
Category tabs"All" and the categories of the products found, with the number of products in each.
Grid / By categorySwitches between one grid and one section per category, each with a link to see the whole category.
FiltersBrand, attributes, options, "In stock" and "On sale", with a button to clear them. On phones the filters open in a sheet that slides up, with a "Show N products" button.
Sort byThe orders you allowed in the Search bar card.
"Show more products"Loads the next products.
"See all N results"Opens the results page of your theme for that search.

When nothing matches, the visitor reads "No products found for" with the words typed and is offered the popular searches.

The Escape key and the close button close the search.

Prices and stock

Prices are calculated by your shop for each visitor: with the tax, currency and special price that the visitor would see on the product page. If your shop shows prices only to logged-in customers, the grid shows no price to guests. Stock is read at the same moment.

What you can change

Every element above can be switched off in the Search bar card, and the whole full-screen search with the Full-screen search setting. See Search settings.

The results page

The results page of your theme is kept as it is: same template, same product cards, same pagination. Search Pro only decides which products appear and in what order. Nothing is added to the page.

  • With the default order of the page, products are shown by relevance.
  • When the visitor chooses another order of the page (name, price, rating, model), that order is applied to the 300 most relevant products; the rest follow in relevance order.
  • A search inside a category, with or without its subcategories, is respected.
  • A search returns at most 1,000 products.

The live search of a theme that asks OpenCart for products by name gets Search Pro's ranking in the same way.

If the search index cannot answer for any reason, OpenCart's own search answers that request, so the page never fails because of Search Pro.

How results are ranked

  1. Words are understood, not only compared. Capital letters, accents and markup are ignored. The common small words of each language are left out, and plurals and gender meet: "white trainers" and "white trainer" find the same products. Numbers and product codes are never altered.
  2. Products with more of the words come first. A product that has every word typed is shown before one that has only some. In searches of three or more words, products that match too few of them are left out.
  3. Where the word is found matters. In this order: product codes and model, name, manufacturer, then categories, attributes and tags, then options, then the description.
  4. Synonyms count. Every word of a group of synonyms finds the others.
  5. Spelling is corrected only when needed. When a word matches nothing, Search Pro looks for words one letter away (two letters away for words of eight letters or more).
  6. The kind of product comes first. When no product has every word, products of the kind named by one of your categories come first: "shoe black" in a shop with no black shoes shows the shoes before other black products.
  7. What the AI found counts too. Colours, materials, shapes, styles, uses and other names found by the AI are searched like the rest of the product. See AI catalogue.

Searching by code

A visitor or a member of your staff can type a model, SKU, UPC, EAN, JAN, ISBN or MPN. Codes are indexed whole and by their parts, so part of a reference also finds the product.

Still need help?

Open a support ticket from your account and our team will look at your store with you.