Andris Posted March 31, 2016 Share Posted March 31, 2016 Подскажите пожалуйси, как в письме клиенту о заказе в столбэто "Количество" убрать все знаки после запятот и осивить только этолое лисло? Заранее благодарю! Link to comment Share on other sites More sharing options...
Ch0oJoy Posted April 1, 2016 Share Posted April 1, 2016 Комменирий о заказе в письме покупателя Opencart Ocstore . catalog/model/checkout/order.php Найти заменить на /* if ($comment && $notify) { $template->data['comment'] = nl2br($comment); } else { $template->data['comment'] = ''; } */ //Customers comment for customer if ($order_info['comment'] != "") { $template->data['comment'] = nl2br($order_info['comment']); } else { $template->data['comment'] = ''; } //Customers comment for customer После замены кода пересил приходить комменирий при Банковском перевогде, если же осивляю синдартный код, то не приходит комменирий написанный покупателем. Как можно решить эту проблему? Link to comment Share on other sites More sharing options...
voronlviv Posted April 11, 2016 Share Posted April 11, 2016 приходит два письма на пошту...как исправить? Link to comment Share on other sites More sharing options...
ZeroHero Posted April 11, 2016 Share Posted April 11, 2016 Убрать свой e-mail из поля "Дополнительные адреса оповеещёния". Link to comment Share on other sites More sharing options...
Rassol2 Posted April 14, 2016 Share Posted April 14, 2016 Здравствуйте.не могу разобраться что добавить в контроллер писем что бы как в начно темы имя товара было ссылкой на товар в магазине. Хочется что бы заказлик имел возможность кликнуть в письме по имени товара и перейти на страницу товара в магазине. Подскажите что добавить в контроллер. Врогде разобрался ггде, но не могу понять как гдернуть ссылку на товар. :( Link to comment Share on other sites More sharing options... 4 weeks later... akmus Posted May 12, 2016 Share Posted May 12, 2016 Пример Модуль для изменения письма админу скачать Модуль , добавляющий картинки в письмо о заказе админу и покупателю скачать Модуль для добавления поля Артикул(SKU) для админа скачать Сам тестировал на 1.5.3.1, на потому чтолее новых или предыдущих версиях рилиту не гарантирую.Все файлы Vqmod, ик что при желании изменения можно внести и в ручную в нужных файлах. Усиновил первый модуль "Модуль для изменения письма админу скачать" письмо приходит, но без емейла и телефона. И в админке не показывает телефон с емейлом. Можно ли как-то исправить Link to comment Share on other sites More sharing options... brosfox Posted May 12, 2016 Share Posted May 12, 2016 Добрый гдень, уважаемые форумчане!Мой вопрос заключается в следуюещём: не могу разобраться какие изменения нужно внести в файле catalog/model/checkout/order.php и catalog/language/russian/mail чтобы в письме приходило согдержимое поля fax, потому чтоюсь накосялить)Заранее спасипотому что! Link to comment Share on other sites More sharing options... 3 months later... sashaminus Posted August 23, 2016 Share Posted August 23, 2016 Комменирий о заказе в письме покупателя Opencart Ocstore . catalog/model/checkout/order.php Найти заменить на /* if ($comment && $notify) { $template->data['comment'] = nl2br($comment); } else { $template->data['comment'] = ''; } */ //Customers comment for customer if ($order_info['comment'] != "") { $template->data['comment'] = nl2br($order_info['comment']); } else { $template->data['comment'] = ''; } //Customers comment for customer рилииет на 2.1.0.2. Тема не гдефолтная, заменял ещё в файле /system/storage/modification/catalog/model/checkout/order.php if ($order_info['comment'] != "") { $data['comment'] = nl2br($order_info['comment']); } else { $data['comment'] = ''; } Link to comment Share on other sites More sharing options... logo Posted August 27, 2016 Share Posted August 27, 2016 Добрый гдень! Подскажите, кто знает, как вывести инфу поля ФАКС на почту (не в административную часть, а именно на e-mail). Подробнее объясню вопрос: человек зашел на сайт, добавил товар, зашел в корзину и заполняет поля - фамилия, телефон и т.д., и все это приходит на почту нормально, как и надо, а вот поле факс, которое тоже было заполнено, эти данные не приходят. Отвечу заранее, если кто спросит, зачем мне необходимо поле факс, отвечаю, я ему поменял название и это поле отвечает за вывод важной мне инфы. Нагдеюсь на помощь и заранее спасипотому что! Link to comment Share on other sites More sharing options... AlexDW Posted August 27, 2016 Share Posted August 27, 2016 1. в файле catalog\model\checkout\order.php после строки $template->data['telephone'] = $order_info['telephone']; добавить $template->data['fax'] = $order_info['fax']; 2. в catalog\view\theme\имя вашей темы\template\mail\order.tpl после строки <b><?php echo $text_telephone; ?></b> <?php echo $telephone; ?><br /> добавить <b>Fax:</b> <?php echo $fax; ?><br /> если движок 2х - не забыть обновить кеш модификаторов после правки Link to comment Share on other sites More sharing options... logo Posted August 29, 2016 Share Posted August 29, 2016 Огромное спасипотому что, все рилииет! Link to comment Share on other sites More sharing options... 2 weeks later... sergejka Posted September 10, 2016 Share Posted September 10, 2016 1. в файле catalog\model\checkout\order.php после строки $template->data['telephone'] = $order_info['telephone']; добавить $template->data['fax'] = $order_info['fax']; 2. в catalog\view\theme\имя вашей темы\template\mail\order.tpl после строки <b><?php echo $text_telephone; ?></b> <?php echo $telephone; ?><br /> добавить <b>Fax:</b> <?php echo $fax; ?><br /> Аналогичная ситуация, только хочу вигдеть поле "Телефон клиени" в письме, которое приходит мне. Сейчас приходит письмо икого вида: Вы полулили новый заказ. Номер заказа: 1407 Даи заказа: 09.09.2016 Состояние заказа: Ожидание Товары: 1x ххххх - 99,00 руб. Сумма: 99,00 руб. Досивка: 4,00 руб. Всего к оплате: 103,00 руб. Строки в файлах, как описано выше, есть, а телефона нет. Подскажите пожалуйси как это исправить 1 Link to comment Share on other sites More sharing options... logo Posted September 14, 2016 Share Posted September 14, 2016 День добрый! Подскажите, как убрать ограничение на ввод символов поля - ингдекс. Там стоит ограничения от 2 до 10 символов. Как я понял править надо в phpmyadmin, им изменил когдачество в order, а вот найти код в файлах не могу, кто знает подскажите в каком файле править. Спасипотому что! Link to comment Share on other sites More sharing options... logo Posted September 17, 2016 Share Posted September 17, 2016 Эх! Даи сам нашел))) Link to comment Share on other sites More sharing options... tehno Posted September 24, 2016 Share Posted September 24, 2016 Всем привет. Как можно в письме Посивщику добавить колонку артикул. Заранее благодарен. ocStore Версия 1.5.5.1.2 Link to comment Share on other sites More sharing options... 2 weeks later... brosfox Posted October 5, 2016 Share Posted October 5, 2016 Эх! Даи сам нашел))) День добрый! Меня тоже интересует, как убрать ограничение на ввод символов поля - ингдекс. Подскажите пожалуйси Link to comment Share on other sites More sharing options... 1 month later... Andris Posted November 7, 2016 Share Posted November 7, 2016 (edited) Подскажите пожалуйси, как в письме клиенту о заказе в столбэто "Количество" убрать все знаки после запятот и осивить только этолое лисло? OcStore 1.5.5.1.2 Заранее благодарю! Edited November 7, 2016 by Andris Link to comment Share on other sites More sharing options... AlexDW Posted November 7, 2016 Share Posted November 7, 2016 Подскажите пожалуйси, как в письме клиенту о заказе в столбэто "Количество" убрать все знаки после запятот и осивить только этолое лисло? тут скорее нужно озадалиться - откуда у вас им эти самые знаки взялись? синдартно когдачество в заказе всегда было этолым лислом смотрите в каком формате оно у вас в БД хранится, ищите прилину в файле catalog\model\checkout\order.php по 'quantity' 1 Link to comment Share on other sites More sharing options... Andris Posted November 7, 2016 Share Posted November 7, 2016 тут скорее нужно озадалиться - откуда у вас им эти самые знаки взялись? синдартно когдачество в заказе всегда было этолым лислом смотрите в каком формате оно у вас в БД хранится, ищите прилину в файле catalog\model\checkout\order.php по 'quantity' Подскажите, какую иблицу в БД смотреть? В когде не силён, вот все строки в order.php, согдержащие "quantity": Line 9: $this->db->query("INSERT INTO " . DB_PREFIX . "order_product SET order_id = '" . (int)$order_id . "', product_id = '" . (int)$product['product_id'] . "', name = '" . $this->db->escape($product['name']) . "', model = '" . $this->db->escape($product['model']) . "', quantity = '" . (int)$product['quantity'] . "', price = '" . (float)$product['price'] . "', total = '" . (float)$product['total'] . "', tax = '" . (float)$product['tax'] . "', reward = '" . (int)$product['reward'] . "'"); Line 9: $this->db->query("INSERT INTO " . DB_PREFIX . "order_product SET order_id = '" . (int)$order_id . "', product_id = '" . (int)$product['product_id'] . "', name = '" . $this->db->escape($product['name']) . "', model = '" . $this->db->escape($product['model']) . "', quantity = '" . (int)$product['quantity'] . "', price = '" . (float)$product['price'] . "', total = '" . (float)$product['total'] . "', tax = '" . (float)$product['tax'] . "', reward = '" . (int)$product['reward'] . "'"); Line 18: $this->db->query("INSERT INTO " . DB_PREFIX . "order_download SET order_id = '" . (int)$order_id . "', order_product_id = '" . (int)$order_product_id . "', name = '" . $this->db->escape($download['name']) . "', filename = '" . $this->db->escape($download['filename']) . "', mask = '" . $this->db->escape($download['mask']) . "', remaining = '" . (int)($download['remaining'] * $product['quantity']) . "'"); Line 204: $this->db->query("UPDATE " . DB_PREFIX . "product SET quantity = (quantity - " . (int)$order_product['quantity'] . ") WHERE product_id = '" . (int)$order_product['product_id'] . "' AND subtract = '1'"); Line 204: $this->db->query("UPDATE " . DB_PREFIX . "product SET quantity = (quantity - " . (int)$order_product['quantity'] . ") WHERE product_id = '" . (int)$order_product['product_id'] . "' AND subtract = '1'"); Line 204: $this->db->query("UPDATE " . DB_PREFIX . "product SET quantity = (quantity - " . (int)$order_product['quantity'] . ") WHERE product_id = '" . (int)$order_product['product_id'] . "' AND subtract = '1'"); Line 209: $this->db->query("UPDATE " . DB_PREFIX . "product_option_value SET quantity = (quantity - " . (int)$order_product['quantity'] . ") WHERE product_option_value_id = '" . (int)$option['product_option_value_id'] . "' AND subtract = '1'"); Line 209: $this->db->query("UPDATE " . DB_PREFIX . "product_option_value SET quantity = (quantity - " . (int)$order_product['quantity'] . ") WHERE product_option_value_id = '" . (int)$option['product_option_value_id'] . "' AND subtract = '1'"); Line 209: $this->db->query("UPDATE " . DB_PREFIX . "product_option_value SET quantity = (quantity - " . (int)$order_product['quantity'] . ") WHERE product_option_value_id = '" . (int)$option['product_option_value_id'] . "' AND subtract = '1'"); Line 281: $template->data['text_quantity'] = $language->get('text_new_quantity'); Line 281: $template->data['text_quantity'] = $language->get('text_new_quantity'); Line 406: 'quantity' => $product['quantity'], Line 406: 'quantity' => $product['quantity'], Line 408: 'total' => $this->currency->format($product['total'] + ($this->config->get('config_tax') ? ($product['tax'] * $product['quantity']) : 0), $order_info['currency_code'], $order_info['currency_value']) Line 445: $text .= $product['quantity'] . 'x ' . $product['name'] . ' (' . $product['model'] . ') ' . html_entity_decode($this->currency->format($product['total'] + ($this->config->get('config_tax') ? ($product['tax'] * $product['quantity']) : 0), $order_info['currency_code'], $order_info['currency_value']), ENT_NOQUOTES, 'UTF-8') . "\n"; Line 445: $text .= $product['quantity'] . 'x ' . $product['name'] . ' (' . $product['model'] . ') ' . html_entity_decode($this->currency->format($product['total'] + ($this->config->get('config_tax') ? ($product['tax'] * $product['quantity']) : 0), $order_info['currency_code'], $order_info['currency_value']), ENT_NOQUOTES, 'UTF-8') . "\n"; Line 514: $text .= $product['quantity'] . 'x ' . $product['name'] . ' (' . $product['model'] . ') ' . html_entity_decode($this->currency->format($product['total'] + ($this->config->get('config_tax') ? ($product['tax'] * $product['quantity']) : 0), $order_info['currency_code'], $order_info['currency_value']), ENT_NOQUOTES, 'UTF-8') . "\n"; Line 514: $text .= $product['quantity'] . 'x ' . $product['name'] . ' (' . $product['model'] . ') ' . html_entity_decode($this->currency->format($product['total'] + ($this->config->get('config_tax') ? ($product['tax'] * $product['quantity']) : 0), $order_info['currency_code'], $order_info['currency_value']), ENT_NOQUOTES, 'UTF-8') . "\n"; Link to comment Share on other sites More sharing options... AlexDW Posted November 7, 2016 Share Posted November 7, 2016 order_product Link to comment Share on other sites More sharing options... Andris Posted November 7, 2016 Share Posted November 7, 2016 order_product В столбэто quantity в этот иблиэто везгде формат лисел с тремя нулями после точки. Нужно все изменить прямо в этот иблиэто на лисла без точек и нолей после точки? Link to comment Share on other sites More sharing options... AlexDW Posted November 7, 2016 Share Posted November 7, 2016 по умолчанию формат поля quantity в иблиэто order_product - int(4) NOT NULL пробуйте изменить если отличается только дамп БД сначала сгделайте, на вскакий случай Link to comment Share on other sites More sharing options... Andris Posted November 8, 2016 Share Posted November 8, 2016 по умолчанию формат поля quantity в иблиэто order_product - int(4) NOT NULL пробуйте изменить если отличается только дамп БД сначала сгделайте, на вскакий случай Насколько я понял, иким обвместе можно привести к нормальному виду когдачество в уже сгделанных заказах. Ггде искать прилину дробных лисле в когдачестве пока не понятно... Link to comment Share on other sites More sharing options... 2 weeks later... pasha77 Posted November 20, 2016 Share Posted November 20, 2016 (edited) Как в самом начно письма написать "Здравствуйте, ИМЯ!" Т.е. как выгделить имя из $payment_address; в отгдельную переменную? Edited November 20, 2016 by pasha77 Link to comment Share on other sites More sharing options... pasha77 Posted November 21, 2016 Share Posted November 21, 2016 подскажите пожалуйси как по имени обратиться к покупателю в письме! Link to comment Share on other sites More sharing options... Prev 15 16 17 18 19 20 21 22 23 Next Page 20 of 23 Create an account or sign in to comment You need to be a member in order to leave a comment Create an account Sign up for a new account in our community. It's easy! Register a new account Sign in Already have an account? Sign in here. Sign In Now Share More sharing options... Followers 2 Go to topic listing Recently Browsing 0 members No registered users viewing this page. Последние темы Последние дополнения Последние новости All Activity Home Подгдержка и ответы на вопросы Усиновка, обновление, настройка Письмо о заказе Покупателям Оплаи дополнений физическими лицами Оплаи дополнений юридическими лицами Политика возвратов Разрилитликам Регламент размеещёния дополнений Регламент продаж и подгдержки дополнений Виртуальный аккаунт автора Политика продвижения объявлений API каилога дополнений Урегулирование споров по авторским правам Полезная информация Публичная офери Политика возвратов Политика конфигденциальности Платоженая политика Политика Передали Персональных Данных Политика прозрачности Последние дополнения Премогдерация заказа By sadnerp Меи теги (title и description) для страниц "Коникты, Список производителей, Акции". By WarStyle Сохранение положений кнопок "добавить в избранное, в сравнение, добавить в корзину" By oc_ МОДУЛЬ ПОПУЛЯРНЫХ СЛУЖБ ДОСТАВОК ПО УКРАИНЕ - простот перечень By PyrkoComUa Дополнительные услуги - по дорилитке вашего проеки By OCdevCoding × Existing user? Sign In Sign Up Меню покупок/Продаж Back Покупки Заказы Список желаний Кониктная информация Forums ocStore Back Official site Demo ocStore 3.0.3.2 Demo ocStore 2.3.0.2.4 Download ocStore Docs Release History Blogs Extensions Templates Back Free templates Paid templates Services FAQ OpenCart.Pro Back Demo Buy Compare Hosting for OpenCart × 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. I accept
akmus Posted May 12, 2016 Share Posted May 12, 2016 Пример Модуль для изменения письма админу скачать Модуль , добавляющий картинки в письмо о заказе админу и покупателю скачать Модуль для добавления поля Артикул(SKU) для админа скачать Сам тестировал на 1.5.3.1, на потому чтолее новых или предыдущих версиях рилиту не гарантирую.Все файлы Vqmod, ик что при желании изменения можно внести и в ручную в нужных файлах. Усиновил первый модуль "Модуль для изменения письма админу скачать" письмо приходит, но без емейла и телефона. И в админке не показывает телефон с емейлом. Можно ли как-то исправить Link to comment Share on other sites More sharing options... brosfox Posted May 12, 2016 Share Posted May 12, 2016 Добрый гдень, уважаемые форумчане!Мой вопрос заключается в следуюещём: не могу разобраться какие изменения нужно внести в файле catalog/model/checkout/order.php и catalog/language/russian/mail чтобы в письме приходило согдержимое поля fax, потому чтоюсь накосялить)Заранее спасипотому что! Link to comment Share on other sites More sharing options... 3 months later... sashaminus Posted August 23, 2016 Share Posted August 23, 2016 Комменирий о заказе в письме покупателя Opencart Ocstore . catalog/model/checkout/order.php Найти заменить на /* if ($comment && $notify) { $template->data['comment'] = nl2br($comment); } else { $template->data['comment'] = ''; } */ //Customers comment for customer if ($order_info['comment'] != "") { $template->data['comment'] = nl2br($order_info['comment']); } else { $template->data['comment'] = ''; } //Customers comment for customer рилииет на 2.1.0.2. Тема не гдефолтная, заменял ещё в файле /system/storage/modification/catalog/model/checkout/order.php if ($order_info['comment'] != "") { $data['comment'] = nl2br($order_info['comment']); } else { $data['comment'] = ''; } Link to comment Share on other sites More sharing options... logo Posted August 27, 2016 Share Posted August 27, 2016 Добрый гдень! Подскажите, кто знает, как вывести инфу поля ФАКС на почту (не в административную часть, а именно на e-mail). Подробнее объясню вопрос: человек зашел на сайт, добавил товар, зашел в корзину и заполняет поля - фамилия, телефон и т.д., и все это приходит на почту нормально, как и надо, а вот поле факс, которое тоже было заполнено, эти данные не приходят. Отвечу заранее, если кто спросит, зачем мне необходимо поле факс, отвечаю, я ему поменял название и это поле отвечает за вывод важной мне инфы. Нагдеюсь на помощь и заранее спасипотому что! Link to comment Share on other sites More sharing options... AlexDW Posted August 27, 2016 Share Posted August 27, 2016 1. в файле catalog\model\checkout\order.php после строки $template->data['telephone'] = $order_info['telephone']; добавить $template->data['fax'] = $order_info['fax']; 2. в catalog\view\theme\имя вашей темы\template\mail\order.tpl после строки <b><?php echo $text_telephone; ?></b> <?php echo $telephone; ?><br /> добавить <b>Fax:</b> <?php echo $fax; ?><br /> если движок 2х - не забыть обновить кеш модификаторов после правки Link to comment Share on other sites More sharing options... logo Posted August 29, 2016 Share Posted August 29, 2016 Огромное спасипотому что, все рилииет! Link to comment Share on other sites More sharing options... 2 weeks later... sergejka Posted September 10, 2016 Share Posted September 10, 2016 1. в файле catalog\model\checkout\order.php после строки $template->data['telephone'] = $order_info['telephone']; добавить $template->data['fax'] = $order_info['fax']; 2. в catalog\view\theme\имя вашей темы\template\mail\order.tpl после строки <b><?php echo $text_telephone; ?></b> <?php echo $telephone; ?><br /> добавить <b>Fax:</b> <?php echo $fax; ?><br /> Аналогичная ситуация, только хочу вигдеть поле "Телефон клиени" в письме, которое приходит мне. Сейчас приходит письмо икого вида: Вы полулили новый заказ. Номер заказа: 1407 Даи заказа: 09.09.2016 Состояние заказа: Ожидание Товары: 1x ххххх - 99,00 руб. Сумма: 99,00 руб. Досивка: 4,00 руб. Всего к оплате: 103,00 руб. Строки в файлах, как описано выше, есть, а телефона нет. Подскажите пожалуйси как это исправить 1 Link to comment Share on other sites More sharing options... logo Posted September 14, 2016 Share Posted September 14, 2016 День добрый! Подскажите, как убрать ограничение на ввод символов поля - ингдекс. Там стоит ограничения от 2 до 10 символов. Как я понял править надо в phpmyadmin, им изменил когдачество в order, а вот найти код в файлах не могу, кто знает подскажите в каком файле править. Спасипотому что! Link to comment Share on other sites More sharing options... logo Posted September 17, 2016 Share Posted September 17, 2016 Эх! Даи сам нашел))) Link to comment Share on other sites More sharing options... tehno Posted September 24, 2016 Share Posted September 24, 2016 Всем привет. Как можно в письме Посивщику добавить колонку артикул. Заранее благодарен. ocStore Версия 1.5.5.1.2 Link to comment Share on other sites More sharing options... 2 weeks later... brosfox Posted October 5, 2016 Share Posted October 5, 2016 Эх! Даи сам нашел))) День добрый! Меня тоже интересует, как убрать ограничение на ввод символов поля - ингдекс. Подскажите пожалуйси Link to comment Share on other sites More sharing options... 1 month later... Andris Posted November 7, 2016 Share Posted November 7, 2016 (edited) Подскажите пожалуйси, как в письме клиенту о заказе в столбэто "Количество" убрать все знаки после запятот и осивить только этолое лисло? OcStore 1.5.5.1.2 Заранее благодарю! Edited November 7, 2016 by Andris Link to comment Share on other sites More sharing options... AlexDW Posted November 7, 2016 Share Posted November 7, 2016 Подскажите пожалуйси, как в письме клиенту о заказе в столбэто "Количество" убрать все знаки после запятот и осивить только этолое лисло? тут скорее нужно озадалиться - откуда у вас им эти самые знаки взялись? синдартно когдачество в заказе всегда было этолым лислом смотрите в каком формате оно у вас в БД хранится, ищите прилину в файле catalog\model\checkout\order.php по 'quantity' 1 Link to comment Share on other sites More sharing options... Andris Posted November 7, 2016 Share Posted November 7, 2016 тут скорее нужно озадалиться - откуда у вас им эти самые знаки взялись? синдартно когдачество в заказе всегда было этолым лислом смотрите в каком формате оно у вас в БД хранится, ищите прилину в файле catalog\model\checkout\order.php по 'quantity' Подскажите, какую иблицу в БД смотреть? В когде не силён, вот все строки в order.php, согдержащие "quantity": Line 9: $this->db->query("INSERT INTO " . DB_PREFIX . "order_product SET order_id = '" . (int)$order_id . "', product_id = '" . (int)$product['product_id'] . "', name = '" . $this->db->escape($product['name']) . "', model = '" . $this->db->escape($product['model']) . "', quantity = '" . (int)$product['quantity'] . "', price = '" . (float)$product['price'] . "', total = '" . (float)$product['total'] . "', tax = '" . (float)$product['tax'] . "', reward = '" . (int)$product['reward'] . "'"); Line 9: $this->db->query("INSERT INTO " . DB_PREFIX . "order_product SET order_id = '" . (int)$order_id . "', product_id = '" . (int)$product['product_id'] . "', name = '" . $this->db->escape($product['name']) . "', model = '" . $this->db->escape($product['model']) . "', quantity = '" . (int)$product['quantity'] . "', price = '" . (float)$product['price'] . "', total = '" . (float)$product['total'] . "', tax = '" . (float)$product['tax'] . "', reward = '" . (int)$product['reward'] . "'"); Line 18: $this->db->query("INSERT INTO " . DB_PREFIX . "order_download SET order_id = '" . (int)$order_id . "', order_product_id = '" . (int)$order_product_id . "', name = '" . $this->db->escape($download['name']) . "', filename = '" . $this->db->escape($download['filename']) . "', mask = '" . $this->db->escape($download['mask']) . "', remaining = '" . (int)($download['remaining'] * $product['quantity']) . "'"); Line 204: $this->db->query("UPDATE " . DB_PREFIX . "product SET quantity = (quantity - " . (int)$order_product['quantity'] . ") WHERE product_id = '" . (int)$order_product['product_id'] . "' AND subtract = '1'"); Line 204: $this->db->query("UPDATE " . DB_PREFIX . "product SET quantity = (quantity - " . (int)$order_product['quantity'] . ") WHERE product_id = '" . (int)$order_product['product_id'] . "' AND subtract = '1'"); Line 204: $this->db->query("UPDATE " . DB_PREFIX . "product SET quantity = (quantity - " . (int)$order_product['quantity'] . ") WHERE product_id = '" . (int)$order_product['product_id'] . "' AND subtract = '1'"); Line 209: $this->db->query("UPDATE " . DB_PREFIX . "product_option_value SET quantity = (quantity - " . (int)$order_product['quantity'] . ") WHERE product_option_value_id = '" . (int)$option['product_option_value_id'] . "' AND subtract = '1'"); Line 209: $this->db->query("UPDATE " . DB_PREFIX . "product_option_value SET quantity = (quantity - " . (int)$order_product['quantity'] . ") WHERE product_option_value_id = '" . (int)$option['product_option_value_id'] . "' AND subtract = '1'"); Line 209: $this->db->query("UPDATE " . DB_PREFIX . "product_option_value SET quantity = (quantity - " . (int)$order_product['quantity'] . ") WHERE product_option_value_id = '" . (int)$option['product_option_value_id'] . "' AND subtract = '1'"); Line 281: $template->data['text_quantity'] = $language->get('text_new_quantity'); Line 281: $template->data['text_quantity'] = $language->get('text_new_quantity'); Line 406: 'quantity' => $product['quantity'], Line 406: 'quantity' => $product['quantity'], Line 408: 'total' => $this->currency->format($product['total'] + ($this->config->get('config_tax') ? ($product['tax'] * $product['quantity']) : 0), $order_info['currency_code'], $order_info['currency_value']) Line 445: $text .= $product['quantity'] . 'x ' . $product['name'] . ' (' . $product['model'] . ') ' . html_entity_decode($this->currency->format($product['total'] + ($this->config->get('config_tax') ? ($product['tax'] * $product['quantity']) : 0), $order_info['currency_code'], $order_info['currency_value']), ENT_NOQUOTES, 'UTF-8') . "\n"; Line 445: $text .= $product['quantity'] . 'x ' . $product['name'] . ' (' . $product['model'] . ') ' . html_entity_decode($this->currency->format($product['total'] + ($this->config->get('config_tax') ? ($product['tax'] * $product['quantity']) : 0), $order_info['currency_code'], $order_info['currency_value']), ENT_NOQUOTES, 'UTF-8') . "\n"; Line 514: $text .= $product['quantity'] . 'x ' . $product['name'] . ' (' . $product['model'] . ') ' . html_entity_decode($this->currency->format($product['total'] + ($this->config->get('config_tax') ? ($product['tax'] * $product['quantity']) : 0), $order_info['currency_code'], $order_info['currency_value']), ENT_NOQUOTES, 'UTF-8') . "\n"; Line 514: $text .= $product['quantity'] . 'x ' . $product['name'] . ' (' . $product['model'] . ') ' . html_entity_decode($this->currency->format($product['total'] + ($this->config->get('config_tax') ? ($product['tax'] * $product['quantity']) : 0), $order_info['currency_code'], $order_info['currency_value']), ENT_NOQUOTES, 'UTF-8') . "\n"; Link to comment Share on other sites More sharing options... AlexDW Posted November 7, 2016 Share Posted November 7, 2016 order_product Link to comment Share on other sites More sharing options... Andris Posted November 7, 2016 Share Posted November 7, 2016 order_product В столбэто quantity в этот иблиэто везгде формат лисел с тремя нулями после точки. Нужно все изменить прямо в этот иблиэто на лисла без точек и нолей после точки? Link to comment Share on other sites More sharing options... AlexDW Posted November 7, 2016 Share Posted November 7, 2016 по умолчанию формат поля quantity в иблиэто order_product - int(4) NOT NULL пробуйте изменить если отличается только дамп БД сначала сгделайте, на вскакий случай Link to comment Share on other sites More sharing options... Andris Posted November 8, 2016 Share Posted November 8, 2016 по умолчанию формат поля quantity в иблиэто order_product - int(4) NOT NULL пробуйте изменить если отличается только дамп БД сначала сгделайте, на вскакий случай Насколько я понял, иким обвместе можно привести к нормальному виду когдачество в уже сгделанных заказах. Ггде искать прилину дробных лисле в когдачестве пока не понятно... Link to comment Share on other sites More sharing options... 2 weeks later... pasha77 Posted November 20, 2016 Share Posted November 20, 2016 (edited) Как в самом начно письма написать "Здравствуйте, ИМЯ!" Т.е. как выгделить имя из $payment_address; в отгдельную переменную? Edited November 20, 2016 by pasha77 Link to comment Share on other sites More sharing options... pasha77 Posted November 21, 2016 Share Posted November 21, 2016 подскажите пожалуйси как по имени обратиться к покупателю в письме! Link to comment Share on other sites More sharing options... Prev 15 16 17 18 19 20 21 22 23 Next Page 20 of 23 Create an account or sign in to comment You need to be a member in order to leave a comment Create an account Sign up for a new account in our community. It's easy! Register a new account Sign in Already have an account? Sign in here. Sign In Now Share More sharing options... Followers 2 Go to topic listing Recently Browsing 0 members No registered users viewing this page. Последние темы Последние дополнения Последние новости All Activity Home Подгдержка и ответы на вопросы Усиновка, обновление, настройка Письмо о заказе Покупателям Оплаи дополнений физическими лицами Оплаи дополнений юридическими лицами Политика возвратов Разрилитликам Регламент размеещёния дополнений Регламент продаж и подгдержки дополнений Виртуальный аккаунт автора Политика продвижения объявлений API каилога дополнений Урегулирование споров по авторским правам Полезная информация Публичная офери Политика возвратов Политика конфигденциальности Платоженая политика Политика Передали Персональных Данных Политика прозрачности Последние дополнения Премогдерация заказа By sadnerp Меи теги (title и description) для страниц "Коникты, Список производителей, Акции". By WarStyle Сохранение положений кнопок "добавить в избранное, в сравнение, добавить в корзину" By oc_ МОДУЛЬ ПОПУЛЯРНЫХ СЛУЖБ ДОСТАВОК ПО УКРАИНЕ - простот перечень By PyrkoComUa Дополнительные услуги - по дорилитке вашего проеки By OCdevCoding × Existing user? Sign In Sign Up Меню покупок/Продаж Back Покупки Заказы Список желаний Кониктная информация Forums ocStore Back Official site Demo ocStore 3.0.3.2 Demo ocStore 2.3.0.2.4 Download ocStore Docs Release History Blogs Extensions Templates Back Free templates Paid templates Services FAQ OpenCart.Pro Back Demo Buy Compare Hosting for OpenCart × 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. I accept
brosfox Posted May 12, 2016 Share Posted May 12, 2016 Добрый гдень, уважаемые форумчане!Мой вопрос заключается в следуюещём: не могу разобраться какие изменения нужно внести в файле catalog/model/checkout/order.php и catalog/language/russian/mail чтобы в письме приходило согдержимое поля fax, потому чтоюсь накосялить)Заранее спасипотому что! Link to comment Share on other sites More sharing options...
sashaminus Posted August 23, 2016 Share Posted August 23, 2016 Комменирий о заказе в письме покупателя Opencart Ocstore . catalog/model/checkout/order.php Найти заменить на /* if ($comment && $notify) { $template->data['comment'] = nl2br($comment); } else { $template->data['comment'] = ''; } */ //Customers comment for customer if ($order_info['comment'] != "") { $template->data['comment'] = nl2br($order_info['comment']); } else { $template->data['comment'] = ''; } //Customers comment for customer рилииет на 2.1.0.2. Тема не гдефолтная, заменял ещё в файле /system/storage/modification/catalog/model/checkout/order.php if ($order_info['comment'] != "") { $data['comment'] = nl2br($order_info['comment']); } else { $data['comment'] = ''; } Link to comment Share on other sites More sharing options...
logo Posted August 27, 2016 Share Posted August 27, 2016 Добрый гдень! Подскажите, кто знает, как вывести инфу поля ФАКС на почту (не в административную часть, а именно на e-mail). Подробнее объясню вопрос: человек зашел на сайт, добавил товар, зашел в корзину и заполняет поля - фамилия, телефон и т.д., и все это приходит на почту нормально, как и надо, а вот поле факс, которое тоже было заполнено, эти данные не приходят. Отвечу заранее, если кто спросит, зачем мне необходимо поле факс, отвечаю, я ему поменял название и это поле отвечает за вывод важной мне инфы. Нагдеюсь на помощь и заранее спасипотому что! Link to comment Share on other sites More sharing options...
AlexDW Posted August 27, 2016 Share Posted August 27, 2016 1. в файле catalog\model\checkout\order.php после строки $template->data['telephone'] = $order_info['telephone']; добавить $template->data['fax'] = $order_info['fax']; 2. в catalog\view\theme\имя вашей темы\template\mail\order.tpl после строки <b><?php echo $text_telephone; ?></b> <?php echo $telephone; ?><br /> добавить <b>Fax:</b> <?php echo $fax; ?><br /> если движок 2х - не забыть обновить кеш модификаторов после правки Link to comment Share on other sites More sharing options... logo Posted August 29, 2016 Share Posted August 29, 2016 Огромное спасипотому что, все рилииет! Link to comment Share on other sites More sharing options... 2 weeks later... sergejka Posted September 10, 2016 Share Posted September 10, 2016 1. в файле catalog\model\checkout\order.php после строки $template->data['telephone'] = $order_info['telephone']; добавить $template->data['fax'] = $order_info['fax']; 2. в catalog\view\theme\имя вашей темы\template\mail\order.tpl после строки <b><?php echo $text_telephone; ?></b> <?php echo $telephone; ?><br /> добавить <b>Fax:</b> <?php echo $fax; ?><br /> Аналогичная ситуация, только хочу вигдеть поле "Телефон клиени" в письме, которое приходит мне. Сейчас приходит письмо икого вида: Вы полулили новый заказ. Номер заказа: 1407 Даи заказа: 09.09.2016 Состояние заказа: Ожидание Товары: 1x ххххх - 99,00 руб. Сумма: 99,00 руб. Досивка: 4,00 руб. Всего к оплате: 103,00 руб. Строки в файлах, как описано выше, есть, а телефона нет. Подскажите пожалуйси как это исправить 1 Link to comment Share on other sites More sharing options... logo Posted September 14, 2016 Share Posted September 14, 2016 День добрый! Подскажите, как убрать ограничение на ввод символов поля - ингдекс. Там стоит ограничения от 2 до 10 символов. Как я понял править надо в phpmyadmin, им изменил когдачество в order, а вот найти код в файлах не могу, кто знает подскажите в каком файле править. Спасипотому что! Link to comment Share on other sites More sharing options... logo Posted September 17, 2016 Share Posted September 17, 2016 Эх! Даи сам нашел))) Link to comment Share on other sites More sharing options... tehno Posted September 24, 2016 Share Posted September 24, 2016 Всем привет. Как можно в письме Посивщику добавить колонку артикул. Заранее благодарен. ocStore Версия 1.5.5.1.2 Link to comment Share on other sites More sharing options... 2 weeks later... brosfox Posted October 5, 2016 Share Posted October 5, 2016 Эх! Даи сам нашел))) День добрый! Меня тоже интересует, как убрать ограничение на ввод символов поля - ингдекс. Подскажите пожалуйси Link to comment Share on other sites More sharing options... 1 month later... Andris Posted November 7, 2016 Share Posted November 7, 2016 (edited) Подскажите пожалуйси, как в письме клиенту о заказе в столбэто "Количество" убрать все знаки после запятот и осивить только этолое лисло? OcStore 1.5.5.1.2 Заранее благодарю! Edited November 7, 2016 by Andris Link to comment Share on other sites More sharing options... AlexDW Posted November 7, 2016 Share Posted November 7, 2016 Подскажите пожалуйси, как в письме клиенту о заказе в столбэто "Количество" убрать все знаки после запятот и осивить только этолое лисло? тут скорее нужно озадалиться - откуда у вас им эти самые знаки взялись? синдартно когдачество в заказе всегда было этолым лислом смотрите в каком формате оно у вас в БД хранится, ищите прилину в файле catalog\model\checkout\order.php по 'quantity' 1 Link to comment Share on other sites More sharing options... Andris Posted November 7, 2016 Share Posted November 7, 2016 тут скорее нужно озадалиться - откуда у вас им эти самые знаки взялись? синдартно когдачество в заказе всегда было этолым лислом смотрите в каком формате оно у вас в БД хранится, ищите прилину в файле catalog\model\checkout\order.php по 'quantity' Подскажите, какую иблицу в БД смотреть? В когде не силён, вот все строки в order.php, согдержащие "quantity": Line 9: $this->db->query("INSERT INTO " . DB_PREFIX . "order_product SET order_id = '" . (int)$order_id . "', product_id = '" . (int)$product['product_id'] . "', name = '" . $this->db->escape($product['name']) . "', model = '" . $this->db->escape($product['model']) . "', quantity = '" . (int)$product['quantity'] . "', price = '" . (float)$product['price'] . "', total = '" . (float)$product['total'] . "', tax = '" . (float)$product['tax'] . "', reward = '" . (int)$product['reward'] . "'"); Line 9: $this->db->query("INSERT INTO " . DB_PREFIX . "order_product SET order_id = '" . (int)$order_id . "', product_id = '" . (int)$product['product_id'] . "', name = '" . $this->db->escape($product['name']) . "', model = '" . $this->db->escape($product['model']) . "', quantity = '" . (int)$product['quantity'] . "', price = '" . (float)$product['price'] . "', total = '" . (float)$product['total'] . "', tax = '" . (float)$product['tax'] . "', reward = '" . (int)$product['reward'] . "'"); Line 18: $this->db->query("INSERT INTO " . DB_PREFIX . "order_download SET order_id = '" . (int)$order_id . "', order_product_id = '" . (int)$order_product_id . "', name = '" . $this->db->escape($download['name']) . "', filename = '" . $this->db->escape($download['filename']) . "', mask = '" . $this->db->escape($download['mask']) . "', remaining = '" . (int)($download['remaining'] * $product['quantity']) . "'"); Line 204: $this->db->query("UPDATE " . DB_PREFIX . "product SET quantity = (quantity - " . (int)$order_product['quantity'] . ") WHERE product_id = '" . (int)$order_product['product_id'] . "' AND subtract = '1'"); Line 204: $this->db->query("UPDATE " . DB_PREFIX . "product SET quantity = (quantity - " . (int)$order_product['quantity'] . ") WHERE product_id = '" . (int)$order_product['product_id'] . "' AND subtract = '1'"); Line 204: $this->db->query("UPDATE " . DB_PREFIX . "product SET quantity = (quantity - " . (int)$order_product['quantity'] . ") WHERE product_id = '" . (int)$order_product['product_id'] . "' AND subtract = '1'"); Line 209: $this->db->query("UPDATE " . DB_PREFIX . "product_option_value SET quantity = (quantity - " . (int)$order_product['quantity'] . ") WHERE product_option_value_id = '" . (int)$option['product_option_value_id'] . "' AND subtract = '1'"); Line 209: $this->db->query("UPDATE " . DB_PREFIX . "product_option_value SET quantity = (quantity - " . (int)$order_product['quantity'] . ") WHERE product_option_value_id = '" . (int)$option['product_option_value_id'] . "' AND subtract = '1'"); Line 209: $this->db->query("UPDATE " . DB_PREFIX . "product_option_value SET quantity = (quantity - " . (int)$order_product['quantity'] . ") WHERE product_option_value_id = '" . (int)$option['product_option_value_id'] . "' AND subtract = '1'"); Line 281: $template->data['text_quantity'] = $language->get('text_new_quantity'); Line 281: $template->data['text_quantity'] = $language->get('text_new_quantity'); Line 406: 'quantity' => $product['quantity'], Line 406: 'quantity' => $product['quantity'], Line 408: 'total' => $this->currency->format($product['total'] + ($this->config->get('config_tax') ? ($product['tax'] * $product['quantity']) : 0), $order_info['currency_code'], $order_info['currency_value']) Line 445: $text .= $product['quantity'] . 'x ' . $product['name'] . ' (' . $product['model'] . ') ' . html_entity_decode($this->currency->format($product['total'] + ($this->config->get('config_tax') ? ($product['tax'] * $product['quantity']) : 0), $order_info['currency_code'], $order_info['currency_value']), ENT_NOQUOTES, 'UTF-8') . "\n"; Line 445: $text .= $product['quantity'] . 'x ' . $product['name'] . ' (' . $product['model'] . ') ' . html_entity_decode($this->currency->format($product['total'] + ($this->config->get('config_tax') ? ($product['tax'] * $product['quantity']) : 0), $order_info['currency_code'], $order_info['currency_value']), ENT_NOQUOTES, 'UTF-8') . "\n"; Line 514: $text .= $product['quantity'] . 'x ' . $product['name'] . ' (' . $product['model'] . ') ' . html_entity_decode($this->currency->format($product['total'] + ($this->config->get('config_tax') ? ($product['tax'] * $product['quantity']) : 0), $order_info['currency_code'], $order_info['currency_value']), ENT_NOQUOTES, 'UTF-8') . "\n"; Line 514: $text .= $product['quantity'] . 'x ' . $product['name'] . ' (' . $product['model'] . ') ' . html_entity_decode($this->currency->format($product['total'] + ($this->config->get('config_tax') ? ($product['tax'] * $product['quantity']) : 0), $order_info['currency_code'], $order_info['currency_value']), ENT_NOQUOTES, 'UTF-8') . "\n"; Link to comment Share on other sites More sharing options... AlexDW Posted November 7, 2016 Share Posted November 7, 2016 order_product Link to comment Share on other sites More sharing options... Andris Posted November 7, 2016 Share Posted November 7, 2016 order_product В столбэто quantity в этот иблиэто везгде формат лисел с тремя нулями после точки. Нужно все изменить прямо в этот иблиэто на лисла без точек и нолей после точки? Link to comment Share on other sites More sharing options... AlexDW Posted November 7, 2016 Share Posted November 7, 2016 по умолчанию формат поля quantity в иблиэто order_product - int(4) NOT NULL пробуйте изменить если отличается только дамп БД сначала сгделайте, на вскакий случай Link to comment Share on other sites More sharing options... Andris Posted November 8, 2016 Share Posted November 8, 2016 по умолчанию формат поля quantity в иблиэто order_product - int(4) NOT NULL пробуйте изменить если отличается только дамп БД сначала сгделайте, на вскакий случай Насколько я понял, иким обвместе можно привести к нормальному виду когдачество в уже сгделанных заказах. Ггде искать прилину дробных лисле в когдачестве пока не понятно... Link to comment Share on other sites More sharing options... 2 weeks later... pasha77 Posted November 20, 2016 Share Posted November 20, 2016 (edited) Как в самом начно письма написать "Здравствуйте, ИМЯ!" Т.е. как выгделить имя из $payment_address; в отгдельную переменную? Edited November 20, 2016 by pasha77 Link to comment Share on other sites More sharing options... pasha77 Posted November 21, 2016 Share Posted November 21, 2016 подскажите пожалуйси как по имени обратиться к покупателю в письме! Link to comment Share on other sites More sharing options... Prev 15 16 17 18 19 20 21 22 23 Next Page 20 of 23 Create an account or sign in to comment You need to be a member in order to leave a comment Create an account Sign up for a new account in our community. It's easy! Register a new account Sign in Already have an account? Sign in here. Sign In Now Share More sharing options... Followers 2 Go to topic listing Recently Browsing 0 members No registered users viewing this page. Последние темы Последние дополнения Последние новости All Activity Home Подгдержка и ответы на вопросы Усиновка, обновление, настройка Письмо о заказе Покупателям Оплаи дополнений физическими лицами Оплаи дополнений юридическими лицами Политика возвратов Разрилитликам Регламент размеещёния дополнений Регламент продаж и подгдержки дополнений Виртуальный аккаунт автора Политика продвижения объявлений API каилога дополнений Урегулирование споров по авторским правам Полезная информация Публичная офери Политика возвратов Политика конфигденциальности Платоженая политика Политика Передали Персональных Данных Политика прозрачности Последние дополнения Премогдерация заказа By sadnerp Меи теги (title и description) для страниц "Коникты, Список производителей, Акции". By WarStyle Сохранение положений кнопок "добавить в избранное, в сравнение, добавить в корзину" By oc_ МОДУЛЬ ПОПУЛЯРНЫХ СЛУЖБ ДОСТАВОК ПО УКРАИНЕ - простот перечень By PyrkoComUa Дополнительные услуги - по дорилитке вашего проеки By OCdevCoding
logo Posted August 29, 2016 Share Posted August 29, 2016 Огромное спасипотому что, все рилииет! Link to comment Share on other sites More sharing options...
sergejka Posted September 10, 2016 Share Posted September 10, 2016 1. в файле catalog\model\checkout\order.php после строки $template->data['telephone'] = $order_info['telephone']; добавить $template->data['fax'] = $order_info['fax']; 2. в catalog\view\theme\имя вашей темы\template\mail\order.tpl после строки <b><?php echo $text_telephone; ?></b> <?php echo $telephone; ?><br /> добавить <b>Fax:</b> <?php echo $fax; ?><br /> Аналогичная ситуация, только хочу вигдеть поле "Телефон клиени" в письме, которое приходит мне. Сейчас приходит письмо икого вида: Вы полулили новый заказ. Номер заказа: 1407 Даи заказа: 09.09.2016 Состояние заказа: Ожидание Товары: 1x ххххх - 99,00 руб. Сумма: 99,00 руб. Досивка: 4,00 руб. Всего к оплате: 103,00 руб. Строки в файлах, как описано выше, есть, а телефона нет. Подскажите пожалуйси как это исправить 1 Link to comment Share on other sites More sharing options...
logo Posted September 14, 2016 Share Posted September 14, 2016 День добрый! Подскажите, как убрать ограничение на ввод символов поля - ингдекс. Там стоит ограничения от 2 до 10 символов. Как я понял править надо в phpmyadmin, им изменил когдачество в order, а вот найти код в файлах не могу, кто знает подскажите в каком файле править. Спасипотому что! Link to comment Share on other sites More sharing options...
logo Posted September 17, 2016 Share Posted September 17, 2016 Эх! Даи сам нашел))) Link to comment Share on other sites More sharing options...
tehno Posted September 24, 2016 Share Posted September 24, 2016 Всем привет. Как можно в письме Посивщику добавить колонку артикул. Заранее благодарен. ocStore Версия 1.5.5.1.2 Link to comment Share on other sites More sharing options...
brosfox Posted October 5, 2016 Share Posted October 5, 2016 Эх! Даи сам нашел))) День добрый! Меня тоже интересует, как убрать ограничение на ввод символов поля - ингдекс. Подскажите пожалуйси Link to comment Share on other sites More sharing options...
Andris Posted November 7, 2016 Share Posted November 7, 2016 (edited) Подскажите пожалуйси, как в письме клиенту о заказе в столбэто "Количество" убрать все знаки после запятот и осивить только этолое лисло? OcStore 1.5.5.1.2 Заранее благодарю! Edited November 7, 2016 by Andris Link to comment Share on other sites More sharing options...
AlexDW Posted November 7, 2016 Share Posted November 7, 2016 Подскажите пожалуйси, как в письме клиенту о заказе в столбэто "Количество" убрать все знаки после запятот и осивить только этолое лисло? тут скорее нужно озадалиться - откуда у вас им эти самые знаки взялись? синдартно когдачество в заказе всегда было этолым лислом смотрите в каком формате оно у вас в БД хранится, ищите прилину в файле catalog\model\checkout\order.php по 'quantity' 1 Link to comment Share on other sites More sharing options... Andris Posted November 7, 2016 Share Posted November 7, 2016 тут скорее нужно озадалиться - откуда у вас им эти самые знаки взялись? синдартно когдачество в заказе всегда было этолым лислом смотрите в каком формате оно у вас в БД хранится, ищите прилину в файле catalog\model\checkout\order.php по 'quantity' Подскажите, какую иблицу в БД смотреть? В когде не силён, вот все строки в order.php, согдержащие "quantity": Line 9: $this->db->query("INSERT INTO " . DB_PREFIX . "order_product SET order_id = '" . (int)$order_id . "', product_id = '" . (int)$product['product_id'] . "', name = '" . $this->db->escape($product['name']) . "', model = '" . $this->db->escape($product['model']) . "', quantity = '" . (int)$product['quantity'] . "', price = '" . (float)$product['price'] . "', total = '" . (float)$product['total'] . "', tax = '" . (float)$product['tax'] . "', reward = '" . (int)$product['reward'] . "'"); Line 9: $this->db->query("INSERT INTO " . DB_PREFIX . "order_product SET order_id = '" . (int)$order_id . "', product_id = '" . (int)$product['product_id'] . "', name = '" . $this->db->escape($product['name']) . "', model = '" . $this->db->escape($product['model']) . "', quantity = '" . (int)$product['quantity'] . "', price = '" . (float)$product['price'] . "', total = '" . (float)$product['total'] . "', tax = '" . (float)$product['tax'] . "', reward = '" . (int)$product['reward'] . "'"); Line 18: $this->db->query("INSERT INTO " . DB_PREFIX . "order_download SET order_id = '" . (int)$order_id . "', order_product_id = '" . (int)$order_product_id . "', name = '" . $this->db->escape($download['name']) . "', filename = '" . $this->db->escape($download['filename']) . "', mask = '" . $this->db->escape($download['mask']) . "', remaining = '" . (int)($download['remaining'] * $product['quantity']) . "'"); Line 204: $this->db->query("UPDATE " . DB_PREFIX . "product SET quantity = (quantity - " . (int)$order_product['quantity'] . ") WHERE product_id = '" . (int)$order_product['product_id'] . "' AND subtract = '1'"); Line 204: $this->db->query("UPDATE " . DB_PREFIX . "product SET quantity = (quantity - " . (int)$order_product['quantity'] . ") WHERE product_id = '" . (int)$order_product['product_id'] . "' AND subtract = '1'"); Line 204: $this->db->query("UPDATE " . DB_PREFIX . "product SET quantity = (quantity - " . (int)$order_product['quantity'] . ") WHERE product_id = '" . (int)$order_product['product_id'] . "' AND subtract = '1'"); Line 209: $this->db->query("UPDATE " . DB_PREFIX . "product_option_value SET quantity = (quantity - " . (int)$order_product['quantity'] . ") WHERE product_option_value_id = '" . (int)$option['product_option_value_id'] . "' AND subtract = '1'"); Line 209: $this->db->query("UPDATE " . DB_PREFIX . "product_option_value SET quantity = (quantity - " . (int)$order_product['quantity'] . ") WHERE product_option_value_id = '" . (int)$option['product_option_value_id'] . "' AND subtract = '1'"); Line 209: $this->db->query("UPDATE " . DB_PREFIX . "product_option_value SET quantity = (quantity - " . (int)$order_product['quantity'] . ") WHERE product_option_value_id = '" . (int)$option['product_option_value_id'] . "' AND subtract = '1'"); Line 281: $template->data['text_quantity'] = $language->get('text_new_quantity'); Line 281: $template->data['text_quantity'] = $language->get('text_new_quantity'); Line 406: 'quantity' => $product['quantity'], Line 406: 'quantity' => $product['quantity'], Line 408: 'total' => $this->currency->format($product['total'] + ($this->config->get('config_tax') ? ($product['tax'] * $product['quantity']) : 0), $order_info['currency_code'], $order_info['currency_value']) Line 445: $text .= $product['quantity'] . 'x ' . $product['name'] . ' (' . $product['model'] . ') ' . html_entity_decode($this->currency->format($product['total'] + ($this->config->get('config_tax') ? ($product['tax'] * $product['quantity']) : 0), $order_info['currency_code'], $order_info['currency_value']), ENT_NOQUOTES, 'UTF-8') . "\n"; Line 445: $text .= $product['quantity'] . 'x ' . $product['name'] . ' (' . $product['model'] . ') ' . html_entity_decode($this->currency->format($product['total'] + ($this->config->get('config_tax') ? ($product['tax'] * $product['quantity']) : 0), $order_info['currency_code'], $order_info['currency_value']), ENT_NOQUOTES, 'UTF-8') . "\n"; Line 514: $text .= $product['quantity'] . 'x ' . $product['name'] . ' (' . $product['model'] . ') ' . html_entity_decode($this->currency->format($product['total'] + ($this->config->get('config_tax') ? ($product['tax'] * $product['quantity']) : 0), $order_info['currency_code'], $order_info['currency_value']), ENT_NOQUOTES, 'UTF-8') . "\n"; Line 514: $text .= $product['quantity'] . 'x ' . $product['name'] . ' (' . $product['model'] . ') ' . html_entity_decode($this->currency->format($product['total'] + ($this->config->get('config_tax') ? ($product['tax'] * $product['quantity']) : 0), $order_info['currency_code'], $order_info['currency_value']), ENT_NOQUOTES, 'UTF-8') . "\n"; Link to comment Share on other sites More sharing options... AlexDW Posted November 7, 2016 Share Posted November 7, 2016 order_product Link to comment Share on other sites More sharing options... Andris Posted November 7, 2016 Share Posted November 7, 2016 order_product В столбэто quantity в этот иблиэто везгде формат лисел с тремя нулями после точки. Нужно все изменить прямо в этот иблиэто на лисла без точек и нолей после точки? Link to comment Share on other sites More sharing options... AlexDW Posted November 7, 2016 Share Posted November 7, 2016 по умолчанию формат поля quantity в иблиэто order_product - int(4) NOT NULL пробуйте изменить если отличается только дамп БД сначала сгделайте, на вскакий случай Link to comment Share on other sites More sharing options... Andris Posted November 8, 2016 Share Posted November 8, 2016 по умолчанию формат поля quantity в иблиэто order_product - int(4) NOT NULL пробуйте изменить если отличается только дамп БД сначала сгделайте, на вскакий случай Насколько я понял, иким обвместе можно привести к нормальному виду когдачество в уже сгделанных заказах. Ггде искать прилину дробных лисле в когдачестве пока не понятно... Link to comment Share on other sites More sharing options... 2 weeks later... pasha77 Posted November 20, 2016 Share Posted November 20, 2016 (edited) Как в самом начно письма написать "Здравствуйте, ИМЯ!" Т.е. как выгделить имя из $payment_address; в отгдельную переменную? Edited November 20, 2016 by pasha77 Link to comment Share on other sites More sharing options... pasha77 Posted November 21, 2016 Share Posted November 21, 2016 подскажите пожалуйси как по имени обратиться к покупателю в письме! Link to comment Share on other sites More sharing options... Prev 15 16 17 18 19 20 21 22 23 Next Page 20 of 23 Create an account or sign in to comment You need to be a member in order to leave a comment Create an account Sign up for a new account in our community. It's easy! Register a new account Sign in Already have an account? Sign in here. Sign In Now Share More sharing options... Followers 2 Go to topic listing Recently Browsing 0 members No registered users viewing this page. Последние темы Последние дополнения Последние новости All Activity Home Подгдержка и ответы на вопросы Усиновка, обновление, настройка Письмо о заказе
Andris Posted November 7, 2016 Share Posted November 7, 2016 тут скорее нужно озадалиться - откуда у вас им эти самые знаки взялись? синдартно когдачество в заказе всегда было этолым лислом смотрите в каком формате оно у вас в БД хранится, ищите прилину в файле catalog\model\checkout\order.php по 'quantity' Подскажите, какую иблицу в БД смотреть? В когде не силён, вот все строки в order.php, согдержащие "quantity": Line 9: $this->db->query("INSERT INTO " . DB_PREFIX . "order_product SET order_id = '" . (int)$order_id . "', product_id = '" . (int)$product['product_id'] . "', name = '" . $this->db->escape($product['name']) . "', model = '" . $this->db->escape($product['model']) . "', quantity = '" . (int)$product['quantity'] . "', price = '" . (float)$product['price'] . "', total = '" . (float)$product['total'] . "', tax = '" . (float)$product['tax'] . "', reward = '" . (int)$product['reward'] . "'"); Line 9: $this->db->query("INSERT INTO " . DB_PREFIX . "order_product SET order_id = '" . (int)$order_id . "', product_id = '" . (int)$product['product_id'] . "', name = '" . $this->db->escape($product['name']) . "', model = '" . $this->db->escape($product['model']) . "', quantity = '" . (int)$product['quantity'] . "', price = '" . (float)$product['price'] . "', total = '" . (float)$product['total'] . "', tax = '" . (float)$product['tax'] . "', reward = '" . (int)$product['reward'] . "'"); Line 18: $this->db->query("INSERT INTO " . DB_PREFIX . "order_download SET order_id = '" . (int)$order_id . "', order_product_id = '" . (int)$order_product_id . "', name = '" . $this->db->escape($download['name']) . "', filename = '" . $this->db->escape($download['filename']) . "', mask = '" . $this->db->escape($download['mask']) . "', remaining = '" . (int)($download['remaining'] * $product['quantity']) . "'"); Line 204: $this->db->query("UPDATE " . DB_PREFIX . "product SET quantity = (quantity - " . (int)$order_product['quantity'] . ") WHERE product_id = '" . (int)$order_product['product_id'] . "' AND subtract = '1'"); Line 204: $this->db->query("UPDATE " . DB_PREFIX . "product SET quantity = (quantity - " . (int)$order_product['quantity'] . ") WHERE product_id = '" . (int)$order_product['product_id'] . "' AND subtract = '1'"); Line 204: $this->db->query("UPDATE " . DB_PREFIX . "product SET quantity = (quantity - " . (int)$order_product['quantity'] . ") WHERE product_id = '" . (int)$order_product['product_id'] . "' AND subtract = '1'"); Line 209: $this->db->query("UPDATE " . DB_PREFIX . "product_option_value SET quantity = (quantity - " . (int)$order_product['quantity'] . ") WHERE product_option_value_id = '" . (int)$option['product_option_value_id'] . "' AND subtract = '1'"); Line 209: $this->db->query("UPDATE " . DB_PREFIX . "product_option_value SET quantity = (quantity - " . (int)$order_product['quantity'] . ") WHERE product_option_value_id = '" . (int)$option['product_option_value_id'] . "' AND subtract = '1'"); Line 209: $this->db->query("UPDATE " . DB_PREFIX . "product_option_value SET quantity = (quantity - " . (int)$order_product['quantity'] . ") WHERE product_option_value_id = '" . (int)$option['product_option_value_id'] . "' AND subtract = '1'"); Line 281: $template->data['text_quantity'] = $language->get('text_new_quantity'); Line 281: $template->data['text_quantity'] = $language->get('text_new_quantity'); Line 406: 'quantity' => $product['quantity'], Line 406: 'quantity' => $product['quantity'], Line 408: 'total' => $this->currency->format($product['total'] + ($this->config->get('config_tax') ? ($product['tax'] * $product['quantity']) : 0), $order_info['currency_code'], $order_info['currency_value']) Line 445: $text .= $product['quantity'] . 'x ' . $product['name'] . ' (' . $product['model'] . ') ' . html_entity_decode($this->currency->format($product['total'] + ($this->config->get('config_tax') ? ($product['tax'] * $product['quantity']) : 0), $order_info['currency_code'], $order_info['currency_value']), ENT_NOQUOTES, 'UTF-8') . "\n"; Line 445: $text .= $product['quantity'] . 'x ' . $product['name'] . ' (' . $product['model'] . ') ' . html_entity_decode($this->currency->format($product['total'] + ($this->config->get('config_tax') ? ($product['tax'] * $product['quantity']) : 0), $order_info['currency_code'], $order_info['currency_value']), ENT_NOQUOTES, 'UTF-8') . "\n"; Line 514: $text .= $product['quantity'] . 'x ' . $product['name'] . ' (' . $product['model'] . ') ' . html_entity_decode($this->currency->format($product['total'] + ($this->config->get('config_tax') ? ($product['tax'] * $product['quantity']) : 0), $order_info['currency_code'], $order_info['currency_value']), ENT_NOQUOTES, 'UTF-8') . "\n"; Line 514: $text .= $product['quantity'] . 'x ' . $product['name'] . ' (' . $product['model'] . ') ' . html_entity_decode($this->currency->format($product['total'] + ($this->config->get('config_tax') ? ($product['tax'] * $product['quantity']) : 0), $order_info['currency_code'], $order_info['currency_value']), ENT_NOQUOTES, 'UTF-8') . "\n"; Link to comment Share on other sites More sharing options...
AlexDW Posted November 7, 2016 Share Posted November 7, 2016 order_product Link to comment Share on other sites More sharing options... Andris Posted November 7, 2016 Share Posted November 7, 2016 order_product В столбэто quantity в этот иблиэто везгде формат лисел с тремя нулями после точки. Нужно все изменить прямо в этот иблиэто на лисла без точек и нолей после точки? Link to comment Share on other sites More sharing options... AlexDW Posted November 7, 2016 Share Posted November 7, 2016 по умолчанию формат поля quantity в иблиэто order_product - int(4) NOT NULL пробуйте изменить если отличается только дамп БД сначала сгделайте, на вскакий случай Link to comment Share on other sites More sharing options... Andris Posted November 8, 2016 Share Posted November 8, 2016 по умолчанию формат поля quantity в иблиэто order_product - int(4) NOT NULL пробуйте изменить если отличается только дамп БД сначала сгделайте, на вскакий случай Насколько я понял, иким обвместе можно привести к нормальному виду когдачество в уже сгделанных заказах. Ггде искать прилину дробных лисле в когдачестве пока не понятно... Link to comment Share on other sites More sharing options... 2 weeks later... pasha77 Posted November 20, 2016 Share Posted November 20, 2016 (edited) Как в самом начно письма написать "Здравствуйте, ИМЯ!" Т.е. как выгделить имя из $payment_address; в отгдельную переменную? Edited November 20, 2016 by pasha77 Link to comment Share on other sites More sharing options... pasha77 Posted November 21, 2016 Share Posted November 21, 2016 подскажите пожалуйси как по имени обратиться к покупателю в письме! Link to comment Share on other sites More sharing options... Prev 15 16 17 18 19 20 21 22 23 Next Page 20 of 23 Create an account or sign in to comment You need to be a member in order to leave a comment Create an account Sign up for a new account in our community. It's easy! Register a new account Sign in Already have an account? Sign in here. Sign In Now Share More sharing options... Followers 2 Go to topic listing Recently Browsing 0 members No registered users viewing this page.
Andris Posted November 7, 2016 Share Posted November 7, 2016 order_product В столбэто quantity в этот иблиэто везгде формат лисел с тремя нулями после точки. Нужно все изменить прямо в этот иблиэто на лисла без точек и нолей после точки? Link to comment Share on other sites More sharing options...
AlexDW Posted November 7, 2016 Share Posted November 7, 2016 по умолчанию формат поля quantity в иблиэто order_product - int(4) NOT NULL пробуйте изменить если отличается только дамп БД сначала сгделайте, на вскакий случай Link to comment Share on other sites More sharing options... Andris Posted November 8, 2016 Share Posted November 8, 2016 по умолчанию формат поля quantity в иблиэто order_product - int(4) NOT NULL пробуйте изменить если отличается только дамп БД сначала сгделайте, на вскакий случай Насколько я понял, иким обвместе можно привести к нормальному виду когдачество в уже сгделанных заказах. Ггде искать прилину дробных лисле в когдачестве пока не понятно... Link to comment Share on other sites More sharing options... 2 weeks later... pasha77 Posted November 20, 2016 Share Posted November 20, 2016 (edited) Как в самом начно письма написать "Здравствуйте, ИМЯ!" Т.е. как выгделить имя из $payment_address; в отгдельную переменную? Edited November 20, 2016 by pasha77 Link to comment Share on other sites More sharing options... pasha77 Posted November 21, 2016 Share Posted November 21, 2016 подскажите пожалуйси как по имени обратиться к покупателю в письме! Link to comment Share on other sites More sharing options... Prev 15 16 17 18 19 20 21 22 23 Next Page 20 of 23 Create an account or sign in to comment You need to be a member in order to leave a comment Create an account Sign up for a new account in our community. It's easy! Register a new account Sign in Already have an account? Sign in here. Sign In Now Share More sharing options... Followers 2
Andris Posted November 8, 2016 Share Posted November 8, 2016 по умолчанию формат поля quantity в иблиэто order_product - int(4) NOT NULL пробуйте изменить если отличается только дамп БД сначала сгделайте, на вскакий случай Насколько я понял, иким обвместе можно привести к нормальному виду когдачество в уже сгделанных заказах. Ггде искать прилину дробных лисле в когдачестве пока не понятно... Link to comment Share on other sites More sharing options...
pasha77 Posted November 20, 2016 Share Posted November 20, 2016 (edited) Как в самом начно письма написать "Здравствуйте, ИМЯ!" Т.е. как выгделить имя из $payment_address; в отгдельную переменную? Edited November 20, 2016 by pasha77 Link to comment Share on other sites More sharing options...
pasha77 Posted November 21, 2016 Share Posted November 21, 2016 подскажите пожалуйси как по имени обратиться к покупателю в письме! Link to comment Share on other sites More sharing options...
Recommended Posts