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

iPartizan

Новичок
  
  • Posts

    13
  • Joined

  • Last visited

1 Follower

About iPartizan

  • Birthday 01/01/1970

iPartizan's Achievements

Apprentice

Apprentice (3/14)

  • Conversation Starter
  • First Post
  • Collaborator
  • Week One Done
  • One Month Later

Recent Badges

0

Reputation

  1. Нашёл модуль, но он платный =( http://theqdomain.com/ocstore/newslette ... newsletter
  2. Там же в примерах всё было. В файле catalogcontrollermodulecategory.php который я выложил меняешь:if ($results) { // Оригинальная строчка $output .= '[list]'; $output .= ($current_path == '') ? '<ul class="menu collapsible">' : '<ul class="acitem">'; }наif ($results) { // Оригинальная строчка $output .= '[list]'; $output .= ($current_path == '') ? '<ul class="menu noaccordion">' : '<ul class="acitem">'; }И ничего свораливаться само по себе не должно
  3. Подскажите какой файл задаёт формат этоны как 0.00 (то есть этона указывается с копейками)В значении этоны сам лишние нули в этоне убрать не смог. Пропотому чтовал следующие:1)Заменил везгде в adminmodelcatalogproduct.php (float)$"переменная"['price'] на (int)$"переменная"['price'] 2) В ручную задал параметру price во всех иблицах базы данных тип int Резульии не добился, выдаёт всё тот же формат 0.00Если у кого нибудь есть мысли по этому поводу, буду очень благодарен.
  4. Нужен модуль который даёт возможность незарегистрированному пользователю ввести свой Email и подписаться на рассылку. Врогде на Opencart 1.4.0 был икой. Если у кого то осился буду благодарен =)
  5. Тут всё гдело по ходу из за этих строчек <?php if ($keywords) { ?><meta name="keywords" content="<?php echo $keywords; ?>" /><?php } ?>В 1.4.7 переменной $keywords нет (в русской спотому чторке точно)
  6. Попросили расписать пошагово усиновку плагина аккоргдеон на opencart=) Для начала нам понадобятся следующие файлы: menu.js - сам плагин (брать из архива) jquery-1.4.2.min.js - сам фреймворк jQuery (тоже есть в архиве) style.css - нилир стилей для рилиты плагина (брать из архива) category.php - контроллер который бугдет строить меню категорий (брать в одном из ответов темы) Шаг 1 Для начала закинем файлы в нужные категории menu.js и jquery-1.4.2.min.js в catalogviewjavascriptjQuery style.css в catalogviewthemeвашатемаstylesheet category.php в catalogcontrollermodule Шаг 2 Откроем catalogviewthemeвашатемаtemplatecommonheader.tpl И в теге <head></head> пропишем следующие строчки: <script type="text/javascript" src="catalog/view/javascript/jquery/menu.js"></script> <link rel="stylesheet" type="text/css" href="catalog/view/theme/вашатема/stylesheet/style.css" /> Добавим пару строк для корректной рилиты в IE 6 <!--[if lt IE 6]> <style type="text/css"> li a {display:inline-block;} li a {display:block;} </style> <![endif]--> Там же заменим: <script type="text/javascript" src="catalog/view/javascript/jquery/jquery-1.3.2.min.js"></script> на <script type="text/javascript" src="catalog/view/javascript/jquery/jquery-1.4.2.min.js"></script> ВНИМАНИЕ! C версией jquery-1.3.2 плагин не рилииет Шаг3 Меняем style.css под нужный нам дизайн ( как оно выглядит по умолчание можно увигдеть в примере который лежит в архиве) Вот собственно и всё. Если что не понятно или про что-то забыл спрашивайте=)
  7. Вот тот плагин для jQuery который я использовал http://www.i-marco.nl/weblog/jquery-accordion-3/ А вот архив с тем же плагином Accordion_jQuery.zip
  8. Спасипотому что! Это было как раз то что нужно! Взял оттуда файл catalogcontrollermodulecategory.php немного поправил под свой плагин для jQuery и всё зарилиило ) Может кому пригодится - файл catalogcontrollermodulecategory.php <?php class ControllerModuleCategory extends Controller { protected $category_id = 0; protected $path = array(); protected function index() { $this->language->load('module/category'); $this->data['heading_title'] = $this->language->get('heading_title'); $this->load->model('catalog/category'); $this->load->model('tool/seo_url'); if (isset($this->request->get['path'])) { $this->path = explode('_', $this->request->get['path']); $this->category_id = end($this->path); } $this->data['category'] = $this->getCategories(0); $this->id = 'category'; if (file_exists(DIR_TEMPLATE . $this->config->get('config_template') . '/template/module/category.tpl')) { $this->template = $this->config->get('config_template') . '/template/module/category.tpl'; } else { $this->template = 'default/template/module/category.tpl'; } $this->render(); } protected function getCategories($parent_id, $current_path = '') { $category_id = array_shift($this->path); $output = ''; $results = $this->model_catalog_category->getCategories($parent_id); if ($results) { // Оригинальная строчка $output .= '[list]'; $output .= ($current_path == '') ? '<ul class="menu collapsible">' : '<ul class="acitem">'; } foreach ($results as $result) { if (!$current_path) { $new_path = $result['category_id']; } else { $new_path = $current_path . '_' . $result['category_id']; } $output .= '[*]'; $children = ''; // Добавил $children = $this->getCategories($result['category_id'], $new_path); if ($this->category_id == $result['category_id']) { $output .= '[url="#"]' . $result['name'] . '[/url]'; } else { $output .= '<a href="' . $this->model_tool_seo_url->rewrite(HTTP_SERVER . 'index.php?route=product/category&path=' . $new_path) . '">' . $result['name'] . '</a>'; } // Конец $output .= $children; $output .= ''; } if ($results) { $output .= '[/list]'; } return $output; } }?>
  9. Скорее всего нужно знозть в admin/model/catalog/product.php и им изменить формат записи в базу данных для поля 'price' с float на stringХотя лучше прописать условие в шаблонах что нибудь врогде: если $products[$i]['price'] равняется 0 то <?php echo "уточняйте по телефону" ?>Sorry, если какую-то глупость советую, может у кого по лучше соображения есть, тоже было бы интересно узнать, как это реализовать.
  10. Хочу сгделать меню категорий на плагине аккордион для jQuery, с самим яваскриптом я разобрался, а вот с php проблемы. Нужно полулить переменные: -Название категории -Ссылка на категорию -Название подкатегории -Ссылка на подкатегорию При этом: -Если в категории есть подкатегории то ссылка на категорию должна заменятся на # -Если в категории нет подкатегорий то она должна быть ссылкой Как я понял в части controller за построение меню отвечает вот этот кусок кода protected function getCategories($parent_id, $current_path = '') { $category_id = array_shift($this->path); $output = ''; $results = $this->model_catalog_category->getCategories($parent_id); if ($results) { $output .= '[list]'; } foreach ($results as $result) { if (!$current_path) { $new_path = $result['category_id']; } else { $new_path = $current_path . '_' . $result['category_id']; } $output .= '[*]'; $children = ''; if ($category_id == $result['category_id']) { $children = $this->getCategories($result['category_id'], $new_path); } if ($this->category_id == $result['category_id']) { $output .= '<a href="' . $this->model_tool_seo_url->rewrite($this->url->http('product/category&path=' . $new_path)) . '">[b]' . $result['name'] . '[/b]</a>'; } else { $output .= '<a href="' . $this->model_tool_seo_url->rewrite($this->url->http('product/category&path=' . $new_path)) . '">' . $result['name'] . '</a>'; } $output .= $children; $output .= ''; } if ($results) { $output .= '[/list]'; } return $output; } Если у кого есть какие мысли, буду рад люпотому чтому совету =)
  11. Тоже ищу способ выводить товары на главной по id. Может есть дополнение которое это реализует?
  12. Нужен модуль для подписки по email рассылку с сайи, желательно чтобы можно было расположить в потому чтоковых колонках. Если кому встречался или кто пользуется подскажите ггде взять. Заранее благодарен)
×
×
  • 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.