R
R
Roman Goldman2022-02-20 17:35:56
1C-Bitrix
Roman Goldman, 2022-02-20 17:35:56

Bitrix, why does the smart filter with currencies not work?

Hello. There is a site on the Bitrix version Small business. Prices on the site in two currencies (rubles and euros). Prices on the site are shown only in rubles (base price). When the checkbox "show prices in one currency" is checked in the smart filter, products are not displayed.

62124be32d513478603824.png

Although the minimum and maximum prices are displayed correctly (in converted form).

62124d94a14e7347999661.png

If you do not check the box, then the filter works, but the prices of the filter slider, of course, are not converted into rubles.

621251855b952001093276.png

What could be the problem and how to solve it? Or is it a jamb of Bitrix and will have to put crutches? Recreating the faceted index does not help. Tried these solutions ( https://dev.1c-bitrix.ru/community/forums/messages... ) but they didn't work for me..

Here is my catalog.smart.filter component:

$APPLICATION->IncludeComponent(
  "bitrix:catalog.smart.filter",
  "",
  Array(
    "CACHE_GROUPS" => "Y",
    "CACHE_TIME" => "36000000",
    "CACHE_TYPE" => "A",
    "CONVERT_CURRENCY" => "Y",
    "CURRENCY_ID" => "RUB",
    "DISPLAY_ELEMENT_COUNT" => "Y",
    "FILTER_NAME" => "arrFilter",
    "FILTER_VIEW_MODE" => "vertical",
    "HIDE_NOT_AVAILABLE" => "N",
    "IBLOCK_ID" => "7",
    "IBLOCK_TYPE" => "catalog",
    "PAGER_PARAMS_NAME" => "arrPager",
    "POPUP_POSITION" => "left",
    "PREFILTER_NAME" => "smartPreFilter",
    "PRICE_CODE" => array(
      0 => "BASE",
    ),
    "SAVE_IN_SESSION" => "N",
    "SECTION_CODE" => "",
    "SECTION_DESCRIPTION" => "-",
    "SECTION_ID" => "",
    "SECTION_TITLE" => "-",
    "SEF_MODE" => "N",
    "TEMPLATE_THEME" => "wood",
    "XML_EXPORT" => "N"
  )
);


Currency settings:

62125036be3e9164714317.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Roman Goldman, 2022-02-24
@romangoldman

deleting the faceted index manually and recreating it partially solved the problem, now the products are displayed

Bitrix\Iblock\PropertyIndex\Manager::DeleteIndex($iblockId);
Bitrix\Iblock\PropertyIndex\Manager::markAsInvalid($iblockId);

but the number of products of the filter result still does not work... It shows 0 products, but when you click to show, one product is displayed
, moreover, it does not work correctly if the price has a penny

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question