Example #1
0
 function display($tpl = null)
 {
     global $option, $mainframe;
     //$limit = JRequest::getVar('limit', $mainframe->getCfg('list_limit'));
     //limitstart = JRequest::getVar('limitstart', 0);
     $model =& $this->getModel();
     /*
     if (!file_exists(JPATH_ADMINISTRATOR.DS.'components'.DS.'com_virtuemart'.DS.'classes'.DS.'ps_onepage.php'))
     {
      $model->install(true);
     }
     */
     $pms = $model->getPaymentMethods();
     $langs = $model->getLanguages();
     $lang_vars = $model->getLangVars();
     $this->assignRef('lang_vars', $lang_vars);
     // ok
     $this->assignRef('pms', $pms);
     //ok
     $this->assignRef('langs', $langs);
     //ok
     jimport('joomla.html.pagination');
     if (empty($tpl)) {
         $tpl = 'ajax';
     }
     parent::display($tpl);
 }
Example #2
0
 /**
  * Display the view
  */
 public function display($tpl = null)
 {
     $model =& $this->getModel();
     $vars = $model->getVM2en();
     $this->assignRef('vars', $vars);
     parent::display($tpl);
 }
Example #3
0
 /**
  * Display the view
  */
 public function display($tpl = null)
 {
     $model = $this->getModel();
     require_once JPATH_ADMINISTRATOR . DS . 'components' . DS . 'com_onepage' . DS . 'helpers' . DS . 'videohelp.php';
     //$config = JController::getModel('config', 'JModel');
     require_once JPATH_ADMINISTRATOR . DS . 'components' . DS . 'com_onepage' . DS . 'models' . DS . 'config.php';
     $config = new JModelConfig();
     $config->loadVmConfig();
     //var_dump($config); die();
     $this->statuses = $config->getOrderStatuses();
     $this->trackingfiles = $config->getPhpTrackingThemes();
     $this->forms = $model->getJforms($this->trackingfiles);
     $this->isEnabled = $model->isEnabled();
     $this->tracking_order = $model->isEnabled(true);
     $this->config = $model->getStatusConfig($this->statuses);
     $rand_order = JRequest::getVar('show_order_vars', false);
     $named = array();
     $this->orderVars = $model->getOrderVars($named);
     $this->named = $named;
     $this->model =& $model;
     $this->aba_enabled = $model->getAba();
     if ($rand_order) {
         $model->showOrderVars();
         JFactory::getApplication()->close();
     }
     //debug_zval_dump ($this->forms['adwordstracking']); die();
     parent::display($tpl);
 }
Example #4
0
 function display($tpl = null)
 {
     // load language:
     $model = $this->getModel();
     $model->loadVirtuemart();
     require_once JPATH_ADMINISTRATOR . DS . 'components' . DS . 'com_onepage' . DS . 'models' . DS . 'config.php';
     $config = new JModelConfig();
     $config->loadVmConfig();
     require_once JPATH_ADMINISTRATOR . DS . 'components' . DS . 'com_onepage' . DS . 'helpers' . DS . 'listfactory.php';
     $this->statuses = $config->getOrderStatuses();
     // Get data from the model
     $pagination = $this->get('Pagination');
     $items = $this->get('Data');
     $total = $this->get('Total');
     $ehelper = new OnepageTemplateHelper();
     $templates = $ehelper->getExportTemplates('ALL');
     $templates = $model->getTemplates();
     //$order_data = $model->getOrderData();
     //$ehelper = new OnepageTemplateHelper($order_id);
     $this->assignRef('ehelper', $ehelper);
     $this->assignRef('templates', $templates);
     $this->assignRef('model', $model);
     // push data into the template
     $this->assignRef('items', $items);
     $this->assignRef('total', $total);
     $this->assignRef('pagination', $pagination);
     parent::display($tpl);
 }
Example #5
0
 function display($tpl = null)
 {
     $model =& $this->getModel();
     $ehelper = new OnepageTemplateHelper();
     $this->assignRef('ehelper', $ehelper);
     $this->assignRef('templates', $templates);
     $this->assignRef('model', $model);
     parent::display($tpl);
 }
Example #6
0
 /**
  * Display the view
  */
 public function display($tpl = null)
 {
     $model = $this->getModel();
     $this->menus = $model->getMenus();
     $this->sortedmenu = $model->getMenusSorted();
     $session = JFactory::getSession();
     $res = $session->get('opcsearch', '');
     $this->results = $res;
     $this->cats = $model->getCats();
     parent::display($tpl);
 }
Example #7
0
 /**
  * Display the view
  */
 public function display($tpl = null)
 {
     $model = $this->getModel();
     //$config = JController::getModel('config', 'JModel');
     require_once JPATH_ADMINISTRATOR . DS . 'components' . DS . 'com_onepage' . DS . 'models' . DS . 'config.php';
     $config = new JModelConfig();
     $config->loadVmConfig();
     $this->data = $model->getData();
     $this->model = $model;
     $this->cats = $model->getVmCats();
     //debug_zval_dump ($this->forms['adwordstracking']); die();
     parent::display($tpl);
 }
Example #8
0
 /**
  * Display the view
  */
 public function display($tpl = null)
 {
     $model =& $this->getModel();
     $msg = $model->getPreview();
     $cssfiles = $model->getCss();
     $getColors = array();
     $model->getColors($cssfiles, $getColors);
     $colors = $model->getPrefered();
     $this->assignRef('msgs', $msg);
     $this->assignRef('templatecolors', $colors);
     $this->assignRef('cssfiles', $cssfiles);
     $this->assignRef('colors', $getColors);
     parent::display($tpl);
 }
Example #9
0
 /**
  * Display the view
  */
 public function display($tpl = null)
 {
     $model = $this->getModel();
     //$config = JController::getModel('config', 'JModel');
     require_once JPATH_ADMINISTRATOR . DS . 'components' . DS . 'com_onepage' . DS . 'models' . DS . 'config.php';
     $config = new JModelConfig();
     $config->loadVmConfig();
     $model->getGeneral($this);
     //var_dump($config); die();
     $this->avai = $model->getAvai();
     $this->model =& $model;
     $this->numprods = $model->getNumProducts();
     $this->trackingfiles = $model->getPhpExportThemes();
     $this->forms = $model->getJforms($this->trackingfiles);
     $this->shoppergroups = $model->getShopperGroups();
     $this->langs = $model->getLanguages();
     $this->isEnabled = $model->isEnabled();
     $model->checkCompression($this);
     $this->xml_export_customs = OPCconfig::getValue('xmlexport_config', 'xml_export_customs', 0, false);
     //debug_zval_dump ($this->forms['adwordstracking']); die();
     parent::display($tpl);
 }
Example #10
0
 /**
  * Display the view
  */
 public function display($tpl = null)
 {
     $model = $this->getModel();
     $this->routes = $model->getRoutes();
     parent::display($tpl);
 }
Example #11
0
 function display($tpl = null)
 {
     if (!class_exists('VmConfig')) {
         require JPATH_ADMINISTRATOR . DS . 'components' . DS . 'com_virtuemart' . DS . 'helpers' . DS . 'config.php';
     }
     VmConfig::loadConfig(true);
     if (file_exists(JPATH_SITE . DS . 'components' . DS . 'com_onepage' . DS . 'config' . DS . 'onepage.cfg.php')) {
         include JPATH_SITE . DS . 'components' . DS . 'com_onepage' . DS . 'config' . DS . 'onepage.cfg.php';
     }
     require_once JPATH_ADMINISTRATOR . DS . 'components' . DS . 'com_onepage' . DS . 'models' . DS . 'config.php';
     $model = new JModelConfig();
     //$limit = JRequest::getVar('limit', $mainframe->getCfg('list_limit'));
     //limitstart = JRequest::getVar('limitstart', 0);
     /*
     if (!file_exists(JPATH_ADMINISTRATOR.DS.'components'.DS.'com_virtuemart'.DS.'classes'.DS.'ps_onepage.php'))
     {
      $model->install(true);
     }
     */
     $model->loadVmConfig('config');
     require_once JPATH_COMPONENT . DS . 'assets' . DS . 'export_helper.php';
     $this->ehelper = new OnepageTemplateHelper();
     $this->opcexts = $model->getOPCExtensions();
     $countries = $model->getShippingCountries();
     $pms = $model->getPaymentMethods();
     $sty = $model->getClassNames();
     $default_country = $model->getDefaultC();
     $dis = $model->getDisabledOPC();
     $this->assignRef('disable_onepage', $dis);
     $model->checkLangFiles();
     $trackingfiles = $model->getPhpTrackingThemes();
     $this->assignRef('trackingfiles', $trackingfiles);
     $model->getExtLangVars();
     $langs = $model->getLanguages();
     $css = $model->retCss();
     $php = $model->retPhp();
     $sids = $model->getShippingRates();
     if (empty($sids)) {
         $sids = array();
     }
     $coref = array();
     $ulist = $model->getUserFieldsLists($coref);
     $this->assignRef('clist', $coref);
     $this->assignRef('ulist', $ulist);
     $langse = array();
     $exts = array();
     $lext = $model->listExts($exts, $langse);
     $adminxts = array();
     $langse2 = array();
     $lext2 = $model->listExtsaAdmin($adminxts, $langse2);
     $this->assignRef('exts', $exts);
     $this->assignRef('adminxts', $adminxts);
     $this->assignRef('extlangs', $langse);
     $langerr = $model->getlangerr();
     $this->assignRef('langerr', $langerr);
     //$lang_vars = $model->getLangVars();
     $templates = $model->getTemplates();
     $errors = $model->getErrMsgs();
     $statuses = $model->getOrderStatuses();
     $codes = $model->getJLanguages();
     $exthtml = $model->getExtensions();
     $groups = $model->listShopperGroups();
     $vatgroups = $model->listShopperGroupsSelect();
     $lfields = $model->listUserfields();
     //function getArticleSelector($name, $value, $required=false)
     require_once JPATH_SITE . DS . 'components' . DS . 'com_onepage' . DS . 'helpers' . DS . 'config.php';
     $this->lang_thank_youpage = OPCconfig::getValue('ty_page', 'ty_page', 0, array(0 => ''));
     $this->model =& $model;
     $this->assignRef('groups', $groups);
     $this->assignRef('vatgroups', $vatgroups);
     $this->assignRef('lfields', $lfields);
     $this->assignRef('exthtml', $exthtml);
     $this->assignRef('codes', $codes);
     $this->assignRef('statuses', $statuses);
     $this->assignRef('errors', $errors);
     $this->assignRef('templates', $templates);
     //$this->assignRef('lang_vars', $lang_vars);
     if (empty($pms)) {
         $pms = array();
     }
     $this->assignRef('pms', $pms);
     $this->assignRef('sty', $sty);
     $this->assignRef('countries', $countries);
     $this->assignRef('default_country', $default_country);
     $this->assignRef('langs', $langs);
     // ok
     $this->assignRef('css', $css);
     $this->assignRef('php', $php);
     $this->assignRef('sids', $sids);
     $model2 = $this->getModel();
     $model2->checkTable();
     // $currencies = $model->getAllCurrency($limitstart, $limit);
     // $total = $model->countRows();
     jimport('joomla.html.pagination');
     //$pageNav = new JPagination($total, $limitstart, $limit);
     //$this->assignRef('currencies', $currencies);
     //$this->assignRef('pageNav', $pageNav);
     parent::display($tpl);
 }
Example #12
0
 /**
  * Display the view
  */
 public function display($tpl = null)
 {
     $model =& $this->getModel();
     $this->form = $model->getForm();
     parent::display($tpl);
 }