1

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 '15 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 '15 at 11:02
2

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, privacy policy and cookie policy

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