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

ibond

Users
  • Posts

    1,622
  • Joined

  • Last visited

Everything posted by ibond

  1. Я вас на заметку оставлю, скоро нужны будут двери
  2. много вопросов, но я пока чуть не в теме, другие темы в приоритете
  3. не работает: $filter_data = array( 'filter_category_id' => $category_id, 'filter_filter' => $filter, 'sort' => $sort, 'order' => $order, 'start' => ($page - 1) * $limit, 'limit' => $limit ); //$product_total = $this->model_catalog_product->getTotalProducts($filter_data); /*$results = $this->model_catalog_product->getProducts($filter_data);*//*start FilterVier*/foreach($this->model_extension_module_filter_vier->getProductsByFilterVier($filter_data) as $k=>$v){${$k}=$v;}/*end FilterVier*/
  4. наверное поняли не так мой dump, имелось ввиду dump таблицы mysql
  5. $connection->real_escape_string? уже в mysqli есть: public function escape($value) { return $this->connection->real_escape_string($value); } у вас в коде должно работать $connection->escape, если бы вы подгружали как $db = new DB(DB_DRIVER, DB_HOSTNAME, DB_USERNAME, DB_PASSWORD, DB_DATABASE, DB_PORT); то было бы $db->escape. Все текстовые поля так надо обернуть (минус плюс и т.д.). И должна быть ошибка, добавьте в скрипт вывод ошибок: ini_set("display_errors",1); error_reporting(E_ALL);
  6. Что именно? Покажите новый код, ошибки? Дайте дамп пустой таблицы.
  7. '$review_id', '$productId',????? '" . (int)$review_id . "', '" . (int)$productId . "', может так лучше будет? a для текста: $connection->escape($value['name'])
  8. модуля не видел такого, напишите лучше какая задача должна быть
  9. Это не полный модификатор, это кусок модификатора. Думаю дальше надо подумать
  10. Вы уверены? https://www.ukraine.com.ua/uk/info/tools/redirect/?url=https%3A%2F%2Fdemo23.ocstore.com%2Fdesktops%2Fmac%2F%3Fpage%3D26
  11. добавлю уже сюда в тему к производителям <file path="catalog/controller/product/manufacturer.php"> <operation> <search><![CDATA[ $results = $this->model_catalog_product->getProducts($filter_data); ]]></search> <add position="after"><![CDATA[ //# is_empty_to_redirect.ocmod.xml if ($page == 1 && !$results) { $this->response->redirect($this->url->link('product/manufacturer', '', true), 301); } else if ($page > 1 && !$results) { $this->response->addHeader($this->request->server['SERVER_PROTOCOL'] . ' 404 Not Found'); } //# is_empty_to_redirect.ocmod.xml ]]></add> </operation> </file>
  12. Так то ваше право куда редирект + можно поставить 301, а не как по старью стоит 302. Задача удалить страницу из индекса.
  13. <file path="catalog/controller/product/category.php"> <operation> <search><![CDATA[ $results = $this->model_catalog_product->getProducts($filter_data); ]]></search> <add position="after"><![CDATA[ //# is_empty_to_redirect.ocmod.xml if ($page > 1 && !$results) { $this->response->addHeader($this->request->server['SERVER_PROTOCOL'] . ' 404 Not Found'); } //# is_empty_to_redirect.ocmod.xml ]]></add> </operation> </file>
×
×
  • 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.