I develop a small custom feature where i load images with ajax, my question is, how can i load hikashop framework and image tools in my external file?

I tried directly to load file from /com_hikashop/hikashop.php, but i this don't work.

  • You first need to import the Joomla API. Without this, the Hikashop framework won't work
    – Lodder
    Feb 12, 2015 at 11:01
  • I loaded already joomla api, in this file i have already i $db request and this work as well. :)
    – jExchange
    Feb 12, 2015 at 11:02

1 Answer 1


You can initialize hikashop in this way:

    if (!defined('DS'))
        define('DS', DIRECTORY_SEPARATOR);

    include_once rtrim(JPATH_ADMINISTRATOR, DS) . DS . 'components' . DS . 'com_hikashop' . DS . 'helpers' . DS . 'helper.php';

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.