function store(&$data) { if (!vmAccess::manager('manufacturercategories')) { vmWarn('Insufficient permissions to store manufacturer category'); return false; } return parent::store($data); }
/** * Bind the post data to the coupon table and save it * * @author RickG, Oscar van Eijk * @return mixed False if the save was unsuccessful, the coupon ID otherwise. */ function store(&$data) { // Convert selected dates to MySQL format for storing. if ($data['coupon_start_date']) { $startDate = JFactory::getDate($data['coupon_start_date']); $data['coupon_start_date'] = $startDate->toSql(); } if ($data['coupon_expiry_date']) { $expireDate = JFactory::getDate($data['coupon_expiry_date']); $data['coupon_expiry_date'] = $expireDate->toSql(); } return parent::store($data); }
/** * Bind the post data to the coupon table and save it * * @author RickG, Oscar van Eijk * @return mixed False if the save was unsuccessful, the coupon ID otherwise. */ function store(&$data) { $table = $this->getTable('coupons'); //$data = JRequest::get('post'); $table->bindChecknStore($data); // Convert selected dates to MySQL format for storing. if ($data['coupon_start_date']) { $startDate = JFactory::getDate($data['coupon_start_date']); $data['coupon_start_date'] = $startDate->toMySQL(); } if ($data['coupon_expiry_date']) { $expireDate = JFactory::getDate($data['coupon_expiry_date']); $data['coupon_expiry_date'] = $expireDate->toMySQL(); } parent::store($data); return $table->virtuemart_coupon_id; }
function store(&$data) { if (!vmAccess::manager('orderstatus')) { vmWarn('Insufficient permissions to store orderstatus'); return false; } return parent::store($data); }
function store(&$data) { if (!vmAccess::manager('country')) { vmWarn('Insufficient permissions to store state'); return false; } return parent::store($data); }
function store(&$data) { $myfields = array('basePrice', 'variantModification', 'basePriceVariant', 'basePriceWithTax', 'basePriceWithTax', 'discountedPriceWithoutTax', 'salesPrice', 'priceWithoutTax', 'salesPriceWithDiscount', 'discountAmount', 'taxAmount'); $params = array(); $params['show_prices'] = (bool) $data['show_prices']; // $param ='show_prices='.$data['show_prices']."\n"; foreach ($myfields as $fields) { $params[$fields] = (bool) $data[$fields]; $params[$fields . 'Text'] = (bool) $data[$fields . 'Text']; $params[$fields . 'Rounding'] = (int) $data[$fields . 'Rounding']; // $param .= $fields.'='.$data[$fields]."\n"; //attention there must be doublequotes // $param .= $fields.'Text='.$data[$fields.'Text']."\n"; // $param .= $fields.'Rounding='.$data[$fields.'Rounding']."\n"; } // if(!class_exists('JParameter')) require(JPATH_VM_LIBRARIES.DS.'joomla'.DS.'html'.DS.'parameter.php' ); // $jparam = new JParameter($param); $data['price_display'] = json_encode($params); return parent::store($data); }
function store(&$data) { if (!vmAccess::manager('shoppergroup.edit')) { vmWarn('Insufficient permissions to store shoppergroup'); return false; } return parent::store($data); }
function store(&$data) { $myfields = array('basePrice', 'variantModification', 'basePriceVariant', 'basePriceWithTax', 'basePriceWithTax', 'discountedPriceWithoutTax', 'salesPrice', 'priceWithoutTax', 'salesPriceWithDiscount', 'discountAmount', 'taxAmount', 'unitPrice'); $param = 'show_prices=' . $data['show_prices'] . "\n"; foreach ($myfields as $fields) { $param .= $fields . '=' . $data[$fields] . "\n"; //attention there must be doublequotes $param .= $fields . 'Text=' . $data[$fields . 'Text'] . "\n"; $param .= $fields . 'Rounding=' . $data[$fields . 'Rounding'] . "\n"; } if (!class_exists('JParameter')) { require JPATH_VM_LIBRARIES . DS . 'joomla' . DS . 'html' . DS . 'parameter.php'; } $jparam = new JParameter($param); $data['price_display'] = serialize(new JParameter($param)); return parent::store($data); }
/** * Add customer to the waiting list for specific product * * @author Seyi Awofadeju * @return insert_id if the save was successful, false otherwise. */ public function adduser($data) { JSession::checkToken() or jexit('Invalid Token, in notify customer'); return parent::store($data); }