Answer the question
In order to leave comments, you need to log in
Why is the smart filter outputting the property's random XML_ID in the URL?
Hello. When analyzing pages in Yandex, I noticed that there are pages with a selection from a smart filter with a similar url: /catalog/section/po_tipu_biznesa/kinoteatr/filter/price-base-to-14500/gprs_gsm-is-20a4f66c9de435b0f531c9a8104a31eba/accumul-is-818c170f54bda1b4ba apply/ But, for this url, filtering by properties with values like 20a4f66c9de435b0f531c9a8104a31e7 does not work. And, if you manually select filtering by this property, then the correct XML_ID of the property value is substituted into the url, for example, gprs_gsm-is-dop-option, and the filtering works as it should. There are no random XML_IDs in the properties, and it is not clear how the Yandex robot got to such a page. What could be the problem? Thank you.
Answer the question
In order to leave comments, you need to log in
you can replace hands with xml_id values pl. sv-in, or slightly customize the component code
public function fillItemValues(...){
switch($PROPERTY_TYPE)
{
case "L":
$enum = CIBlockPropertyEnum::GetByID($key);
if ($enum)
{
$url_id = toLower($enum["VALUE"]);
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question