Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Search the Community

Showing results for tags 'запрос к бд'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Genaral
    • Новини та оголошення
    • Пропозиції та побажання
    • Акції, подарунки, конкурси та винагороди
  • Opencart 4.x
    • Opencart 4.x: General questions
    • Opencart 4.x: Installing and updating
    • Opencart 4.x: Localization
    • Opencart 4.x: Setting and optimization
    • Opencart 4.x: Sandbox
    • Opencart 4.x: Extension search
    • Opencart 4.x: Bug Reporting
  • Opencart 3.x
    • Opencart 3.x: General questions
    • Opencart 3.x: Installing and updating
    • Opencart 3.x: Localization
    • Opencart 3.x: Setting and optimization
    • Opencart 3.x: Sandbox
    • Opencart 3.x: Extension search
    • Opencart 3.x: Bug Reporting
  • Opencart 2.x
    • Opencart 2.x: General questions
    • Opencart 2.x: Installing and updating
    • Opencart 2.x: Localization
    • Opencart 2.x: Setting and optimization
    • Opencart 2.x: Sandbox
    • Opencart 2.x: Extension search
    • Opencart 2.x / ocStore 2.x: Bug Reporting
  • Реклама и продвижение
    • SEO-питання (оптимізація та просування магазину)
    • Контекстная реклама
    • Торговые площадки
    • E-commerce tracking и бизнес аналитика
    • Разное
  • Підтримка та відповіді на запитання.
    • Загальні питання
    • Встановлення, оновлення, налаштування
    • Шаблони, дизайн та оформлення магазину
    • Модули и дополнения
    • Допомога програмістам та розробникам
    • Мобильная витрина
    • Вопросы безопасности
    • Переклад
    • Отчёты об ошибках
    • Интернет-магазины и электронная коммерция
    • Песочница
  • Услуги
    • Creation of stores
    • Дизайн, верстка и шаблоны
    • Программирование, создание модулей, изменение функциональности
    • Настройка и мелкая работа по уже существующему сайту
    • Shop engine version update
    • Store filling
    • System administration (configuring hosting, servers, software)
    • Другие услуги
  • Разное
    • Пользовательские обзоры дополнений
    • Примеры сайтов на OpenCart (ocStore)
    • Курилка
    • Предложения по улучшению

Categories

  • Templates
    • Free templates
    • Платные шаблоны
  • Filters
  • Promotions & Pricing
  • Реклама и продвижение
  • Coupons & reward points, affiliate programs
  • Blogs, News & Articles
  • Shopping Cart & Order
  • Product Options
  • Product Attributes
  • Product Combinations
  • Search
  • SEO & Optimization
  • Caching & Server Performance
  • Платіжні системи
  • Доставки
  • Editors
  • Design & Navigation
  • Banners, Slideshows & Galleries
  • Email Marketing & SMS Integration
  • Customer Support & Chat
  • Обмен данными
  • Учет в заказе
  • Compare & Wishlist
  • Социальные сети
  • Parsers
  • Модули
  • Tools & Developer Tools
  • Licenses
  • Language packages
  • Other
  • Отчеты
  • Сборки
    • ocStore
  • Services
    • Графика и дизайн
    • Маркетинг

Categories

  • Служебные документы
  • Оплата
  • Документация Opencart

Categories

  • Gereneral questions
  • Purchasing extensions
  • For developer
  • Account
  • Technical support
  • Financial department

Blogs

  • Konorws (Разработка и модификация Opencart)
  • Блог mr.Kent)
  • Прожектор Бритни Спирс
  • Layk
  • Продвижение интернет-магазина, seo оптимизация
  • Записная книжка
  • Блог RGB
  • Модули которые сделают сайт лучше
  • Блог веб-студии NeoSeo
  • Useful IT
  • Записи
  • Найденные решения проблем с Opencart
  • ocdroid blog
  • Заметки на полях...
  • Pimur
  • Серж Ткач
  • О жизни, смерти, о бизнесе и Опенкарте
  • Просто мысли от laim731
  • Маркетинг и продвижение интернет-магазина
  • Мой копирайтинг
  • SEO боксинг специального назначения
  • Get-Web Dev
  • Seok
  • Блоги sitecreator-а
  • Best practice
  • Vlad-Egorov-Blog
  • Блог spectre
  • commanddotcom
  • Внимание мошенники
  • Наблюдения обычного человека
  • Блог Rassol2
  • Блог Exploits
  • блог для натуралов
  • Настюша, тут есть темы
  • Пропитано рекламой
  • Tutorial
  • ОтВинта
  • Tg chnls
  • Блог
  • Блог sv2109
  • КАК ОРГАНИЗОВАТЬ НОВОСТНЫЕ ПОДПИСКИ НА БАЗЕ API OPENCART 3/0/2
  • VDS/VPS, серверы под Linux: установка, настройка, оптимизация
  • IT блог
  • Блог
  • Opencart SEO
  • Путёвые заметки о работе магазина NiceBike на платформе OpenCart
  • Blondi Blog
  • Полезные статьи, новости.
  • Блог владельца магазина
  • разное
  • ПРОДАЖА АКАУНТОВ-binance ВЕРИФИЦИРОВАННЫe ЧИСТЫЕ УСПЕВАЙТЕ КУПИТЬ ПО НИЗКОЙ ЦЕНЕ
  • Диспансеризация
  • wozobat
  • quasarbyte
  • Мой блог
  • Igorych
  • aaaaa
  • 👌🔊Bellsouth CUSTOMER support number 1+(8O8)678=9O64-☎phone number
  • Liudmila marketer
  • Заметки реалиста
  • ocstore на ноліках
  • Про Opencart
  • Блог про рутинні процеси в магазині на ocsote
  • Radaevich
  • Плагіни Opencart
  • Крафтовий OpenCart: Старт пригоди. Ціна створення сайту на Опенкарт

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Сайт


Skype


City:


Interests

Found 5 results

  1. Всем привет, сайт стал жутко тормозить, нашел медленный запрос Скан. рядов 4468 Получено рядов 1 Время 00:00:37 Текст запроса SELECT COUNT(DISTINCT p.product_id) AS total FROM product p LEFT JOIN product_description pd ON (p.product_id = pd.product_id) LEFT JOIN product_to_store p2s ON (p.product_id = p2s.product_id) LEFT JOIN product_to_category p2c ON (p.product_id = p2c.product_id) WHERE pd.language_id = \'1\' AND p.status = \'1\' AND p.date_available <= NOW() AND p2s.store_id = \'0\' AND (p2c.category_id = \'95\') Ищу исполнителя для оптимизации сего запроса за вознаграждение
  2. Здравствуйте, можно ли как-то соединить эти запросы таким образом, чтобы через post передавать нужные параметры и эти запрос как-то фильтровать в зависимости от клика по кнопке + или - public function updateLike($product_id) { $this->db->query("SELECT * FROM " . DB_PREFIX . "product SET like_count = (like_count - 1) WHERE product_id = '" . (int)$product_id . "'"); } public function updateLikeMinus($product_id) { $this->db->query("UPDATE " . DB_PREFIX . "product SET like_count = (like_count - 1) WHERE product_id = '" . (int)$product_id . "'"); } public function updateLikePlus($product_id) { $this->db->query("UPDATE " . DB_PREFIX . "product SET like_count = (like_count + 1) WHERE product_id = '" . (int)$product_id . "'"); }
  3. Написать скрипт (модуль) который будет запускаться по крону и копировать значения кол-ва товаров quantity из таблицы product в соседнюю таблицу product_to_multistore
  4. День добрый. Прошу помощи в составлении запроса к БД. По id категории получить seo_url этой категории. Переменная $categories содержит массив с номерами id категорий. В бд таблица url_alias, где столбцы столбцы query (где хранятся урлы вида category_id=номер) и столбец keyword (где прописан алиас).
  5. Всем привет! Нуждаюсь в Вашей помощи. Пишу дополнительный заказ товара через аккаунт, проблема в том что не обновляет таблицу БД, с opencart недавно начал разбираться, так что не судите строго. Спасибо! Controller: class ControllerAccountNewOrder extends Controller{ private $error = array(); public function index(){ if (!$this->customer->isLogged()) { $this->redirect($this->url->link('account/login', '', 'SSL')); } $this->language->load('account/new_order'); $this->document->setTitle($this->language->get('heading_title')); $this->load->model('account/neworder'); /*if (($this->request->server['REQUEST_METHOD'] == 'POST') && $this->validate()) { $this->model_account_neworder->newOrder($this->request->post); //$this->redirect($this->url->link('account/account')); } */ /* load text */ $this->data['heading_title'] = $this->language->get('heading_title'); $this->data['text_form'] = $this->language->get('text_form'); $this->data['linktopr'] = $this->language->get('linktopr'); $this->data['text_description'] = $this->language->get('text_description'); $this->data['text_color'] = $this->language->get('text_color'); $this->data['text_size'] = $this->language->get('text_size'); $this->data['text_count_product'] = $this->language->get('text_count_product'); $this->data['text_price'] = $this->language->get('text_price'); $this->data['text_sposob'] = $this->language->get('text_sposob'); $this->data['text_delivery_usa'] = $this->language->get('text_delivery_usa'); $this->data['text_hint'] = $this->language->get('text_hint'); $this->data['text_new_pochta'] = $this->language->get('text_new_pochta'); $this->data['text_btn_save'] = $this->language->get('text_btn_save'); $this->data['text_count'] = $this->language->get('text_count'); $this->data['text_comments'] = $this->language->get('text_comments'); $this->data['text_enter_comment'] = $this->language->get('text_enter_comment'); if (isset($this->error['warning'])) { $this->data['error_warning'] = $this->error['warning']; } else { $this->data['error_warning'] = ''; } $this->data['action'] = $this->url->link('account/new_order', '', 'SSL'); /* data */ if (isset($this->error['forma'])) { $this->data['error_forma'] = $this->error['forma']; } else { $this->data['error_forma'] = ''; } if (isset($this->error['linkto'])) { $this->data['error_linkto'] = $this->error['linkto']; } else { $this->data['error_linkto'] = ''; } if (isset($this->error['description'])) { $this->data['error_description'] = $this->error['description']; } else { $this->data['error_description'] = ''; } if (isset($this->error['color'])) { $this->data['error_color'] = $this->error['color']; } else { $this->data['error_color'] = ''; } if (isset($this->error['sizes'])) { $this->data['error_sizes'] = $this->error['sizes']; } else { $this->data['error_sizes'] = ''; } if (isset($this->error['counts'])) { $this->data['error_counts'] = $this->error['counts']; } else { $this->data['error_counts'] = ''; } if (isset($this->error['tcena'])) { $this->data['error_tcena'] = $this->error['tcena']; } else { $this->data['error_tcena'] = ''; } if (isset($this->request->post['forma'])) { $this->data['forma'] = $this->request->post['forma']; } elseif (isset($customer_info)) { $this->data['forma'] = $customer_info['forma']; } else { $this->data['forma'] = ''; } if (isset($this->request->post['linkto'])) { $this->data['linkto'] = $this->request->post['linkto']; } elseif (isset($customer_info)) { $this->data['linkto'] = $customer_info['linkto']; } else { $this->data['linkto'] = ''; } if (isset($this->request->post['description'])) { $this->data['description'] = $this->request->post['description']; } elseif (isset($customer_info)) { $this->data['description'] = $customer_info['description']; } else { $this->data['description'] = ''; } if (isset($this->request->post['color'])) { $this->data['color'] = $this->request->post['color']; } elseif (isset($customer_info)) { $this->data['color'] = $customer_info['color']; } else { $this->data['color'] = ''; } if (isset($this->request->post['sizes'])) { $this->data['sizes'] = $this->request->post['sizes']; } elseif (isset($customer_info)) { $this->data['sizes'] = $customer_info['sizes']; } else { $this->data['sizes'] = ''; } if (isset($this->request->post['counts'])) { $this->data['counts'] = $this->request->post['counts']; } elseif (isset($customer_info)) { $this->data['counts'] = $customer_info['counts']; } else { $this->data['counts'] = ''; } if (isset($this->request->post['tcena'])) { $this->data['tcena'] = $this->request->post['tcena']; } elseif (isset($customer_info)) { $this->data['tcena'] = $customer_info['tcena']; } else { $this->data['tcena'] = ''; } $this->data['back'] = $this->url->link('account/account', '', 'SSL'); if (file_exists(DIR_TEMPLATE . $this->config->get('config_template') . '/template/account/new_order.tpl')) { $this->template = $this->config->get('config_template') . '/template/account/new_order.tpl'; } else { $this->template = 'default/template/account/new_order.tpl'; } $this->children = array( 'common/column_left', 'common/column_right', 'common/content_top', 'common/content_bottom', 'common/footer', 'common/header' ); $this->response->setOutput($this->render()); } public function insert() { $this->load->model('account/neworder'); $this->document->setTitle($this->language->get('heading_title')); if (($this->request->server['REQUEST_METHOD'] == 'POST') && ($this->validateForm())) { $this->model_catalog_news->newOrder($this->request->post); $this->session->data['success'] = $this->language->get('text_success'); $this->redirect($this->url->link('account/new_order', 'token=' . $this->session->data['token'], 'SSL')); } $this->getForm(); } protected function validate() { if ((utf8_strlen($this->request->post['forma']) < 1) || (utf8_strlen($this->request->post['forma']) > 32)) { $this->error['forma'] = $this->language->get('error_forma'); } if ((utf8_strlen($this->request->post['linkto']) < 1) || (utf8_strlen($this->request->post['linkto']) > 32)) { $this->error['linkto'] = $this->language->get('error_linkto'); } if ((utf8_strlen($this->request->post['description']) < 1) || (utf8_strlen($this->request->post['description']) > 32)) { $this->error['description'] = $this->language->get('error_description'); } if ((utf8_strlen($this->request->post['color']) < 1) || (utf8_strlen($this->request->post['color']) > 32)) { $this->error['color'] = $this->language->get('error_color'); } if ((utf8_strlen($this->request->post['sizes']) < 1) || (utf8_strlen($this->request->post['sizes']) > 32)) { $this->error['sizes'] = $this->language->get('error_sizes'); } if ((utf8_strlen($this->request->post['counts']) < 1) || (utf8_strlen($this->request->post['counts']) > 32)) { $this->error['counts'] = $this->language->get('error_counts'); } if ((utf8_strlen($this->request->post['tcena']) < 1) || (utf8_strlen($this->request->post['tcena']) > 32)) { $this->error['tcena'] = $this->language->get('error_tcena'); } if (!$this->error) { return true; } else { return false; } } } Model class ModelAccountNewOrder extends Model{ public function newOrder($data){ $this->db->query("INSERT INTO " . DB_PREFIX . "new_order SET new_order_id = '" . (int)$data['new_order_id'] . "', forma = '" . $this->db->escape($data['forma']) . "', linkto = '" . $this->db->escape($data['linkto']) . "', description = '" . $this->db->escape($data['description']) . "', color = '" . $this->db->escape($data['color']) . "', sizes = '" . $this->db->escape($data['sizes']) . "', counts = '" . (int)$data['counts'] . "', tcena = '" . $this->db->escape($data['tcena']) . "'"); $new_order_id = $this->db->getLastId(); } } view <form action="<?php echo $action; ?>" method="post" enctype="multipart/form-data"> <div class="information_page"> <table border="0"> <tr> <th><?php echo $text_form; ?></th> <th><?php echo $linktopr; ?></th> <th><?php echo $text_description; ?></th> <th><?php echo $text_color; ?></th> <th><?php echo $text_size; ?></th> <th><?php echo $text_count_product; ?></th> <th><?php echo $text_price; ?></th> </tr> <tr> <td> <input type="text" name="forma" /> <?php if ($error_forma) { ?> <span class="error"><?php echo $error_forma; ?></span> <?php } ?> </td> <td> <input type="text" name="linkto" /> <?php if ($error_linkto) { ?> <span class="error"><?php echo $error_linkto; ?></span> <?php } ?> </td> <td> <input type="text" name="description" /> <?php if ($error_description) { ?> <span class="error"><?php echo $error_description; ?></span> <?php } ?> </td> <td> <input type="text" name="color" /> <?php if ($error_color) { ?> <span class="error"><?php echo $error_color; ?></span> <?php } ?> </td> <td> <input type="text" name="sizes" /> <?php if ($error_sizes) { ?> <span class="error"><?php echo $error_sizes; ?></span> <?php } ?> </td> <td> <input type="text" name="counts" /> <?php if ($error_counts) { ?> <span class="error"><?php echo $error_counts; ?></span> <?php } ?> </td> <td> <input type="text" name="tcena" /> <?php if ($error_tcena) { ?> <span class="error"><?php echo $error_tcena; ?></span> <?php } ?> </td> </tr> </table> </div> <div class="buttons"> <div class="left"><a href="<?php echo $back; ?>" class="button">Назад</a></div> <div class="right"> <input type="submit" value="Отправить" class="button" /> </div>
×
×
  • Create New...

Important Information

On our site, cookies are used and personal data is processed to improve the user interface. To find out what and what personal data we are processing, please go to the link. If you click "I agree," it means that you understand and accept all the conditions specified in this Privacy Notice.