Your IP : 216.73.216.11


Current Path : /home/digilove/public_html/components/com_marketplace/views/mypayments/
Upload File :
Current File : /home/digilove/public_html/components/com_marketplace/views/mypayments/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('VmConfig')) {
    include JPATH_SITE.'/administrator/components/com_virtuemart/helpers/config.php';
}
if (!class_exists('CurrencyDisplay')) {
    include JPATH_SITE.'/administrator/components/com_virtuemart/helpers/currencydisplay.php';
}
VmConfig::loadConfig(); 
$lang=VmConfig::get('vmlang', 1);
if (!class_exists('MarketplaceHelper')) {
    include JPATH_ADMINISTRATOR.'/components/com_marketplace/helpers/marketplace.php';
}
/**
 * MarketplaceViewMypayments 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 MarketplaceViewMypayments extends JViewLegacy
{
    /**
     * This is display function
     *
     * @param [type] $tpl var
     * 
     * @return void
     */
    public function display($tpl = null)
    {
        $this->model=$this->getModel();
        $db = JFactory::getDBO();
        $userdetails = JFactory::getUser();
        if ($userdetails->id>0) {
            if (MarketplaceHelper::checkSeller($userdetails->id)) {
                parent::display();
            } else {
                JFactory::getApplication()->enqueueMessage(
                    JText::_("NOT_LOGIN_WITH_SELLER_ACCOUNT"),
                    'error'
                );
            }
        } else {
            JFactory::getApplication()->enqueueMessage(
                JText::_("PLZ_LOG_SEE_PAY_HISTORY"),
                'error'
            );
        }
    }
}