Whenever there are no search results found, cs-cart displays text from language variable: text_no_matching_products_found
I added some JS script (amazon ads) to this variable and it works fine. If there are no search results it displays the amazon ads. However, I would like to use the search word used in the JS. Any idea how i can achieve this? I can get this using SMARTY {$smarty.request.q}
Thanks for the response. Here's what I'm actually trying to do. The script works, but when i replace the search phrase with {$smarty.request.q} then it stops working.