How to learn the variables
There are situations, when it is necessary to learn the variables’ value on the defined step of script performing. Certainly, there is a built-in function fn_print_r() in CS-Cart, which resolves this task, but not completely. What should we do, if it is necessary to catch the variables’ value in the Ajax query process executing? I offer to use the function, which will write the variable value into the file.
As far as you can see, this function creates the 'ajax_result.html' file, which includes all values of received arguments. If you run the file in the browser, you will see that the displayed result has the same view as result of the fn_print_r() executing.