<?php

// no direct access
defined('_JEXEC') or die('Restricted access');
require_once dirname(__FILE__) . '/helper.php';
// check for existing rockecwid component (need for shop settings)
$rokecwidPath = JPATH_SITE . '/components/com_rokecwid/helpers';
if (!file_exists($rokecwidPath . '/ecwid_catalog.php') || !file_exists($rokecwidPath . '/ecwid_product_api.php')) {
    print "Need Rokecwid component for this module";
} else {
    $bootstrap = new Ecwidgateway_Bootstrap();
    $mProduct = new EcwidgatewayModelProducts();
    $product = $mProduct->getProductOfMonth();
    $seasonProduct = $product->name;
    modEcwidCustomSearch::init();
    require JModuleHelper::getLayoutPath('mod_ecwid_customsearch');
}