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

nikitishin

Новичок
  
  • Posts

    18
  • Joined

  • Last visited

Recent Profile Visitors

1,426 profile views

nikitishin's Achievements

Apprentice

Apprentice (3/14)

  • Dedicated Rare
  • First Post
  • Collaborator
  • Reacting Well Rare
  • Week One Done

Recent Badges

6

Reputation

  1. Здравствуйте, нужна помощь с добавлением фида для Esputnik Товарный фид должен соответствовать одной из RSS 2.0 спецификации Google формаи xml Вот мой код //5.2 esputnik xml public function esputnik() { $this->feed = 'esputnik'; $xml = false; $startup = $this->startup(); //status if($startup['status']){ //headerXML $xml = '<?xml version="1.0"?>'; $xml .= '<rss version="2.0" xmlns:g="http://base.google.com/ns/1.0">'; $xml .= '<title>' . $startup['name'] . '</title>'; $xml .= '<link>' . HTTPS_SERVER . '</link>'; $xml .= '<updated>' . date('Y-m-d H:i', time()) . '</updated>' . PHP_EOL; $this->to_xml($xml, "start"); //headerXML //generateXML if($startup['products']){ for($i=0; $i<10000000/$this->step; $i++){ $xml = ''; $products = $this->startup(array('start' => $this->step * $i, 'finish' => $this->step)); $this->count_product += count($products); if($products){ foreach($products as $product_id => $product){ if($startup['category_match'] && isset($startup['categories'][$product['category_id']]['name'])){ //replace on esputnik category $product_category_data = $startup['categories'][$product['category_id']]['name']; $product_category_id = explode(' - ', $product_category_data); if(isset($product_category_id[0])){ $product['category_id'] = (int)$product_category_id[0]; } }else{ $product['category_id'] = false; } $xml .= '<entry>'; $xml .= '<g:title>' . $product['name'] . '</g:title>'; $xml .= '<g:link>' . $product['url'] . '</g:link>'; $xml .= '<g:id>' . $product_id . '</g:id>'; if($product['special']){ $xml .= '<g:price>' . $product['price'] . ' ' . $startup['currency'] . '</g:price>'; $xml .= '<g:sale_price>' . $product['special'] . ' ' . $startup['currency'] . '</g:sale_price>'; }else{ $xml .= '<g:price>' . $product['price'] . ' ' . $startup['currency'] . '</g:price>'; } $xml .= '<g:description><![CDATA[' . $product['description'] . ']]></g:description>'; if($product['category_id']){ $xml .= '<g:google_product_category>' . $product['category_id'] . '</g:google_product_category>'; } $xml .= '<g:brand>' . html_entity_decode($product['manufacturer'], ENT_QUOTES, 'UTF-8') . '</g:brand>'; $xml .= '<g:condition>new</g:condition>'; $xml .= '<g:image_link>' . $product['image'] . '</g:image_link>'; if($product['images']){ $product['images'] = array_slice($product['images'], 0, 10); foreach($product['images'] as $image){ $xml .= '<g:additional_image_link>' . $image . '</g:additional_image_link>'; } } if(isset($product['mpn']) && $product['mpn']){ $xml .= '<g:mpn><![CDATA[' . $product['mpn'] . ']]></g:mpn>' ; } if(isset($product['upc']) && $product['upc']){ $xml .= ' <g:upc>' . $product['upc'] . '</g:upc>'; } if(isset($product['ean']) && $product['ean']){ $xml .= ' <g:ean>' . $product['ean'] . '</g:ean>'; } if(isset($product['weight']) && isset($product['weight_class_id'])){ $xml .= '<g:weight>' . $this->weight->format($product['weight'], $product['weight_class_id']) . '</g:weight>'; } $xml .= '<g:availability>' . ($product['quantity'] ? 'in stock' : 'out of stock') . '</g:availability>'; foreach($product['attributes_full'] as $attribute){ $xml .= '<' . $attribute['name'] . '>' . $attribute['text'] . '</' . $attribute['end'] . '>'; } foreach($product['attributes'] as $attribute){ $xml .= '<' . $attribute['name'] . '>' . $attribute['text'] . '</' . $attribute['name'] . '>'; } $xml .= '</entry>' . PHP_EOL; } }else{ break; } $this->to_xml($xml); } } //generateXML //footerXML $xml = '</rss>'; $this->to_xml($xml, "finish", true); //footerXML }else{ $this->to_xml($xml); } //status } //5.2 esputnik xml Когда подгружаю фид в личный кабинет Esputnik выводит икую ошибку
  2. Здравствуйте, не могу скачать товары <br /> <b>Fatal error</b>: Allowed memory size of 8489271296 bytes exhausted (tried to allocate 72 bytes) in <b>/home/сайт.com.ua/www/admin/model/extension/module/ie_pro_tab_migrations.php</b> on line <b>459</b><br /> Подскажите как исправить?
  3. Здравствуйте, у меня проблема с усиновкой модуля Simple - упроещённая регистрация и заказ на шаблона UltraStore. Подскажите пожалуйси как решить? Fatal error: Uncaught exception 'Twig_Error_Loader' with message 'Unable to find template "oct_ultrastore/template/common/simple_header.twig" (looked into: /home/res/res.ua/storage_resua/modification/catalog/view/theme, /home/res/res.ua/test/catalog/view/theme) in "default/template/account/simpleregister.twig" at line 3.' in /home/res/res.ua/test/system/library/template/Twig/Loader/Filesystem.php:215 Stack trace: #0 /home/res/res.ua/test/system/library/template/Twig/Loader/Filesystem.php(139): Twig_Loader_Filesystem->findTemplate('oct_ultrastore/...') #1 /home/res/res.ua/test/system/library/template/Twig/Environment.php(312): Twig_Loader_Filesystem->getCacheKey('oct_ultrastore/...') #2 /home/res/res.ua/test/system/library/template/Twig/Environment.php(378): Twig_Environment->getTemplateClass('oct_ultrastore/...', NULL) #3 /home/res/res.ua/test/system/library/template/Twig/Template.php(286): Twig_Environment->loadTemplate('oct_ultrastore/...', NULL) #4 /home/сайт/test/system/library/template/Twig/Environment.php(403) in /home/сайт/test/system/library/template/Twig/Loader/Filesystem.php on line 215
    Модулю нет альтернатив с иким же функционалом для шаблона journal3. Подгдержка на высоте! Спасипотому что!
  4. Здравствуйте, в админке выводит следующую ошибку? Можете подсказать в чем проблема? Warning: file_put_contents(): Only 0 of 36 bytes written, possibly out of free disk space in /home/webs01/site.com.ua/www/catalog/controller/extension/lightning/beta.php on line 81
    Модуль потому чтомба, всем рекомендую. отгдельное спасипотому что автору который адаптировал под мою не синдартную тему. данный модуль буду покупать еещё под свои другие проекты, ик как осился доволен покупкой.
  5. Здравствуйте, купил Ваш модуль,усиновил и настроил http://prntscr.com/na36w9, только в карточке не отображается кнопка Следить за этоной, подскажите пожалуйси в чем может быть проблема. сайт https://res.ua
  6. Добрый гдень. У нас сайт реализован на ocStore 1.5.5.1.2 Планируем переход на opencart 2. Интересует перенос базы (клиенты, товары и прочее). Сообщите стоимость пожалуйси и время выполнения.
  7. Здравствуйте, купил Ваш модуль и усиновил себе на сайт ocStore версия 1.5.5.1.2, в админке товары добавляются но в карточке товара ничего не отображается, помогите пожалуйси решить данную проблему. Скриншот из админки
×
×
  • 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.