public function delete() { $db = JFactory::getDBO(); $query = "DELETE FROM " . $db->quoteName('#__jeproshop_tax_rule') . " WHERE " . $db->quoteName('tax_rules_group_id') . " = " . $this->tax_rules_group_id; $db->setQuery($query); $res = $db->query(); return parent::deleste() && $res; }