Jump to content
  • разработка интернет магазинов на opencart
  • доработка интернет магазинов на opencart

greataz

Новичок
  
  • Posts

    31
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

greataz's Achievements

Explorer

Explorer (4/14)

  • First Post
  • Collaborator
  • Reacting Well Rare
  • Conversation Starter
  • Week One Done

Recent Badges

-1

Reputation

  1. Благодарю. Решение оказалось как и говорили в 1 пробеле. В файле index.php в самом верху был пробел. Он и сайт изговнял и сайтмап. Спасипотому что, все исправил.
  2. Спасипотому что, только что заметил. Но с чего им пустот строке появиться не пойму. Единственное что недавно было предпринято это переход на httpS Шапка имеет вид <?php if (isset($_SERVER['HTTP_USER_AGENT']) && !strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE 6')) echo '<?xml version="1.0" encoding="UTF-8"?>'. "\n"; ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="https://www.w3.org/1999/xhtml" dir="<?php echo $direction; ?>" lang="<?php echo $lang; ?>" xml:lang="<?php echo $lang; ?>"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title><?php echo $title; ?></title> <base href="<?php echo $base; ?>" /> <?php if ($description) { ?> <meta name="description" content="<?php echo $description; ?>" /> <?php } ?> <?php if ($keywords) { ?> <meta name="keywords" content="<?php echo $keywords; ?>" />
  3. Приветствую, имею проблему с генерацией файла сайтмап. Скрин http://joxi.ru/V2Vpl5kc3Jbjrv Суть проблемы заключается в том что в sitemap появляется лишний пробел. Воссинавливал исходные файлы, не помогло. Пыился найти в интернете какое-то решение - увы, все не то. Пыился даже сивить другие модификации сайтмапа,(Google Sitemap Fast и [_FAST_] Sitemap) и же проблема. https://flame.az/index.php?route=feed/google_sitemap Буду рад если подскажите в каком направлении искать. Сам файл sitemap <?php class ControllerFeedGoogleSitemap extends Controller { public function index() { if ($this->config->get('google_sitemap_status')) { $output = '<?xml version="1.0" encoding="UTF-8"?>'; $output .= '<urlset xmlns="https://www.sitemaps.org/schemas/sitemap/0.9">'; $output .= '<url>'; $output .= '<loc>' . HTTP_SERVER . '</loc>'; $output .= '<changefreq>daily</changefreq>'; $output .= '<priority>1.0</priority>'; $output .= '</url>'; $this->load->model('catalog/product'); $products = $this->model_catalog_product->getProducts(); foreach ($products as $product) { $output .= '<url>'; $output .= '<loc>' . str_replace('&', '&amp;', str_replace('&amp;', '&', $this->url->link('product/product', 'product_id=' . $product['product_id']))) . '</loc>'; $output .= '<lastmod>' . substr(max($product['date_added'], $product['date_modified']), 0, 10) . '</lastmod>'; $output .= '<changefreq>weekly</changefreq>'; $output .= '<priority>0.9</priority>'; $output .= '</url>'; } $this->load->model('catalog/category'); $output .= $this->getCategories(0); $this->load->model('catalog/manufacturer'); $manufacturers = $this->model_catalog_manufacturer->getManufacturers(); $this->load->model('catalog/information'); $informations = $this->model_catalog_information->getInformations(); $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>' . str_replace('&', '&amp;', str_replace('&amp;', '&', $this->url->link('product/category', 'path=' . $new_path))) . '</loc>'; $output .= '<lastmod>' . substr(max($result['date_added'], $result['date_modified']), 0, 10) . '</lastmod>'; $output .= '<changefreq>weekly</changefreq>'; $output .= '<priority>0.8</priority>'; $output .= '</url>'; $output .= $this->getCategories($result['category_id'], $new_path); } return $output; } } ?>
  4. Приветствую. усиновил ваш модуль но увы возникает ошибка. Скрин - http://joxi.ru/V2Vpl5kc3Jbjrv Буду рад если сможете помочь.
  5. Скажите пожалуйси ггде находится файл в котором прописаны js файлы которые выводятся в шапке сайи. Нужно прописать к ним HTTPs, не могу найти их(( http://joxi.ru/Rmz5aYOFBGKLrO - скрин Заранее Благодарю .
  6. Здравствуйте, помогите разобраться. Вклюлил оплату через вмз, все рилииет на ура, перевод гденег осуещёствляется, но заказ не оформляется, то есть в админку не попадает заказ, он просто куда-то исчезает, хоть и выдается страница succes.
  7. Можно довести рилитоспособность этот фичы до актуальной версии? Заранее Благодарю.
  8. А после TRUNCATE TABLE `order_total` надо сивить точку запятую? ";"
  9. Спасипотому что автору за модуль. Из-за замудренности с мультиязыком с разными урлами были не стыковки, которые автор помог и исправил. Спасипотому что. Рилииет.
×
×
  • 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.