/** * constructor */ function __construct() { parent::__construct(); $this->set('suffix', 'manufacturers'); $this->registerTask('manufacturer_enabled.enable', 'boolean'); $this->registerTask('manufacturer_enabled.disable', 'boolean'); }
/** * constructor */ function __construct() { parent::__construct(); $this->set('suffix', 'groups'); $this->registerTask('selected_enable', 'selected_switch'); $this->registerTask('selected_disable', 'selected_switch'); }
/** * constructor */ function __construct() { parent::__construct(); $app = JFactory::getApplication(); $app->redirect("index.php?option=com_citruscart&view=products"); return; }
/** * constructor */ function __construct() { parent::__construct(); $this->set('suffix', 'countries'); $this->registerTask('country_enabled.enable', 'boolean'); $this->registerTask('country_enabled.disable', 'boolean'); }
/** * constructor */ function __construct() { parent::__construct(); $this->set('suffix', 'productcomments'); $this->registerTask('productcomment_enabled.enable', 'boolean'); $this->registerTask('productcomment_enabled.disable', 'boolean'); }
/** * constructor */ function __construct() { parent::__construct(); $this->registerTask('enabled.enable', 'boolean'); $this->registerTask('enabled.disable', 'boolean'); $this->set('suffix', 'shipping'); }
/** * constructor */ function __construct() { parent::__construct(); $this->set('suffix', 'pos'); $this->registerTask('flag_billing', 'flag'); $this->registerTask('flag_shipping', 'flag'); $this->registerTask('flag_deleted', 'flag'); $this->registerTask('deleterequests', 'deleteRequests'); }
/** * constructor */ function __construct() { parent::__construct(); $this->set('suffix', 'eavattributes'); $this->registerTask('enabled.enable', 'boolean'); $this->registerTask('enabled.disable', 'boolean'); $this->registerTask('selected_enable', 'selected_switch'); $this->registerTask('selected_disable', 'selected_switch'); }
/** * constructor */ function __construct() { parent::__construct(); if (!Citruscart::getInstance()->get('enable_product_compare', '1')) { JFactory::getApplication()->redirect(JRoute::_('index.php?option=com_citruscart&view=products'), JText::_('COM_CITRUSCART_PRODUCT_COMPARE_DISABLED')); return; } $this->set('suffix', 'productcompare'); }
/** * constructor */ function __construct() { parent::__construct(); $this->set('suffix', 'shippingmethods'); $this->registerTask('shipping_method_enabled.enable', 'boolean'); $this->registerTask('shipping_method_enabled.disable', 'boolean'); $this->registerTask('selected_enable', 'selected_switch'); $this->registerTask('selected_disable', 'selected_switch'); }
/** * constructor */ function __construct() { parent::__construct(); $this->set('suffix', 'carts'); $cart_helper = CitruscartHelperBase::getInstance('Carts'); $items = $cart_helper->getProductsInfo(); // create the order object JTable::addIncludePath(JPATH_ADMINISTRATOR . '/components/com_citruscart/tables'); $this->_order = JTable::getInstance('Orders', 'CitruscartTable'); }
/** * constructor */ function __construct() { parent::__construct(); $this->set('suffix', 'subscriptions'); $this->registerTask('subscription_enabled.enable', 'boolean'); $this->registerTask('subscription_enabled.disable', 'boolean'); $this->registerTask('lifetime_enabled.enable', 'boolean'); $this->registerTask('lifetime_enabled.disable', 'boolean'); $this->registerTask('update_subscription', 'update'); }
/** * constructor */ function __construct() { parent::__construct(); $this->set('suffix', 'categories'); $this->registerTask('category_enabled.enable', 'boolean'); $this->registerTask('category_enabled.disable', 'boolean'); $this->registerTask('selected_enable', 'selected_switch'); $this->registerTask('selected_disable', 'selected_switch'); $this->registerTask('saveprev', 'save'); $this->registerTask('savenext', 'save'); }
/** * constructor */ function __construct() { if (empty(JFactory::getUser()->id)) { $url = JRoute::_("index.php?option=com_citruscart&view=dashboard"); Citruscart::load("CitruscartHelperUser", 'helpers.user'); $redirect = JRoute::_(CitruscartHelperUser::getUserLoginUrl($url), false); JFactory::getApplication()->redirect($redirect); return; } parent::__construct(); $this->set('suffix', 'dashboard'); }
/** * constructor */ function __construct() { parent::__construct(); $this->set('suffix', 'products'); $this->registerTask('product_enabled.enable', 'boolean'); $this->registerTask('product_enabled.disable', 'boolean'); $this->registerTask('selected_enable', 'selected_switch'); $this->registerTask('selected_disable', 'selected_switch'); $this->registerTask('saveprev', 'save'); $this->registerTask('savenext', 'save'); $this->registerTask('prev', 'jump'); $this->registerTask('next', 'jump'); }
/** * constructor */ function __construct() { if (empty(JFactory::getUser()->id)) { $url = JRoute::_("index.php?option=com_citruscart&view=addresses"); Citruscart::load("CitruscartHelperUser", 'helpers.user'); $redirect = JRoute::_(CitruscartHelperUser::getUserLoginUrl($url), false); JFactory::getApplication()->redirect($redirect); return; } parent::__construct(); $this->set('suffix', 'addresses'); $this->registerTask('flag_billing', 'flag'); $this->registerTask('flag_shipping', 'flag'); $this->registerTask('flag_deleted', 'flag'); }
/** * constructor */ function __construct() { parent::__construct(); $this->set('suffix', 'wishlists'); $user = JFactory::getUser(); if (empty($user->id)) { // redirect to login Citruscart::load("CitruscartHelperRoute", 'helpers.route'); $router = new CitruscartHelperRoute(); $url = JRoute::_("index.php?option=com_citruscart&view=wishlists&Itemid=" . $router->findItemid(array('view' => 'wishlists')), false); Citruscart::load("CitruscartHelperUser", 'helpers.user'); $redirect = JRoute::_(CitruscartHelperUser::getUserLoginUrl($url), false); JFactory::getApplication()->redirect($redirect); return; } }
/** * constructor */ function __construct() { if (empty(JFactory::getUser()->id)) { $url = JRoute::_("index.php?option=com_citruscart&view=orders"); Citruscart::load("CitruscartHelperUser", 'helpers.user'); $redirect = JRoute::_(CitruscartHelperUser::getUserLoginUrl($url), false); JFactory::getApplication()->redirect($redirect); return; } parent::__construct(); $this->set('suffix', 'subscriptions'); $this->registerTask('subscription_enabled.enable', 'boolean'); $this->registerTask('subscription_enabled.disable', 'boolean'); $this->registerTask('lifetime_enabled.enable', 'boolean'); $this->registerTask('lifetime_enabled.disable', 'boolean'); $this->registerTask('update_subscription', 'update'); }
/** * constructor */ function __construct() { parent::__construct(); $this->set('suffix', 'orders'); $this->registerTask('edit', 'view'); $this->registerTask('prev', 'jump'); $this->registerTask('next', 'jump'); $this->registerTask('print', 'view'); $this->registerTask('new', 'selectUser'); $this->registerTask('add', 'selectUser'); $this->registerTask('update_status', 'updateStatus'); $this->registerTask('resend_email', 'resendEmail'); // create the order object JTable::addIncludePath(JPATH_ADMINISTRATOR . '/components/com_citruscart/tables'); $this->_order = JTable::getInstance('Orders', 'CitruscartTable'); $this->initial_order_state = Citruscart::getInstance()->get('pending_order_state', '1'); //pending }
/** * constructor */ function __construct() { parent::__construct(); $this->set('suffix', 'addresses'); }
/** * constructor */ function __construct() { parent::__construct(); $this->set('suffix', 'products'); $this->itemid = JRequest::getInt('Itemid'); }
/** * constructor */ function __construct() { parent::__construct(); $this->set('suffix', 'shippingrates'); }
/** * constructor */ function __construct() { parent::__construct(); $this->set('suffix', 'tools'); }
/** * constructor */ function __construct() { parent::__construct(); $this->set('suffix', 'productattributes'); }
/** * constructor */ function __construct() { $app = JFactory::getApplication(); $db = JFactory::getDbo(); parent::__construct(); if (!$this->defines->get('shop_enabled', '1')) { $app->redirect(JRoute::_('index.php?option=com_citruscart&view=products'), JText::_('COM_CITRUSCART_CHECKOUT_DISABLED')); return; } // get the items and add them to the order Citruscart::load("CitruscartHelperBase", 'helpers._base'); $cart_helper = CitruscartHelperBase::getInstance('Carts'); $items = $cart_helper->getProductsInfo(); $task = $app->input->getString('task'); if (empty($items) && $task != 'confirmPayment' && $task != 'poscheckout') { $app->redirect(JRoute::_('index.php?option=com_citruscart&view=products'), JText::_('COM_CITRUSCART_YOUR_CART_IS_EMPTY')); return; } if ($this->defines->get('one_page_checkout', '0')) { $this->onepage_checkout = true; $this->one_page_checkout_layout = $this->defines->get('one_page_checkout_layout', 'standard'); } $uri = JFactory::getURI(); $view = $app->input->getString('view'); // For now, make this redirect only when the Standard layout is chosen. Remove this when the new OPC MVC handles all layouts // also, do not make this redirect, if POS checkout is in work if ($this->onepage_checkout && $this->one_page_checkout_layout == 'standard' && $view != 'opc' && $task != 'poscheckout') { $method = $app->input->getMethod(); if ($method == 'POST') { // Don't redirect if this is POST } else { $itemid = $this->router->findItemid(array('view' => 'opc')); if (empty($itemid)) { $itemid = $this->router->findItemid(array('view' => 'checkout')); if (empty($itemid)) { $itemid = $app->input->getInt('Itemid'); } } $app->redirect(JRoute::_("index.php?option=com_citruscart&view=opc&Itemid=" . $itemid)); return; } } if ($this->defines->get('force_ssl_checkout') && $uri->isSSL() == false) { $post = $app->input->getArray($_POST); if (is_array($post) && !empty($post)) { // Don't redirect if this is POST } else { $uri->setScheme('https'); JFactory::getApplication()->redirect($uri->toString()); return; } } $this->set('suffix', 'checkout'); // create the order object JTable::addIncludePath(JPATH_ADMINISTRATOR . '/components/com_citruscart/tables'); //$this->_order = JTable::getInstance('Orders', 'CitruscartTable'); $this->_order = new CitruscartTableOrders($db); // set userid if (!$this->_order->user_id && !$this->user->guest) { $this->_order->user_id = $this->user->id; } $this->defaultShippingMethod = $this->defines->get('defaultShippingMethod', '2'); $this->initial_order_state = $this->defines->get('initial_order_state', '15'); // Default Steps $this->steps = array('COM_CITRUSCART_STEP_SELECTSHIPPINGMETHOD', 'COM_CITRUSCART_STEP_SELECTPAYMENTMETHOD', 'COM_CITRUSCART_STEP_REVIEWORDER', 'COM_CITRUSCART_STEP_CHECKOUTRESULTS'); $this->current_step = 0; JModelLegacy::addIncludePath(JPATH_ADMINISTRATOR . '/components/com_citruscart/models'); $countries_model = JModelLegacy::getInstance('Countries', 'CitruscartModel'); $this->default_country = $countries_model->getDefault(); $this->default_country_id = $this->default_country->country_id; }
/** * constructor */ function __construct() { parent::__construct(); $this->set('suffix', 'taxclasses'); }
/** * constructor */ function __construct() { parent::__construct(); $this->set('suffix', 'zonerelations'); }
/** * constructor */ function __construct() { parent::__construct(); $this->set('suffix', 'elementuser'); }
/** * constructor */ function __construct() { parent::__construct(); $this->set('suffix', 'productprices'); }
/** * constructor */ function __construct() { parent::__construct(); $this->set('suffix', 'currency'); }