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

deus34

Новичок
  
  • Posts

    23
  • Joined

  • Last visited

Recent Profile Visitors

896 profile views

deus34's Achievements

Apprentice

Apprentice (3/14)

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

Recent Badges

1

Reputation

  1. Необходимо вывести модуль просмотренных товаров на главной, в категории и в карточке товара. Шаблон не дефалтный
  2. А этот модуль может отображаться в качестве первой основной фото?
  3. При редактировании шаблона в админке выдает ошибку Fatal error: Uncaught exception 'Exception' with message 'Error: Could not load model coloring/coloring!' in /home/a0123240/domains/xn--80abafmtf8b9a.xn--p1ai/public_html/system/storage/modification/system/engine/loader.php:59 Stack trace: #0 /home/a0123240/domains/xn--80abafmtf8b9a.xn--p1ai/public_html/admin/controller/extension/theme/coloring.php(17): Loader->model('coloring/colori...') #1 [internal function]: ControllerExtensionThemeColoring->index() #2 /home/a0123240/domains/xn--80abafmtf8b9a.xn--p1ai/public_html/system/storage/modification/system/engine/action.php(51): call_user_func_array(Array, Array) #3 /home/a0123240/domains/xn--80abafmtf8b9a.xn--p1ai/public_html/admin/controller/startup/router.php(26): Action->execute(Object(Registry), Array) #4 [internal function]: ControllerStartupRouter->index() #5 /home/a0123240/domains/xn--80abafmtf8b9a.xn--p1ai/public_html/system/storage/modification/system/engine/action.php(51): call_user_func_array(Array, Array) #6 /home/a0123240/domains/xn--80abafmtf8b9a.xn--p1ai/public in /home/a0123240/domains/xn--80abafmtf8b9a.xn--p1ai/public_html/system/storage/modification/system/engine/loader.php on line 59 Прошу помочь в данной проблеме.
  4. Добрый день. Имею openstore 2.3 Идея такова. Есть категории которым принадлежат товары. У каждой категории добавлено новое поле (например сорт). Сделан вывод этого поля в карточке товара. Но вопросы!? 1. Как вывести это поле на странице категория у каждого товара, а также в модулях типа "bestseller", featured... 2. И как вывести только "Главную категорию" в карточке товара?
  5. Всем вечер добрый. Немного доработал модуль в OS2.3, а именно реализовал вывод кнопки на главной странице в модулях - featured и special Кому надо обращайтесь. У меня на Версия ocStore 2.3.0.2 все работает!!!
  6. Вот полный код контроллера <?php class ControllerCommonHeader extends Controller { public function index() { // Analytics $this->load->model('extension/extension'); $data['analytics'] = array(); $analytics = $this->model_extension_extension->getExtensions('analytics'); foreach ($analytics as $analytic) { if ($this->config->get($analytic['code'] . '_status')) { $data['analytics'][] = $this->load->controller('extension/analytics/' . $analytic['code'], $this->config->get($analytic['code'] . '_status')); } } if ($this->request->server['HTTPS']) { $server = $this->config->get('config_ssl'); } else { $server = $this->config->get('config_url'); } if (is_file(DIR_IMAGE . $this->config->get('config_icon'))) { $this->document->addLink($server . 'image/' . $this->config->get('config_icon'), 'icon'); } $data['title'] = $this->document->getTitle(); $data['base'] = $server; $data['description'] = $this->document->getDescription(); $data['keywords'] = $this->document->getKeywords(); $data['links'] = $this->document->getLinks(); $data['styles'] = $this->document->getStyles(); $data['scripts'] = $this->document->getScripts(); $data['lang'] = $this->language->get('code'); $data['direction'] = $this->language->get('direction'); $data['name'] = $this->config->get('config_name'); if (is_file(DIR_IMAGE . $this->config->get('config_logo'))) { $data['logo'] = $server . 'image/' . $this->config->get('config_logo'); } else { $data['logo'] = ''; } $this->load->language('common/header'); $data['og_url'] = (isset($this->request->server['HTTPS']) ? HTTPS_SERVER : HTTP_SERVER) . substr($this->request->server['REQUEST_URI'], 1, (strlen($this->request->server['REQUEST_URI'])-1)); $data['og_image'] = $this->document->getOgImage(); $data['text_home'] = $this->language->get('text_home'); // Wishlist if ($this->customer->isLogged()) { $this->load->model('account/wishlist'); $data['text_wishlist'] = sprintf($this->language->get('text_wishlist'), $this->model_account_wishlist->getTotalWishlist()); } else { $data['text_wishlist'] = sprintf($this->language->get('text_wishlist'), (isset($this->session->data['wishlist']) ? count($this->session->data['wishlist']) : 0)); } $data['text_shopping_cart'] = $this->language->get('text_shopping_cart'); $data['text_logged'] = sprintf($this->language->get('text_logged'), $this->url->link('account/account', '', true), $this->customer->getFirstName(), $this->url->link('account/logout', '', true)); $data['text_account'] = $this->language->get('text_account'); $data['text_register'] = $this->language->get('text_register'); $data['text_login'] = $this->language->get('text_login'); $data['text_order'] = $this->language->get('text_order'); $data['text_transaction'] = $this->language->get('text_transaction'); $data['text_download'] = $this->language->get('text_download'); $data['text_logout'] = $this->language->get('text_logout'); $data['text_checkout'] = $this->language->get('text_checkout'); $data['text_information'] = $this->language->get('text_information'); $data['text_page'] = $this->language->get('text_page'); $data['text_category'] = $this->language->get('text_category'); $data['text_all'] = $this->language->get('text_all'); $data['home'] = $this->url->link('common/home'); $data['wishlist'] = $this->url->link('account/wishlist', '', true); $data['logged'] = $this->customer->isLogged(); $data['account'] = $this->url->link('account/account', '', true); $data['register'] = $this->url->link('account/register', '', true); $data['login'] = $this->url->link('account/login', '', true); $data['order'] = $this->url->link('account/order', '', true); $data['transaction'] = $this->url->link('account/transaction', '', true); $data['download'] = $this->url->link('account/download', '', true); $data['logout'] = $this->url->link('account/logout', '', true); $data['shopping_cart'] = $this->url->link('checkout/cart'); $data['checkout'] = $this->url->link('checkout/checkout', '', true); $this->load->model('catalog/information'); $data['informations'] = array(); foreach ($this->model_catalog_information->getInformations() as $result) { $data['informations'][] = array( 'title' => $result['title'], 'href' => $this->url->link('information/information', 'information_id=' . $result['information_id']) ); } $data['contact'] = $this->url->link('information/contact'); $data['telephone'] = $this->config->get('config_telephone'); // Menu $this->load->model('catalog/category'); $this->load->model('catalog/product'); $this->load->model('tool/image'); $data['categories'] = array(); $categories = $this->model_catalog_category->getCategories(0); foreach ($categories as $category) { $image = $this->model_tool_image->resize('no_image.jpg', $this->config->get($this->config->get('config_theme') . '_image_product_width'), $this->config->get($this->config->get('config_theme') . '_image_product_height')); if ($category['top']) { // Level 2 $children_data = array(); $children = $this->model_catalog_category->getCategories($category['category_id']); foreach ($children as $child) { $filter_data = array( 'filter_category_id' => $child['category_id'], 'filter_sub_category' => true ); $children_data[] = array( 'name' => $child['name'] . ($this->config->get('config_product_count') ? ' (' . $this->model_catalog_product->getTotalProducts($filter_data) . ')' : ''), 'href' => $this->url->link('product/category', 'path=' . $category['category_id'] . '_' . $child['category_id']) ); } // Level 1 $data['categories'][] = array( 'thumb' => $image, 'name' => $category['name'], 'href' => $this->url->link('product/category', 'path=' . $category['category_id']), 'children' => $children_data, 'column' => $category['column'] ? $category['column'] : 1 ); } } $data['language'] = $this->load->controller('common/language'); $data['currency'] = $this->load->controller('common/currency'); $data['search'] = $this->load->controller('common/search'); $data['cart'] = $this->load->controller('common/cart'); // For page specific css if (isset($this->request->get['route'])) { if (isset($this->request->get['product_id'])) { $class = '-' . $this->request->get['product_id']; } elseif (isset($this->request->get['path'])) { $class = '-' . $this->request->get['path']; } elseif (isset($this->request->get['manufacturer_id'])) { $class = '-' . $this->request->get['manufacturer_id']; } elseif (isset($this->request->get['information_id'])) { $class = '-' . $this->request->get['information_id']; } else { $class = ''; } $data['class'] = str_replace('/', '-', $this->request->get['route']) . $class; } else { $data['class'] = 'common-home'; } return $this->load->view('common/header', $data); } }
  7. Добрый день. Прошу подсказать как вывести картинки подкатегорий в выпадающем верхнем меню? Использую стандартный шаблон + openstore 2.3 Работаю с двумя файлами /catalog/controller/common/header.php /catalog/view/theme/default/template/common/header.tpl Но пока получилось вывести только no_image
  8. Добрый день. У меня не работают отзывы о магазине. Отзыв отправляю, а куда он попадает не понимаю! Помогите с этим вопросом
×
×
  • 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.