<?php /** * @version SVN: <svn_id> * @package Quick2cart * @author Techjoomla <*****@*****.**> * @copyright Copyright (c) 2009-2015 TechJoomla. All rights reserved. * @license GNU General Public License version 2 or later. */ // no direct access defined('_JEXEC') or die; JHtml::_('behavior.modal'); require_once JPATH_SITE . '/plugins/tjshipping/qtc_default_zoneshipping/qtc_default_zoneshipping/qtczoneShipHelper.php'; $qtczoneShipHelper = new qtczoneShipHelper(); $comquick2cartHelper = new comquick2cartHelper(); $productHelper = new productHelper(); $zoneHelper = new zoneHelper(); $qtcshiphelper = new qtcshiphelper(); $taxHelper = new taxHelper(); $mainframe = JFactory::getApplication(); $jinput = $mainframe->input; $extension_id = $jinput->get('extension_id'); $methodId = $jinput->get('methodId', 0); $shipMethDetail = $qtcshiphelper->getShipMethDetail($methodId); $itemid = $comquick2cartHelper->getitemid('index.php?option=com_quick2cart&view=vendor&layout=cp'); if (!empty($methodId)) { $status = $comquick2cartHelper->store_authorize('', $shipMethDetail['store_id']); if (!$status) { $zoneHelper->showUnauthorizedMsg(); return false; }
/** * For internal use. Handle view related actions. * * @param object $jinput Joomla's jinput Object. * * @since 2.2 * @return URL param that have to add by component */ function _qtcLoadViewData($plugLayout = 'default', $jinput) { $qtczoneShipHelper = new qtczoneShipHelper(); // $viewhandler = '_qtcLoadViewDataFor' . $plugLayout; $data = array(); switch ($plugLayout) { case 'createshipmeth': $data = $qtczoneShipHelper->loadViewDataForCreateshipmeth($jinput); break; case 'setrates': $data = $qtczoneShipHelper->loadViewDataForSetratesView($jinput); break; case 'editrate': $data = $qtczoneShipHelper->loadViewDataForEditrate($jinput); break; case 'default': $data = $qtczoneShipHelper->ViewDataForShipmethListView($jinput); break; } return $data; //$aretirnUrlPramStr = $qtczoneShipHelper->$viewhandler($jinput); }
/** * While placing the order, this method validates shipping charges so that if any one changes the shipping charges from Hidden fields will not affect. * * @param object $vars gives shipping method id, unqiue plugin shecific -rate id (which point to price related table row), shipping cost, etc. * * @since 1.0 * @return Shipping method charges. */ function TjShip_validateShipCharges($vars) { $qtczoneShipHelper = new qtczoneShipHelper(); return $qtczoneShipHelper->qtcValidateShipCharges($vars); }
* @version SVN: <svn_id> * @package Quick2cart * @author Techjoomla <*****@*****.**> * @copyright Copyright (c) 2009-2015 TechJoomla. All rights reserved. * @license GNU General Public License version 2 or later. */ // no direct access defined('_JEXEC') or die; jimport('joomla.form.formvalidator'); jimport('joomla.html.pane'); JHtml::_('behavior.formvalidation'); JHtml::_('behavior.tooltip'); JHtmlBehavior::framework(); jimport('joomla.html.parameter'); $comquick2cartHelper = new comquick2cartHelper(); $qtczoneShipHelper = new qtczoneShipHelper(); $path = JPATH_SITE . '/components/com_quick2cart/helpers/storeHelper.php'; if (!class_exists('storeHelper')) { //require_once $path; JLoader::register('storeHelper', $path); JLoader::load('storeHelper'); } $zoneHelper = new zoneHelper(); $mainframe = JFactory::getApplication(); $jinput = $mainframe->input; $extension_id = $jinput->get('extension_id', 0); ?> <script type="text/javascript"> function myValidate(f) {
<?php /** * @version SVN: <svn_id> * @package Quick2cart * @author Techjoomla <*****@*****.**> * @copyright Copyright (c) 2009-2015 TechJoomla. All rights reserved. * @license GNU General Public License version 2 or later. */ // no direct access defined('_JEXEC') or die; $qtczoneShipHelper = new qtczoneShipHelper(); $comquick2cartHelper = new comquick2cartHelper(); $taxHelper = new taxHelper(); $mainframe = JFactory::getApplication(); $jinput = $mainframe->input; $extension_id = $jinput->get('extension_id'); $itemid = $comquick2cartHelper->getitemid('index.php?option=com_quick2cart&view=vendor&layout=cp'); ?> <script type="text/javascript"> function qtcShipSubmitAction(action) { var form = document.qtcshipform; if (action=='publish' || action=='unpublish' || action=='delete') { if (document.qtcshipform.boxchecked.value==0){ alert("<?php echo JText::_('QTC_MAKE_SEL'); ?> ");