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

omcode

Newbie
  
  • Posts

    7
  • Joined

  • Last visited

Everything posted by omcode

  1. Здравствуйте.Необходимо натянуть верстку на Opencart 2.3Для более подробной информации обращайтесь в личку. Я на связи.Срочно!
  2. Здравствуйте! Подскажите как правильно подключить и использовать с моделями Opencart библиотеки https://github.com/TelegramBot/Api или https://github.com/php-telegram-bot/core Composer установлен В файл бота библиотека подключена <?php class ControllerApiTelegram extends Controller { public function index() { try { $bot = new \TelegramBot\Api\Client('токен'); // Запуск бота $bot->command('start', function ($message) use ($bot) { $answer = 'Добро пожаловать!'; $bot->sendMessage($message->getChat()->getId(), $answer); }); // помощь $bot->command('help', function ($message) use ($bot) { $answer = 'Команды: /help - помощь'; $bot->sendMessage($message->getChat()->getId(), $answer); }); $bot->command('qaanswer', function ($message) use ($bot) { $this->load->model('catalog/product'); $pr = $this->model_catalog_product->getProduct(430); $bot->sendMessage($message->getChat()->getId(), str_replace("<br/>", "\n", $pr["price"])); $bot->sendMessage($message->getChat()->getId(), str_replace("<br/>", "\n", "тестовый текст")); }); $bot->run(); } catch (\TelegramBot\Api\Exception $e) { $e->getMessage(); } } } Вот этот код не хочет работать $this->load->model('catalog/product'); $pr = $this->model_catalog_product->getProduct(430);
  3. Здравствуйте. Необходимо произвести адаптацию кода модуля для php 7 - 7.2
  4. Необходимо произвести интеграцию Opencart с Frontpad по API https://docs.google.com/document/d/1gs81CYvJ6FD9KOseL3GOcrcR2YnEvjQqJn9mJRRc5Yk/edit Отправка заказа С учётом опций товара С учётом скидки за заказ С учётом баллов Используем модуль simple для разделения полей адреса С учётом вариантов оплаты Передаём affiliate (филиал из поля simple) В descr передаём способ доставки заказа Получение информации о клиенте Уникальный ключ - электронная почта Получаем из frontpad card, sale, score Записываем в opencart Нужно сделать возможность запрашивать по крону Список товаров Уникальный ключ артикул Получаем цену Получаем цену модификаторов Нужно сделать возможность запрашивать по крону Настройки модуля Секретный ключ в настройках модуля channel - Название сайта Обязательные требования Версия Opencart/Ocstore 2.1 - 2.3 PHP 5.4 и выше Комментарии в коде
  5. Видел полноценный магазин на Telegram который берёт товары из базы opencart 2 http://api-pro.ru/
×
×
  • 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.