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

aplouse

Newbie
  
  • Posts

    3
  • Joined

  • Last visited

Recent Profile Visitors

1,338 profile views

aplouse's Achievements

Rookie

Rookie (2/14)

  • First Post
  • Week One Done
  • One Month Later
  • One Year In
  • Conversation Starter

Recent Badges

0

Reputation

  1. Приталенное серое платье: Серое платье без рукавов. Приталенный покрой, округлый вырез и драпированный эффект ... http://t.co/3q8BXkVrla

  2. Поздравляем Анастасию Гутнову с победой в нашем ежемесячном розыгрыше! Щастливую обладательницу подарочного сер.. http://t.co/G9LXQSX8ja

  3. Приталенное серое платье: Серое платье без рукавов. Приталенный покрой, округлый вырез и драпированный эффект ... http://t.co/pQr2XI6cDm

  4. В файле контроллера \catalog\controller\feed\latest_products_rss.php вроде прописана кодировка. Как то так: $description .= utf8_encode(html_entity_decode($product['description'])); Содержимое файла: <?php class ControllerFeedLatestProductsRSS extends Controller { public function index() { if ($this->config->get('latest_products_rss_status')) { $this->load->model('catalog/product'); $this->load->model('localisation/currency'); $this->load->model('tool/image'); $this->load->language('feed/latest_products_rss'); $limit = $this->config->get('latest_products_rss_limit') ? $this->config->get('latest_products_rss_limit') : 100; $show_price = $this->config->get('latest_products_rss_show_price'); $include_tax = $this->config->get('latest_products_rss_include_tax'); $show_image = $this->config->get('latest_products_rss_show_image'); if ($show_image) { $image_width = $this->config->get('latest_products_rss_image_width') ? $this->config->get('latest_products_rss_image_width') : 100; $image_height = $this->config->get('latest_products_rss_image_height') ? $this->config->get('latest_products_rss_image_height') : 100; } $products = $this->model_catalog_product->getLatestProducts($limit); if (isset($this->request->get['currency'])) { $currency = $this->request->get['currency']; } else { $currency = $this->currency->getCode(); } $output = '<?xml version="1.0" encoding="UTF-8" ?>'; $output .= '<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">'; $output .= '<channel>'; $output .= '<atom:link href="' . HTTP_SERVER . 'index.php?route=feed/latest_products_rss" rel="self" type="application/rss+xml" />'; $output .= '<title><![CDATA[' . $this->config->get('config_name') . ']]></title>'; $output .= '<description><![CDATA[' . $this->config->get('config_meta_description') . ']]></description>'; $output .= '<link><![CDATA[' . HTTP_SERVER . ']]></link>'; foreach ($products as $product) { if ($product['description']) { $title = utf8_encode(html_entity_decode($product['name'])); $link = $this->url->link('product/product', 'product_id=' . $product['product_id']); $description = ""; if ($show_price) { if ($include_tax) { if ((float) $product['special']) { $price = $this->currency->format($this->tax->calculate($product['special'], $product['tax_class_id']), $currency, FALSE, TRUE); } else { $price = $this->currency->format($this->tax->calculate($product['price'], $product['tax_class_id']), $currency, FALSE, TRUE); } } else { if ((float) $product['special']) { $price = $this->currency->format($product['special'], $currency, FALSE, TRUE); } else { $price = $this->currency->format($product['price'], $currency, FALSE, TRUE); } } $description .= '<p><strong>' . $this->language->get('text_price') . ' ' . $price . '</strong></p>'; } if ($show_image && $product['image'] != '') { $image_url = $this->model_tool_image->resize($product['image'], $image_width, $image_height); $description .= '<p><a href="' . $link . '"><img src="' . $image_url . '"></a></p>'; } $description .= utf8_encode(html_entity_decode($product['description'])); $output .= '<item>'; $output .= '<title><![CDATA[' . $title . ']]></title>'; $output .= '<link><![CDATA[' . $link . ']]></link>'; $output .= '<description><![CDATA[' . $description . ']]></description>'; $output .= '<guid>' . $link . '</guid>'; $output .= '<pubDate>' . date(DATE_RSS, strtotime($product['date_added'])) . '</pubDate>'; $output .= '</item>'; } } $output .= '</channel>'; $output .= '</rss>'; $this->response->addHeader('Content-Type: application/rss+xml'); $this->response->setOutput($output); } } } И почему текст не приобретает надлежащий вид при ручной смене кодировки на ЮТФ-8?
  5. Установил модуль latestproductsrssfeedv1.21foropencart1.5.x, xml формируется, но вместо русского текста - крякозябры. В хэдэре кодировка - ЮТФ-8. Смена кодировки вручную не помогает. http://dresskod.biz/index.php?route=feed/latest_products_rss&currency=HRU Взят отсюда: http://www.opencart.com/index.php?route=extension/extension/info&extension_id=4595&filter_search=rss&filter_download_id=29 Кто знает суть проблеммы, прошу помочь.
×
×
  • 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.