↑↓ selectEnter openEsc close

    1. Elbuz

    How to show prices and currency in smart search

    2 min readUpdated

    Elbuz smart search shows the same price in results as your site: from the right catalog field, with a sale or old price and the discount percentage, with your currency sign.

    When you need this:

    • The site uses a price field other than the catalog's main price — “Price source field” takes the right one.
    • A product is on sale — search shows the sale price, the regular one crossed out and the discount in percent.
    • Prices with cents are annoying — rounding to whole numbers removes them.
    • The store doesn't sell in hryvnias — set your own currency sign.

    Where to start: the “Prices” tab → “Price source field”.

    What you can set on the “Prices” tab

    The “Prices” tab: the price source field, the RRP, sale and old price checkboxes, rounding and currency
    1Price source
    2Rounding
    3RRP instead of the price
    4Sale and discount
    5Currency sign
    1. A catalog field; if you change it, rebuild the index.
    2. Always up, to a whole number.
    3. A filled-in RRP is shown instead of the price.
    4. The sale price, the crossed-out regular price and the discount percentage.
    5. A sign before or after the price; prices aren't converted.

    Where search takes the price from

    “Price source field” is the product price field that gets into the search index as the selling price. The list includes the catalog's price fields except cost price, delivery cost, old price and the RRP profit fields.

    • By default, it's the product's main price.
    • If you changed the field, click “Create search index” on the “Setup” tab: the price is taken when the index is built, and until the rebuild search shows the previous one.
    • Search also filters and sorts by price using the same field.

    When the shopper sees the sale price, old price and RRP

    Three checkboxes work in order when a product is shown. All are on by default.

    1. “Show RRP” — if the product has an RRP, it's shown instead of the price from the source field. All further comparisons use it.
    2. “Show sale price” — if there's a sale price and it's lower than the price, the shopper sees the sale price, the regular price crossed out and the discount percentage.
    3. “Show old price” — if the old price is higher than the price, the shopper sees it crossed out and the discount percentage calculated from the old price.

    For out-of-stock products, the crossed-out price and the percentage aren't shown. The percentage is calculated from the crossed-out price to the price the shopper sees and rounded to a whole number: a price of 900 with an old price of 1,000 gives −10%, a price of 850 gives −15%. When a product has both a sale price and an old price, the sale price is shown, the old one is crossed out, and the percentage is from the old price to the sale price.

    If you turn a checkbox off, search stops showing that price from the next query; the index isn't rebuilt.

    How to round the price

    CheckboxWhat it doesPrice 1 234,40
    nothing selectedprice without the fractional part, standard rounding1 234
    Round prices (to whole number)always rounds up, to the next whole number1 235
    Show decimalsshows cents — two digits after the decimal comma1 234,40

    Thousands are separated by a space. Rounding changes only the display: the product goes into your site's cart at the site price.

    How to set the currency

    The “Currency” card has three fields: “Currency code”, “Currency symbol, left” and “Currency symbol, right”. By default the right one holds “грн” (UAH).

    • Fill in one symbol field and leave the other empty: “right” gives “1 234 грн”, “left” gives “$1 234”.
    • The “Currency code” (for example, UAH) is shown on the right if both symbol fields are empty.
    • The currency only labels the number: prices aren't converted from one currency to another. The price must already be in the right currency in the source field.

    Scenarios

    The site shows the price from a separate “Site price” field

    What to do. Select this field in “Price source field” and rebuild the index.

    What you get. Search shows, filters and sorts by the same price as the site.

    Shoppers need to see the discount

    What to do. Keep “Show sale price” and “Show old price” turned on, and fill in the sale or old price for products.

    What you get. The card shows the new price, the previous one crossed out and a percentage discount badge.

    The store sells in euros

    What to do. Replace “грн” in “Currency symbol, right” with “€”; prices in the source field must be in euros.

    What you get. Prices in search look like “1 234 €”.

    What to do when search shows the wrong price

    What you seeWhyWhat to do
    The price in search differs from the price on the sitea different source field is selected, or “Show RRP” is on and the RRP is filled inselect the site's field and rebuild the index; turn off RRP
    You changed “Price source field”, but prices are oldthe price is taken when the index is builtclick “Create search index”
    You changed the price in the catalog, but search shows the old onethe change hasn't reached the index yetsee when changes reach search
    No discount visiblethe product is out of stock; the sale price isn't lower than the regular one, or the old price isn't higher; or the checkboxes are offcheck the stock, the product's prices and the checkboxes

    FAQ

    Will search convert prices at an exchange rate?

    No. Search shows the number from the source field and labels it with your currency sign. The price in the right currency must be in the catalog.

    Which price does the “from — to” filter use?

    The price from “Price source field”, the one that got into the index.

    Why is the RRP shown instead of the price?

    “Show RRP” is on and the product has an RRP: then it replaces the price. Turn the checkbox off if you sell below the RRP.

    How do I remove cents?

    Clear “Show decimals”. To always round the price up, turn on “Round prices (to whole number)”.

    Where it is and who has access

    Menu
    Directories → Categories → the “Widget settings - Smart search” tile → the “Prices” tab
    Access right
    the “Smart product search widget” window in “Group permissions”
    Prepare
    know which price field your site uses

    Related topics

    Was this article helpful?

    Missing a feature? Tell us.

    We will add it for free if other users need it too.

    If only you need it, we will agree on it separately.

    Article contents

    Suggest an improvement

    Try Elbuz free