<?php

// no direct access
defined('_JEXEC') or die('Restricted access');
require_once dirname(__FILE__) . DS . 'helper.php';
$rokecwidPath = JPATH_SITE . DS . 'components' . DS . 'com_rokecwid' . DS . 'helpers';
if (!file_exists($rokecwidPath . DS . 'ecwid_catalog.php') || !file_exists($rokecwidPath . DS . 'ecwid_product_api.php')) {
    print "Need rokecwid component api files (ecwid_catalog.php, ecwid_product_api.php)\n    for this module";
} else {
    modEcwidSimilarProducts::init();
    modEcwidSimilarProducts::addCustomHeaders();
    $modulePath = modEcwidSimilarProducts::$path;
    $basePath = JURI::base();
    $storeId = modEcwidSimilarProducts::$storeId;
    require JModuleHelper::getLayoutPath('mod_ecwid_similarproducts');
}