| Current Path : /home/digilove/public_html/components/com_marketplace/views/category/ |
| Current File : /home/digilove/public_html/components/com_marketplace/views/category/view.html.php |
<?php
/**
* Marketplace - Component Marketplace
* ******************************************************************
*
* PHP version 7.0
*
* @category Component
* @package Joomla
* @author WebKul software private limited <support@webkul.com>
* @copyright 2010 WebKul software private limited
* @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
* @version GIT:5.2
* @filesource http://store.webkul.com
* @link Technical Support: webkul.uvdesk.com
* ******************************************************************
*/
// no direct access
defined('_JEXEC') or die('Restricted access');
jimport('joomla.application.component.view');
if (!class_exists('MarketplaceHelper')) {
include JPATH_ADMINISTRATOR."components/com_marketplace/helpers.marketplace.php";
}
/**
* MarketplaceViewCategory class
*
* @category Component
* @package Joomla
* @author WebKul software private limited <support@webkul.com>
* @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
* @link Technical Support: webkul.uvdesk.com
*/
class MarketplaceViewCategory extends JViewLegacy
{
/**
* Display function
*
* @param [type] $tpl var
*
* @return void
*/
function display($tpl = null)
{
global $option;
$data = $this->get('Data');
$this->assignRef('data', $data);
$jinput = JFactory::getApplication()->input;
$seller_id=$jinput->get('seller_id', 0, 'INT');
$categoryId=$jinput->get('category_id', 0, 'INT');
$isseller=MarketplaceHelper::checkSeller($seller_id);
$model=$this->getModel();
if (isset($isseller)) {
if ($categoryId!=0 && is_numeric($categoryId)) {
parent::display($tpl);
} else {
$app=JFactory::getApplication();
$app->enqueueMessage(JText::_('INCORRECT_CATEGORY_ID'), 'error');
}
} else {
$app=JFactory::getApplication();
$app->enqueueMessage(JText::_('NO_SELLER_ID'), 'error');
}
}
}