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

Mysha

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

    162
  • З нами

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

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

  1. 2.3 сам сразу отдает sitemap по дефолтному адресу. Я запилил родные модули, сделав отдельные версии для Гугл и Яндекс. Ждем пока они расчухают новье.
  2. Спасибо. Но странно, что По алфавиту от А до Я - другой пункт в дроп-дауне. Как сделать так, чтобы по умолчанию - было Order ID?
  3. А вот все про УРЛы говорят. По-умолчанию какая структура URL выходит? И кто на 2302 ставил?
  4. https://opencartforum.com/topic/64003-%D1%84%D0%B8%D0%BB%D1%8C%D1%82%D1%80-%D0%B4%D0%BB%D1%8F-21/
  5. Купил на 2.3 модуль AJAX Filter & SEO Links за $19 https://www.opencart.com/index.php?route=extension/extension/info&extension_id=9704&filter_search=ajax%20filter От типа европейской студии веб-дизайна Dreamvention. Инструкции по установке нет. Ребята сказали "просто копируешь". Скопировал, получил 500-ки при активации модуля. Права накинул на модуль, все равно 500-ки. Дал доступ их саппорту, они руками что-то сделали, сказали, что у меня файл не докопировался (полное гониво). Сказали, что все работает. Докинул модуль в шаблон, ничего не работает. Ползунок двигаешь и ничего, продукты задваиваются. Снял им 2 видео, они ответили, что все работает. Потом психанул и начал угрожать рефандом и отзывом на OC.com. Что-то поправили, фильтр пошел по цене и производителю. Что поправили, не говорят. Сказали только, что виноваты мои специфические цены (или их формат?). Теперь скорее работает, чем не работает, но ввод цифр с клавиатуры сбрасывается в дефолт. Попросили 2 дня таймаута, чтобы разобраться. Это так, отзыв. В общем, ребята, не экономьте вы 6 баксов, и берите MFP.
  6. Очень прошу p0v1n0m найти время для доработки. Или линки на другие модули, кроме вышеупомянутых, стоимостью менее $20.
  7. Если кому интересно. Переставлять нельзя.
  8. А что за сортировка вообще "По-умолчанию". Это пор order ID?
  9. Поставщик не будет следить за форматом файла. Однажды вы получите на сайте стыд с известной приставкой и будете думать как откатится. Думайте в сторону API у поставщика и или человека, который по утрам будет перебивать остатки руками, пусть и в Excel.
  10. Готовые решения для чего? Чтобы настроить параметры в Гугл консоли? Не смешите. Все уже настроено руками под конкретный проект. Роботс соответствует сайтмапу. Только уникальные URL. Все с параметрами - в бане.
  11. Уважаемый Otvet! Столкнулся с такой проблемой. OC 2.3 с встроенным ЧПУ дает дубли URL по трем адресам: Первый раз: /superproduct1 Второй раз: /your/category/subcategory/superproduct1 Третий раз: /manufacturer/superproduct1 Ваш модуль это фиксит? Мне кажется неоптимальным выдавать одни и те же карточки по трем разным URL.
  12. Перепилил файл, чтобы уйти от затраивания ссылок. Теперь все в одном экземпляре - путь через меню, чтобы был градусник. <?php class ControllerExtensionFeedYandexSitemap extends Controller { public function index() { if ($this->config->get('yandex_sitemap_status')) { $output = '<?xml version="1.0" encoding="UTF-8"?>'; $output .= '<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">'; $this->load->model('catalog/product'); $this->load->model('catalog/category'); $output .= $this->getCategories(0); $this->load->model('catalog/manufacturer'); $manufacturers = $this->model_catalog_manufacturer->getManufacturers(); foreach ($manufacturers as $manufacturer) { $output .= '<url>'; $output .= '<loc>' . $this->url->link('product/manufacturer/info', 'manufacturer_id=' . $manufacturer['manufacturer_id']) . '</loc>'; $output .= '<changefreq>weekly</changefreq>'; /** В этом блоке переменная lastmod пустая **/ $output .= '<priority>0.7</priority>'; $output .= '</url>'; } $this->load->model('catalog/information'); $informations = $this->model_catalog_information->getInformations(); foreach ($informations as $information) { $output .= '<url>'; $output .= '<loc>' . $this->url->link('information/information', 'information_id=' . $information['information_id']) . '</loc>'; $output .= '<changefreq>weekly</changefreq>'; $output .= '<priority>0.5</priority>'; $output .= '</url>'; } $output .= '</urlset>'; $this->response->addHeader('Content-Type: application/xml'); $this->response->setOutput($output); } } protected function getCategories($parent_id, $current_path = '') { $output = ''; $results = $this->model_catalog_category->getCategories($parent_id); foreach ($results as $result) { if (!$current_path) { $new_path = $result['category_id']; } else { $new_path = $current_path . '_' . $result['category_id']; } $output .= '<url>'; $output .= '<loc>' . $this->url->link('product/category', 'path=' . $new_path) . '</loc>'; $output .= '<changefreq>weekly</changefreq>'; $output .= '<priority>0.7</priority>'; $output .= '</url>'; $products = $this->model_catalog_product->getProducts(array('filter_category_id' => $result['category_id'])); foreach ($products as $product) { $output .= '<url>'; $output .= '<loc>' . $this->url->link('product/product', 'path=' . $new_path . '&product_id=' . $product['product_id']) . '</loc>'; $output .= '<changefreq>weekly</changefreq>'; $output .= '<lastmod>' . date('Y-m-d\TH:i:sP', strtotime($product['date_modified'])) . '</lastmod>'; $output .= '<priority>1.0</priority>'; $output .= '</url>'; } $output .= $this->getCategories($result['category_id'], $new_path); } return $output; } }
  13. Штатный Sitemap оказался диким придурком, и затроил мне все продукты в карте. Первый раз: /superproduct1 Второй раз: /your/category/subcategory/superproduct1 Третий раз: /manufacturer/superproduct1 Может быть я чего-то не понимаю в этой жизни, но зачем? Мы говорим боту ходить 3 раза по одному и тому же контенту, бот оставляет в индексе одну из страниц. А если лишнее закрыть в robots, GoogleBot скажет: Предупреждение, страницы из sitemap закрыты для индексирования. Приоритет у всех 3 страниц один и тот же. В чем великолепие логики автора? Может я чего-то не понимаю?
  14. Яндекс получил файл без image, Гугл - с image. В robots.txt указал каждому свое. Все должны быть довольны.
  15. В общем, я заклонировал модуль Google, сделал его Yandex и потом пильнул PHP вот так: Было: <?php class ControllerExtensionFeedGoogleSitemap extends Controller { public function index() { if ($this->config->get('google_sitemap_status')) { $output = '<?xml version="1.0" encoding="UTF-8"?>'; $output .= '<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:image="http://www.google.com/schemas/sitemap-image/1.1">'; $this->load->model('catalog/product'); $this->load->model('tool/image'); $products = $this->model_catalog_product->getProducts(); foreach ($products as $product) { if ($product['image']) { $output .= '<url>'; $output .= '<loc>' . $this->url->link('product/product', 'product_id=' . $product['product_id']) . '</loc>'; $output .= '<changefreq>weekly</changefreq>'; $output .= '<lastmod>' . date('Y-m-d\TH:i:sP', strtotime($product['date_modified'])) . '</lastmod>'; $output .= '<priority>1.0</priority>'; $output .= '<image:image>'; $output .= '<image:loc>' . $this->model_tool_image->resize($product['image'], $this->config->get($this->config->get('config_theme') . '_image_popup_width'), $this->config->get($this->config->get('config_theme') . '_image_popup_height')) . '</image:loc>'; $output .= '<image:caption>' . $product['name'] . '</image:caption>'; $output .= '<image:title>' . $product['name'] . '</image:title>'; $output .= '</image:image>'; $output .= '</url>'; } } Стало: <?php class ControllerExtensionFeedYandexSitemap extends Controller { public function index() { if ($this->config->get('yandex_sitemap_status')) { $output = '<?xml version="1.0" encoding="UTF-8"?>'; $output .= '<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">'; $this->load->model('catalog/product'); $products = $this->model_catalog_product->getProducts(); foreach ($products as $product) { if ($product) { $output .= '<url>'; $output .= '<loc>' . $this->url->link('product/product', 'product_id=' . $product['product_id']) . '</loc>'; $output .= '<changefreq>weekly</changefreq>'; $output .= '<lastmod>' . date('Y-m-d\TH:i:sP', strtotime($product['date_modified'])) . '</lastmod>'; $output .= '<priority>1.0</priority>'; $output .= '</url>'; } } Одобряете? Или...?
  16. Теперь это понятно. Вопрос как подрезать гугломодуль до понимания Яндексом. Было: <url> <loc>http://dom.dom/product-id163</loc> <changefreq>weekly</changefreq> <lastmod>2016-10-14T17:46:10+03:00</lastmod> <priority>1.0</priority> <image:image> <image:loc> http://dom.dom/product-id163/U-0-1-3-800x800.jpg </image:loc> <image:caption>Product 163/image:caption> <image:title>Product 163</image:title> </image:image> </url> Должно быть? <url> <loc>http://dom.dom/product-id163</loc> <changefreq>weekly</changefreq> <lastmod>2016-10-14T17:46:10+03:00</lastmod> <priority>1.0</priority> </url> Все верно я понял?

×
×
  • Створити...

Important Information

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