| Current Path : /home/digilove/public_html/components/com_marketplace/views/dashboard/ |
| Current File : /home/digilove/public_html/components/com_marketplace/views/dashboard/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');
/**
* MarketplaceViewDashboard 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 MarketplaceViewDashboard extends JViewLegacy
{
/**
* This is display function
*
* @param [type] $tpl var
*
* @return void
*/
public function display($tpl = null)
{
global $option;
$userdetails=JFactory::getUser();
if ($userdetails->id>0) {
$model = $this->getModel();
$rs = $model->getSellerInfo($userdetails->id);
if (count($rs)) {
$order = $this->get('Order');
$this->assignRef('order', $order);
parent::display($tpl);
} else {
JFactory::getApplication()->enqueueMessage(
JText::_("NOT_LOGIN_WITH_SELLER_ACCOUNT"),
'error'
);
}
} else {
JFactory::getApplication()->enqueueMessage(
JText::_("PLZ_LOGIN_SEE_DASHBOARD"),
'error'
);
}
}
}