public function store($data) { $order_functions = new order_functions(); $plg_manufacturer = $order_functions->getparameters('plg_manucaturer_excluding_category'); if (count($plg_manufacturer) > 0 && $plg_manufacturer[0]->enabled) { $data['excluding_category_list'] = @implode(',', $data['excluding_category_list']); } $row =& $this->getTable(); if ($data['manufacturer_id'] == 0) { $data['ordering'] = $this->MaxOrdering(); } if (!$row->bind($data)) { $this->setError($this->_db->getErrorMsg()); return false; } if (count($plg_manufacturer) > 0 && $plg_manufacturer[0]->enabled) { if (!$row->excluding_category_list) { $row->excluding_category_list = ''; } } if (!$row->store()) { $this->setError($this->_db->getErrorMsg()); return false; } return $row; }
public function getmanufacturercategory($mid, $tblobj) { $and = ""; $order_functions = new order_functions(); $plg_manufacturer = $order_functions->getparameters('plg_manucaturer_excluding_category'); if (count($plg_manufacturer) > 0 && $plg_manufacturer[0]->enabled && $tblobj->excluding_category_list != '') { $excluding_category_list = explode(',', $tblobj->excluding_category_list); JArrayHelper::toInteger($excluding_category_list); $excluding_category_list = implode(',', $excluding_category_list); $and = "AND c.category_id NOT IN (" . $excluding_category_list . ") "; } $query = "SELECT DISTINCT(c.category_id), c.category_name,c.category_short_description,c.category_description " . "FROM " . $this->_table_prefix . "product AS p " . "LEFT JOIN " . $this->_table_prefix . "product_category_xref AS pc ON p.product_id=pc.product_id " . "LEFT JOIN " . $this->_table_prefix . "category AS c ON pc.category_id=c.category_id " . "WHERE p.published = 1 " . "AND p.manufacturer_id = " . (int) $mid . " " . "AND p.expired = 0 " . "AND p.product_parent_id = 0 " . $and; $this->_db->setQuery($query); return $this->_db->loadObjectlist(); }
$user = JFactory::getUser(); $session = JFactory::getSession(); $user_id = $user->id; // get redshop helper $Itemid = $redhelper->getCheckoutItemid(); if ($Itemid == 0) { $Itemid = JRequest::getVar('Itemid'); } $option = JRequest::getVar('option'); $model = $this->getModel('checkout'); $ccinfo = JRequest::getVar('ccinfo'); /*$paymentinfo = $order_functions->getPaymentMethodInfo($this->payment_method_id); $paymentinfo = $paymentinfo[0]; */ //$cart = $this->cart; $getparameters = $order_functions->getparameters($request['plugin']); $order = $order_functions->getOrderDetails($request['order_id']); $paymentinfo = $getparameters[0]; $paymentparams = new JRegistry($paymentinfo->params); $is_creditcard = $paymentparams->get('is_creditcard', ''); $payment_oprand = $paymentparams->get('payment_oprand', ''); $payment_discount_is_percent = $paymentparams->get('payment_discount_is_percent', ''); $payment_price = $paymentparams->get('payment_price', ''); $accepted_credict_card = $paymentparams->get("accepted_credict_card"); $paymentinfo = new stdclass(); $paymentinfo->payment_price = $payment_price; $paymentinfo->is_creditcard = $is_creditcard; $paymentinfo->payment_oprand = $payment_oprand; $paymentinfo->payment_discount_is_percent = $payment_discount_is_percent; $paymentinfo->accepted_credict_card = $accepted_credict_card; $order_shipping_rate = $cart['shipping'];
* * @copyright Copyright (C) 2005 - 2013 redCOMPONENT.com. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE */ defined('_JEXEC') or die; include_once JPATH_COMPONENT . '/helpers/helper.php'; include_once JPATH_COMPONENT . '/helpers/extra_field.php'; JHTML::_('behavior.tooltip'); JHTMLBehavior::modal(); $url = JURI::base(); $user = JFactory::getUser(); $session = JFactory::getSession(); $redhelper = new redhelper(); $userhelper = new rsUserhelper(); $order_functions = new order_functions(); $telesearch = $order_functions->getparameters('rs_telesearch'); $Itemid = $redhelper->getCheckoutItemid(); $auth = $session->get('auth'); $l = JRequest::getInt('l', 1); $jinput = JFactory::getApplication()->input; /* * REGISTER_METHOD * 0 With account creation * 1 Without account creation * 2 Optional (create an account if you like or dont) * 3 Silent account creation * * */ $post = $jinput->getArray($_POST); $login_template_desc = '<table border="0" cellspacing="3" cellpadding="3" width="100%"><tbody><tr><td><label>{rs_username_lbl}:</label></td><td>{rs_username}</td><td><label>{rs_password_lbl}:</label></td><td>{rs_password}</td><td>{rs_login_button}</td></tr><tr><td colspan="2">{forget_password_link}</td></tr></tbody></table>'; ?>
<?php /** * @package RedSHOP.Backend * @subpackage Template * * @copyright Copyright (C) 2005 - 2013 redCOMPONENT.com. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE */ defined('_JEXEC') or die; JHTML::_('behavior.tooltip'); jimport('joomla.html.pane'); JHTMLBehavior::modal(); $editor = JFactory::getEditor(); $order_functions = new order_functions(); $plg_manufacturer = $order_functions->getparameters('plg_manucaturer_excluding_category'); ?> <script language="javascript" type="text/javascript"> Joomla.submitbutton = function (pressbutton) { submitbutton(pressbutton); } submitbutton = function (pressbutton) { var form = document.adminForm; if (pressbutton == 'cancel') { submitform(pressbutton); return; } if (form.manufacturer_name.value == "") {