Перейти до вмісту
Пошук в
  • Детальніше...
Шукати результати, які ...
Шукати результати в ...

flai0616

Користувачі
  
  • Публікації

    251
  • З нами

  • Відвідування

Усі публікації користувача flai0616

  1. Так, а теперь вопрос) Но если у всех страниц пагинации одинаковые атрибуты title, description и keywords - не нужно ли указать каноникал на основную (первую) страницу чтобы избежать страниц с одинаковым мета-описанием?
  2. Не вовремя я) Но если у всех страниц пагинации одинаковые атрибуты title, description и keywords - не нужно ли указать каноникал на основную (первую) страницу?
  3. Может хотя бы Вы ответите на вопрос?) Не сарказм, уже реально интересно) Если у каждой страницы пагинации page=1, page=2, page=3 каноникалы указаны соответственно page=1, page=2, page=3 - почему это не является ошибкой?
  4. Не понимаю как вам это удается) Обычно сначала аргументируют свою позицию, а потом говорят что собеседник не прав. Вы же упустили первый момент) Не хорошо делаете) Объясните тогда, если у каждой страницы пагинации page=1, page=2, page=3 каноникалы указаны соответственно page=1, page=2, page=3 - почему это не является ошибкой?
  5. Киньте в ЛС тестовый доступ в вашу админку.
  6. Проверьте. В файле вашсайт\admin\view\template\common\header.tpl должен подключаться файл стилей(для версии Opencart 2.3): <link type="text/css" href="view/stylesheet/stylesheet.css" rel="stylesheet" media="screen" />
  7. За товары отвечают все таблицы, в названии которых содержится product (например oc_product, oc_product_option и т.д.). А вообще есть такая штука
  8. Ощущение что файл стилей не подгрузился) На https случаем не переходили? Возможно даже включено использование SSL в системных настройках магазина - поэтому файл стиля и не грузится (он не доступен по https)
  9. Тут все просто. Слайдер лепите в контейнер <div class="col-md-8 col-sm-12 col-xs-12"> //тут код </div> А правые элементы - каждый внутрь контейнера : <div class="col-md-4 col-sm-12 col-xs-12"> //тут код </div> Для понимания принципов - почитайте manual bootstrap https://getbootstrap.com/docs/3.3/examples/grid/
  10. Как приятно, как приятно))) Но вы проблему решили сами) Мои поздравления)
  11. <ul class="list-inline text-left"> <li class="creaton">Creation by <a href="gadzin">Gadzin</a></li> </ul> и в stylesheet.css пишем .creaton{ margin-bottom: 10px; } И потом вместо 10px пишем необходимое кол-во пикселей для выравнивания. Не забываем кеш модификаторов обновлять) Но лучше взглянуть на сайт - так точнее подскажу) Киньте ссылку в лс если не поможет
  12. flai0616

    google base

    Решение товарища @Bn174uk должно быть правильным. Возможно вы не удалили закрывающую скобку моего цикла. Попробуйте его рекомендацию написать в своем изначальном файле - должно помочь.
  13. flai0616

    google base

    Без обид, но для этого случая указана следующая фраза: "Каждому товару в opencart присваивается уникальный идентификатор. возможно, в вашем случае, необходимо изменить цифру 200 на другую, чтобы оказалось именно 200 товаров." Дайте ссылку на сайт в ЛС) Сейчас посмотрю)
  14. flai0616

    google base

    Не совсем) Это условие если id товара < или = 200 - выполнять условие if ($product['description']) Каждому товару в opencart присваивается уникальный идентификатор. возможно, в вашем случае, необходимо изменить цифру 200 на другую, чтобы оказалось именно 200 товаров. Кеш модификаторов обновляли?
  15. flai0616

    google base

    А если так?) <?php class ControllerFeedGoogleBase extends Controller { public function index() { if ($this->config->get('google_base_status')) { $output = '<?xml version="1.0" encoding="UTF-8" ?>'; $output .= '<rss version="2.0" xmlns:g="http://base.google.com/ns/1.0">'; $output .= '<channel>'; $output .= '<title>' . $this->config->get('config_name') . '</title>'; $output .= '<description>' . $this->config->get('config_meta_description') . '</description>'; $output .= '<link>' . HTTP_SERVER . '</link>'; $this->load->model('catalog/category'); $this->load->model('catalog/product'); $this->load->model('tool/image'); $products = $this->model_catalog_product->getProducts(); foreach ($products as $product) { if ($product['product_id'] <= 200) { if ($product['description']) { $output .= '<item>'; $output .= '<title>' . html_entity_decode($product['name'], ENT_QUOTES, 'UTF-8') . '</title>'; $output .= '<link>' . str_replace('&', '&amp;', str_replace('&amp;', '&', $this->url->link('product/product', 'product_id=' . $product['product_id']))) . '</link>'; $output .= '<description><![CDATA[' . strip_tags(html_entity_decode($product['description'], ENT_QUOTES, 'UTF-8')) . ']]></description>'; $output .= '<g:brand>' . html_entity_decode($product['manufacturer'], ENT_QUOTES, 'UTF-8') . '</g:brand>'; $output .= '<g:condition>new</g:condition>'; $output .= '<g:id>' . $product['product_id'] . '</g:id>'; if ($product['image']) { $output .= '<g:image_link>' . $this->model_tool_image->resize($product['image'], 500, 500) . '</g:image_link>'; } else { $output .= '<g:image_link>' . $this->model_tool_image->resize('no_image.jpg', 500, 500) . '</g:image_link>'; } $output .= '<g:mpn>' . $product['model'] . '</g:mpn>'; $supported_currencies = array('UAH', 'USD', 'EUR', 'GBP'); if (in_array($this->currency->getCode(), $supported_currencies)) { $currency = $this->currency->getCode(); } else { $currency = ($this->config->get('google_base_status')) ? $this->config->get('google_base_status') : 'UAH'; } if ((float)$product['special']) { $output .= '<g:price>' . $this->currency->format($this->tax->calculate($product['special'], $product['tax_class_id']), $currency, false, false) . '</g:price>'; } else { $output .= '<g:price>' . $this->currency->format($this->tax->calculate($product['price'], $product['tax_class_id']), $currency, false, false) . '</g:price>'; } $categories = $this->model_catalog_product->getCategories($product['product_id']); foreach ($categories as $category) { $path = $this->getPath($category['category_id']); if ($path) { $string = ''; foreach (explode('_', $path) as $path_id) { $category_info = $this->model_catalog_category->getCategory($path_id); if ($category_info) { if (!$string) { $string = $category_info['name']; } else { $string .= ' &gt; ' . $category_info['name']; } } } $output .= '<g:product_type>' . $string . '</g:product_type>'; } } $output .= '<g:quantity>' . $product['quantity'] . '</g:quantity>'; $output .= '<g:upc>' . $product['upc'] . '</g:upc>'; $output .= '<g:weight>' . $this->weight->format($product['weight'], $product['weight_class_id']) . '</g:weight>'; $output .= '<g:availability>' . ($product['quantity'] ? 'in stock' : 'out of stock') . '</g:availability>'; $output .= '</item>'; } } } $output .= '</channel>'; $output .= '</rss>'; $this->response->addHeader('Content-Type: application/rss+xml; charset=utf-8'); $this->response->setOutput($output); } } protected function getPath($parent_id, $current_path = '') { $category_info = $this->model_catalog_category->getCategory($parent_id); if ($category_info) { if (!$current_path) { $new_path = $category_info['category_id']; } else { $new_path = $category_info['category_id'] . '_' . $current_path; } $path = $this->getPath($category_info['parent_id'], $new_path); if ($path) { return $path; } else { return $new_path; } } } } ?>
  16. flai0616

    google base

    Попробуйте этот код (сохраните исходник только:-)). Должно помочь <?php class ControllerFeedGoogleBase extends Controller { public function index() { if ($this->config->get('google_base_status')) { $output = '<?xml version="1.0" encoding="UTF-8" ?>'; $output .= '<rss version="2.0" xmlns:g="http://base.google.com/ns/1.0">'; $output .= '<channel>'; $output .= '<title>' . $this->config->get('config_name') . '</title>'; $output .= '<description>' . $this->config->get('config_meta_description') . '</description>'; $output .= '<link>' . HTTP_SERVER . '</link>'; $this->load->model('catalog/category'); $this->load->model('catalog/product'); $this->load->model('tool/image'); $products = $this->model_catalog_product->getProducts(); foreach ($products as $product) { for ($i = 0; $i <= 199; $i++) { if ($product['description']) { $output .= '<item>'; $output .= '<title>' . html_entity_decode($product['name'], ENT_QUOTES, 'UTF-8') . '</title>'; $output .= '<link>' . str_replace('&', '&amp;', str_replace('&amp;', '&', $this->url->link('product/product', 'product_id=' . $product['product_id']))) . '</link>'; $output .= '<description><![CDATA[' . strip_tags(html_entity_decode($product['description'], ENT_QUOTES, 'UTF-8')) . ']]></description>'; $output .= '<g:brand>' . html_entity_decode($product['manufacturer'], ENT_QUOTES, 'UTF-8') . '</g:brand>'; $output .= '<g:condition>new</g:condition>'; $output .= '<g:id>' . $product['product_id'] . '</g:id>'; if ($product['image']) { $output .= '<g:image_link>' . $this->model_tool_image->resize($product['image'], 500, 500) . '</g:image_link>'; } else { $output .= '<g:image_link>' . $this->model_tool_image->resize('no_image.jpg', 500, 500) . '</g:image_link>'; } $output .= '<g:mpn>' . $product['model'] . '</g:mpn>'; $supported_currencies = array('UAH', 'USD', 'EUR', 'GBP'); if (in_array($this->currency->getCode(), $supported_currencies)) { $currency = $this->currency->getCode(); } else { $currency = ($this->config->get('google_base_status')) ? $this->config->get('google_base_status') : 'UAH'; } if ((float)$product['special']) { $output .= '<g:price>' . $this->currency->format($this->tax->calculate($product['special'], $product['tax_class_id']), $currency, false, false) . '</g:price>'; } else { $output .= '<g:price>' . $this->currency->format($this->tax->calculate($product['price'], $product['tax_class_id']), $currency, false, false) . '</g:price>'; } $categories = $this->model_catalog_product->getCategories($product['product_id']); foreach ($categories as $category) { $path = $this->getPath($category['category_id']); if ($path) { $string = ''; foreach (explode('_', $path) as $path_id) { $category_info = $this->model_catalog_category->getCategory($path_id); if ($category_info) { if (!$string) { $string = $category_info['name']; } else { $string .= ' &gt; ' . $category_info['name']; } } } $output .= '<g:product_type>' . $string . '</g:product_type>'; } } $output .= '<g:quantity>' . $product['quantity'] . '</g:quantity>'; $output .= '<g:upc>' . $product['upc'] . '</g:upc>'; $output .= '<g:weight>' . $this->weight->format($product['weight'], $product['weight_class_id']) . '</g:weight>'; $output .= '<g:availability>' . ($product['quantity'] ? 'in stock' : 'out of stock') . '</g:availability>'; $output .= '</item>'; } } } $output .= '</channel>'; $output .= '</rss>'; $this->response->addHeader('Content-Type: application/rss+xml; charset=utf-8'); $this->response->setOutput($output); } } protected function getPath($parent_id, $current_path = '') { $category_info = $this->model_catalog_category->getCategory($parent_id); if ($category_info) { if (!$current_path) { $new_path = $category_info['category_id']; } else { $new_path = $category_info['category_id'] . '_' . $current_path; } $path = $this->getPath($category_info['parent_id'], $new_path); if ($path) { return $path; } else { return $new_path; } } } } ?>
  17. Ничего не могу сказать по поводу указанного фильтра. На многих сайтах видел этот модуль. Вроде и не сильно дороже.
  18. Полностью согласен с @Einshtein. Прям слово в слово)
  19. flai0616

    google base

    Можете скинуть код файла контроллера google base?
  20. Так же очень рекомендую подключить ssl сертификат) Поисковые системы очень их любят) Только если будете устанавливать - лучше переходите на https граммотно) Может помочь это: https://forum.opencart.pro/topic/4504-руководство-для-перехода-на-ssl-https/ Ну или это:
  21. Я конечно не сео спец, но кое-что увидел) У вас для страниц пагинации пишутся некорректные canonical url в head. Скриншот прилагаю. У вас:(для третей страницы пагинации) <link href="http://dreaminc.ru/matrasy/dorogie/?page=3" rel="canonical"> <link href="http://dreaminc.ru/matrasy/dorogie/?page=2" rel="prev"> <link href="http://dreaminc.ru/matrasy/dorogie/?page=4" rel="next"> Должно быть:(для третей страницы пагинации) <link href="http://dreaminc.ru/matrasy/dorogie/" rel="canonical"> <link href="http://dreaminc.ru/matrasy/dorogie/?page=2" rel="prev"> <link href="http://dreaminc.ru/matrasy/dorogie/?page=4" rel="next"> Получается что у вас очень много дублей страниц категорий. Надеюсь помог)
  22. Такое ощущение что что-то не установилось (конкретно в файле home.tpl и header.tpl отсутствуют указанные переменные). Сомневаюсь то автор шаблона не смог Вам помочь, т.к. ошибка либо в файлах шаблона, либо в некорректно установленных модификаторах шаблона, либо вы просто забыли кеш модификаторов/шаблона обновить)
×
×
  • Створити...

Important Information

На нашому сайті використовуються файли cookie і відбувається обробка деяких персональних даних користувачів, щоб поліпшити користувальницький інтерфейс. Щоб дізнатися для чого і які персональні дані ми обробляємо перейдіть за посиланням . Якщо Ви натиснете «Я даю згоду», це означає, що Ви розумієте і приймаєте всі умови, зазначені в цьому Повідомленні про конфіденційність.