@kobra
Thanks for the link, but it's not what I need at the moment. I'll try to illustrate what I want to achieve:
From product listing page I send data to my_handler.php through ajax(this part works, my_handler.php receives everything). Inside this file I want to write, for example
PHP Code:
global $db;
$db->Execute("some sql code");
where $db is an instance of queryFactory. How can I initialize all zen cart stuff? I tried
PHP Code:
require_once("includes/application_top.php");
, but it worked only if my_handler.php is in the root folder .