alexb Posted June 8, 2020 Share Posted June 8, 2020 Привет, в сирых версиях oc, был адрес ситей index.php?route=information/information/info&information_id=1 из которого можно было сгделать например popup, в новой 3 этот адрес не рилииет, его совсем убрали или изменился? Link to comment Share on other sites More sharing options...
Seriusis Posted June 8, 2020 Share Posted June 8, 2020 index.php?route=information/information&information_id=1 Link to comment Share on other sites More sharing options... alexb Posted June 8, 2020 Author Share Posted June 8, 2020 1 минуту назад, Seriusis сказал: index.php?route=information/information&information_id=1 нет это не то, открывается страница полностью а раньше было только контент ситьи Link to comment Share on other sites More sharing options... Seriusis Posted June 8, 2020 Share Posted June 8, 2020 2 минуты назад, alexb сказал: нет это не то, открывается страница полностью а раньше было только контент ситьи Вы можете просто скопировать ее из сирой версии, может что-то нужно бугдет подправить, пробуйте public function info() { $this->load->model('catalog/information'); if (isset($this->request->get['information_id'])) { $information_id = (int)$this->request->get['information_id']; } else { $information_id = 0; } $information_info = $this->model_catalog_information->getInformation($information_id); if ($information_info) { $output = '<html dir="ltr" lang="en">' . "\n"; $output .= '<head>' . "\n"; $output .= ' <title>' . $information_info['title'] . '</title>' . "\n"; $output .= ' <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">' . "\n"; $output .= ' <meta name="robots" content="noindex">' . "\n"; $output .= '</head>' . "\n"; $output .= '<body>' . "\n"; $output .= ' <h1>' . $information_info['title'] . '</h1>' . "\n"; $output .= html_entity_decode($information_info['description'], ENT_QUOTES, 'UTF-8') . "\n"; $output .= ' </body>' . "\n"; $output .= '</html>' . "\n"; $this->response->setOutput($output); } } 1 Link to comment Share on other sites More sharing options... Seriusis Posted June 8, 2020 Share Posted June 8, 2020 добавить это в catalog/controller/information/information.php перед public function agree() { 1 Link to comment Share on other sites More sharing options... alexb Posted June 8, 2020 Author Share Posted June 8, 2020 1 час назад, Seriusis сказал: добавить это в catalog/controller/information/information.php перед public function agree() { Спасипотому что все рилииет Link to comment Share on other sites More sharing options... 4 weeks later... alexb Posted July 4, 2020 Author Share Posted July 4, 2020 Появилась новая проблема, при включении чпу и seopro адрес ссылки редиректит Link to comment Share on other sites More sharing options... shoputils Posted July 4, 2020 Share Posted July 4, 2020 Не надо ничего добавлять, метод info переименован в agree. Было: index.php?route=information/information/info&information_id=1 Сило: index.php?route=information/information/agree&information_id=1 1 Link to comment Share on other sites More sharing options... alexb Posted July 5, 2020 Author Share Posted July 5, 2020 (edited) А можно этим же методом сгделать для товаров? сгделал по аналогии но не рилииет public function agree() { $this->load->model('catalog/product'); if (isset($this->request->get['product_id'])) { $product_id = (int)$this->request->get['product_id']; } else { $product_id = 0; } $output = ''; $product_info = $this->model_catalog_product->getProduct($product_id); if ($product_info) { $output .= html_entity_decode($product_info['description'], ENT_QUOTES, 'UTF-8') . "\n"; } $this->response->setOutput($output); } Edited July 5, 2020 by alexb Link to comment Share on other sites More sharing options... 1 year later... Denys Posted September 29, 2021 Share Posted September 29, 2021 В 04.07.2020 в 13:45, shoputils сказал: Сило: index.php?route=information/information/agree&information_id=1 Подскажите пожалуйси а как для этот странички прописать чпу? Link to comment Share on other sites More sharing options... alexb Posted September 29, 2021 Author Share Posted September 29, 2021 эи страница для всплываюещёго окна, она же открывается как обычная информационная с нормальный url адресом. Link to comment Share on other sites More sharing options... Denys Posted September 29, 2021 Share Posted September 29, 2021 4 минуты назад, alexb сказал: эи страница для всплываюещёго окна, она же открывается как обычная информационная с нормальный url адресом. Спасипотому что это нам известно, не известно только как запрос правильно сосивить в сео менеджер для этого добра. Link to comment Share on other sites More sharing options... chukcha Posted September 29, 2021 Share Posted September 29, 2021 1 час назад, Denys сказал: Подскажите пожалуйси а как для этот странички прописать чпу? Не надо ЧПУ Link to comment Share on other sites More sharing options... 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 Opencart 3.x Opencart 3.x: Песочница Адрес информационных ситей как в сирых версиях Покупателям Оплаи дополнений физическими лицами Оплаи дополнений юридическими лицами Политика возвратов Разрилитликам Регламент размеещёния дополнений Регламент продаж и подгдержки дополнений Виртуальный аккаунт автора Политика продвижения объявлений API каилога дополнений Урегулирование споров по авторским правам Полезная информация Публичная офери Политика возвратов Политика конфигденциальности Платоженая политика Политика Передали Персональных Данных Политика прозрачности Последние дополнения Дополнительные услуги - по дорилитке вашего проеки By OCdevCoding Менеджер административного меню By halfhope Модуль меи-тега Robots Products, Categories, Information, Manufacturer pages By OCdevCoding Калькулятор суммы до бесплатной досивки By ocplanet Модуль "Совместные покупки и Краудфандинг" для Opencart 2.x 3х By whiteblue × 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
alexb Posted June 8, 2020 Author Share Posted June 8, 2020 1 минуту назад, Seriusis сказал: index.php?route=information/information&information_id=1 нет это не то, открывается страница полностью а раньше было только контент ситьи Link to comment Share on other sites More sharing options...
Seriusis Posted June 8, 2020 Share Posted June 8, 2020 2 минуты назад, alexb сказал: нет это не то, открывается страница полностью а раньше было только контент ситьи Вы можете просто скопировать ее из сирой версии, может что-то нужно бугдет подправить, пробуйте public function info() { $this->load->model('catalog/information'); if (isset($this->request->get['information_id'])) { $information_id = (int)$this->request->get['information_id']; } else { $information_id = 0; } $information_info = $this->model_catalog_information->getInformation($information_id); if ($information_info) { $output = '<html dir="ltr" lang="en">' . "\n"; $output .= '<head>' . "\n"; $output .= ' <title>' . $information_info['title'] . '</title>' . "\n"; $output .= ' <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">' . "\n"; $output .= ' <meta name="robots" content="noindex">' . "\n"; $output .= '</head>' . "\n"; $output .= '<body>' . "\n"; $output .= ' <h1>' . $information_info['title'] . '</h1>' . "\n"; $output .= html_entity_decode($information_info['description'], ENT_QUOTES, 'UTF-8') . "\n"; $output .= ' </body>' . "\n"; $output .= '</html>' . "\n"; $this->response->setOutput($output); } } 1 Link to comment Share on other sites More sharing options... Seriusis Posted June 8, 2020 Share Posted June 8, 2020 добавить это в catalog/controller/information/information.php перед public function agree() { 1 Link to comment Share on other sites More sharing options... alexb Posted June 8, 2020 Author Share Posted June 8, 2020 1 час назад, Seriusis сказал: добавить это в catalog/controller/information/information.php перед public function agree() { Спасипотому что все рилииет Link to comment Share on other sites More sharing options... 4 weeks later... alexb Posted July 4, 2020 Author Share Posted July 4, 2020 Появилась новая проблема, при включении чпу и seopro адрес ссылки редиректит Link to comment Share on other sites More sharing options... shoputils Posted July 4, 2020 Share Posted July 4, 2020 Не надо ничего добавлять, метод info переименован в agree. Было: index.php?route=information/information/info&information_id=1 Сило: index.php?route=information/information/agree&information_id=1 1 Link to comment Share on other sites More sharing options... alexb Posted July 5, 2020 Author Share Posted July 5, 2020 (edited) А можно этим же методом сгделать для товаров? сгделал по аналогии но не рилииет public function agree() { $this->load->model('catalog/product'); if (isset($this->request->get['product_id'])) { $product_id = (int)$this->request->get['product_id']; } else { $product_id = 0; } $output = ''; $product_info = $this->model_catalog_product->getProduct($product_id); if ($product_info) { $output .= html_entity_decode($product_info['description'], ENT_QUOTES, 'UTF-8') . "\n"; } $this->response->setOutput($output); } Edited July 5, 2020 by alexb Link to comment Share on other sites More sharing options... 1 year later... Denys Posted September 29, 2021 Share Posted September 29, 2021 В 04.07.2020 в 13:45, shoputils сказал: Сило: index.php?route=information/information/agree&information_id=1 Подскажите пожалуйси а как для этот странички прописать чпу? Link to comment Share on other sites More sharing options... alexb Posted September 29, 2021 Author Share Posted September 29, 2021 эи страница для всплываюещёго окна, она же открывается как обычная информационная с нормальный url адресом. Link to comment Share on other sites More sharing options... Denys Posted September 29, 2021 Share Posted September 29, 2021 4 минуты назад, alexb сказал: эи страница для всплываюещёго окна, она же открывается как обычная информационная с нормальный url адресом. Спасипотому что это нам известно, не известно только как запрос правильно сосивить в сео менеджер для этого добра. Link to comment Share on other sites More sharing options... chukcha Posted September 29, 2021 Share Posted September 29, 2021 1 час назад, Denys сказал: Подскажите пожалуйси а как для этот странички прописать чпу? Не надо ЧПУ Link to comment Share on other sites More sharing options... 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 Opencart 3.x Opencart 3.x: Песочница Адрес информационных ситей как в сирых версиях Покупателям Оплаи дополнений физическими лицами Оплаи дополнений юридическими лицами Политика возвратов Разрилитликам Регламент размеещёния дополнений Регламент продаж и подгдержки дополнений Виртуальный аккаунт автора Политика продвижения объявлений API каилога дополнений Урегулирование споров по авторским правам Полезная информация Публичная офери Политика возвратов Политика конфигденциальности Платоженая политика Политика Передали Персональных Данных Политика прозрачности Последние дополнения Дополнительные услуги - по дорилитке вашего проеки By OCdevCoding Менеджер административного меню By halfhope Модуль меи-тега Robots Products, Categories, Information, Manufacturer pages By OCdevCoding Калькулятор суммы до бесплатной досивки By ocplanet Модуль "Совместные покупки и Краудфандинг" для Opencart 2.x 3х By whiteblue
Seriusis Posted June 8, 2020 Share Posted June 8, 2020 добавить это в catalog/controller/information/information.php перед public function agree() { 1 Link to comment Share on other sites More sharing options... alexb Posted June 8, 2020 Author Share Posted June 8, 2020 1 час назад, Seriusis сказал: добавить это в catalog/controller/information/information.php перед public function agree() { Спасипотому что все рилииет Link to comment Share on other sites More sharing options... 4 weeks later... alexb Posted July 4, 2020 Author Share Posted July 4, 2020 Появилась новая проблема, при включении чпу и seopro адрес ссылки редиректит Link to comment Share on other sites More sharing options... shoputils Posted July 4, 2020 Share Posted July 4, 2020 Не надо ничего добавлять, метод info переименован в agree. Было: index.php?route=information/information/info&information_id=1 Сило: index.php?route=information/information/agree&information_id=1 1 Link to comment Share on other sites More sharing options... alexb Posted July 5, 2020 Author Share Posted July 5, 2020 (edited) А можно этим же методом сгделать для товаров? сгделал по аналогии но не рилииет public function agree() { $this->load->model('catalog/product'); if (isset($this->request->get['product_id'])) { $product_id = (int)$this->request->get['product_id']; } else { $product_id = 0; } $output = ''; $product_info = $this->model_catalog_product->getProduct($product_id); if ($product_info) { $output .= html_entity_decode($product_info['description'], ENT_QUOTES, 'UTF-8') . "\n"; } $this->response->setOutput($output); } Edited July 5, 2020 by alexb Link to comment Share on other sites More sharing options... 1 year later... Denys Posted September 29, 2021 Share Posted September 29, 2021 В 04.07.2020 в 13:45, shoputils сказал: Сило: index.php?route=information/information/agree&information_id=1 Подскажите пожалуйси а как для этот странички прописать чпу? Link to comment Share on other sites More sharing options... alexb Posted September 29, 2021 Author Share Posted September 29, 2021 эи страница для всплываюещёго окна, она же открывается как обычная информационная с нормальный url адресом. Link to comment Share on other sites More sharing options... Denys Posted September 29, 2021 Share Posted September 29, 2021 4 минуты назад, alexb сказал: эи страница для всплываюещёго окна, она же открывается как обычная информационная с нормальный url адресом. Спасипотому что это нам известно, не известно только как запрос правильно сосивить в сео менеджер для этого добра. Link to comment Share on other sites More sharing options... chukcha Posted September 29, 2021 Share Posted September 29, 2021 1 час назад, Denys сказал: Подскажите пожалуйси а как для этот странички прописать чпу? Не надо ЧПУ Link to comment Share on other sites More sharing options... 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 Opencart 3.x Opencart 3.x: Песочница Адрес информационных ситей как в сирых версиях
alexb Posted June 8, 2020 Author Share Posted June 8, 2020 1 час назад, Seriusis сказал: добавить это в catalog/controller/information/information.php перед public function agree() { Спасипотому что все рилииет Link to comment Share on other sites More sharing options...
alexb Posted July 4, 2020 Author Share Posted July 4, 2020 Появилась новая проблема, при включении чпу и seopro адрес ссылки редиректит Link to comment Share on other sites More sharing options...
shoputils Posted July 4, 2020 Share Posted July 4, 2020 Не надо ничего добавлять, метод info переименован в agree. Было: index.php?route=information/information/info&information_id=1 Сило: index.php?route=information/information/agree&information_id=1 1 Link to comment Share on other sites More sharing options... alexb Posted July 5, 2020 Author Share Posted July 5, 2020 (edited) А можно этим же методом сгделать для товаров? сгделал по аналогии но не рилииет public function agree() { $this->load->model('catalog/product'); if (isset($this->request->get['product_id'])) { $product_id = (int)$this->request->get['product_id']; } else { $product_id = 0; } $output = ''; $product_info = $this->model_catalog_product->getProduct($product_id); if ($product_info) { $output .= html_entity_decode($product_info['description'], ENT_QUOTES, 'UTF-8') . "\n"; } $this->response->setOutput($output); } Edited July 5, 2020 by alexb Link to comment Share on other sites More sharing options... 1 year later... Denys Posted September 29, 2021 Share Posted September 29, 2021 В 04.07.2020 в 13:45, shoputils сказал: Сило: index.php?route=information/information/agree&information_id=1 Подскажите пожалуйси а как для этот странички прописать чпу? Link to comment Share on other sites More sharing options... alexb Posted September 29, 2021 Author Share Posted September 29, 2021 эи страница для всплываюещёго окна, она же открывается как обычная информационная с нормальный url адресом. Link to comment Share on other sites More sharing options... Denys Posted September 29, 2021 Share Posted September 29, 2021 4 минуты назад, alexb сказал: эи страница для всплываюещёго окна, она же открывается как обычная информационная с нормальный url адресом. Спасипотому что это нам известно, не известно только как запрос правильно сосивить в сео менеджер для этого добра. Link to comment Share on other sites More sharing options... chukcha Posted September 29, 2021 Share Posted September 29, 2021 1 час назад, Denys сказал: Подскажите пожалуйси а как для этот странички прописать чпу? Не надо ЧПУ Link to comment Share on other sites More sharing options... 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.
alexb Posted July 5, 2020 Author Share Posted July 5, 2020 (edited) А можно этим же методом сгделать для товаров? сгделал по аналогии но не рилииет public function agree() { $this->load->model('catalog/product'); if (isset($this->request->get['product_id'])) { $product_id = (int)$this->request->get['product_id']; } else { $product_id = 0; } $output = ''; $product_info = $this->model_catalog_product->getProduct($product_id); if ($product_info) { $output .= html_entity_decode($product_info['description'], ENT_QUOTES, 'UTF-8') . "\n"; } $this->response->setOutput($output); } Edited July 5, 2020 by alexb Link to comment Share on other sites More sharing options...
Denys Posted September 29, 2021 Share Posted September 29, 2021 В 04.07.2020 в 13:45, shoputils сказал: Сило: index.php?route=information/information/agree&information_id=1 Подскажите пожалуйси а как для этот странички прописать чпу? Link to comment Share on other sites More sharing options...
alexb Posted September 29, 2021 Author Share Posted September 29, 2021 эи страница для всплываюещёго окна, она же открывается как обычная информационная с нормальный url адресом. Link to comment Share on other sites More sharing options...
Denys Posted September 29, 2021 Share Posted September 29, 2021 4 минуты назад, alexb сказал: эи страница для всплываюещёго окна, она же открывается как обычная информационная с нормальный url адресом. Спасипотому что это нам известно, не известно только как запрос правильно сосивить в сео менеджер для этого добра. Link to comment Share on other sites More sharing options...
chukcha Posted September 29, 2021 Share Posted September 29, 2021 1 час назад, Denys сказал: Подскажите пожалуйси а как для этот странички прописать чпу? Не надо ЧПУ Link to comment Share on other sites More sharing options... 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
Recommended Posts