Answer the question
In order to leave comments, you need to log in
How to convert CNC link to reverse non-CNC look?
Hello!
There is a task: you need to reverse - engineer the URL
of
a smart
filter
. back to a non-fluffy look
, please tell me how you can do this, maybe there is some api or ready-made examples
thanks in advance
Answer the question
In order to leave comments, you need to log in
I decided so
in my component, which is called before the smart filter, created a global variable where I passed the string of a silly type
in the component file of the smart filter on line 322, inserted a check for this global variable, and if it is not empty, then I used convertUrlToCheck() , here is a piece of code from this place , bold is my global variable
if(isset($_REQUEST["ajax"]) && $_REQUEST["ajax"] === "y")
$_CHECK = &$_REQUEST;
elseif(isset($_REQUEST["del_filter"]))
$_CHECK = array();
elseif(isset($_GET["set_filter"]))
$_CHECK = &$_GET;
elseif($arParams["SMART_FILTER_PATH"])
$_CHECK = $this->convertUrlToCheck($arParams["
elseif($arParams["SAVE_IN_SESSION"] && isset($_SESSION[$FILTER_NAME][$this->SECTION_ID]))
$_CHECK = $_SESSION[$FILTER_NAME][$this->SECTION_ID];
elseif($GLOBALS['PODBORKI']['PODBORKA_FILTER'])
$_CHECK = $this->convertUrlToCheck( $GLOBALS['PODBORKI']['PODBORKA_FILTER']);
else
$_CHECK = array();
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question