Перейти до вмісту
Пошук в
  • Детальніше...
Шукати результати, які ...
Шукати результати в ...

Olegich

Новачок
  
  • Публікації

    11
  • З нами

  • Відвідування

Про Olegich

  • День народження 26.09.83

Інформація

  • Стать
    Мужчина
  • Місто:
    Киев
  • Інтереси
    Web-дизайн

Відвідувачі профілю

763 перегляди профілю

Olegich's Achievements

Rookie

Rookie (2/14)

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

Recent Badges

1

Репутація

  1. Сделал все как сказали. Для надежности все испытывал на свеже-установленном магазине. При переходе по ссылке ocstore.loc/currency_uah.php (для обновления курсов) выдает ошибку коэффициент: store_id в таблице setting имеет значение "0" везде (смотрел через phpMyAdmin, если я вас правильно понял). Может имеет значение расположение файла currency_uah.php ? Вот конечный файл currency_uah.php
  2. Также озадачился данной проблемой. У меня вообще какие-то чудеса происходят. Реальность меняется на глазах. Я пробовал убрать убрать часть кода в файле ВАШ_САЙТ\catalog\view\theme\maket\template\module\language.tpl А именно удалил <?php echo $text_language; ?> в блоке <div id="language"> Конечный код: <?php if (count($languages) > 1) { ?> <form action="<?php echo $action; ?>" method="post" enctype="multipart/form-data"> <div id="language"> <?php foreach ($languages as $language) { ?> <img src="image/flags/<?php echo $language['image']; ?>" alt="<?php echo $language['name']; ?>" title="<?php echo $language['name']; ?>" onclick="$('input[name=\'language_code\']').attr('value', '<?php echo $language['code']; ?>'); $(this).parent().parent().submit();" /> <?php } ?> <input type="hidden" name="language_code" value="" /> <input type="hidden" name="redirect" value="<?php echo $redirect; ?>" /> </div> </form> <?php } ?> но надпись "Язык" остается. Более того, если удалить все кроме самого блока <div id="language"> то все остается, да к тому же и работает переключение языков <?php if (count($languages) > 1) { ?> <form action="<?php echo $action; ?>" method="post" enctype="multipart/form-data"> <div id="language"> </div> </form> <?php } ?> Вот что в Fireиug выдает Только после удаления блока <div id="language"> языки исчезают полностью. Как такое может быть? Разобрался. Дело в том, что у меня был установлен модуль SEO мультиязык PRO, который ввел меня в заблуждение. Удаление строки <?php echo $text_language; ?> нужно было делать в самом модуле.
  3. Ругается на изменения по второму пункту:
  4. Что то ему не нравится. Ошибка Notice: Undefined index: attribute_groups in... ...template\module\bestseller.tpl on line 20 bestseller.tpl <div class="attributeModule"> <?php if ($product['attribute_groups']) { ?> <?php foreach ($product['attribute_groups'] as $attribute_group) { ?> <?php foreach ($attribute_group['attribute'] as $attribute) { ?> <?php echo $attribute['text']; ?> <?php } ?> <?php } ?> <?php } ?> </div> bestseller.php foreach ($results as $result) { if ($result['image']) { $image = $this->model_tool_image->resize($result['image'], $setting['image_width'], $setting['image_height']); } else { $image = false; } $this->data['attribute_groups'] = $this->model_catalog_product->getProductAttributes($result['product_id']); if (($this->config->get('config_customer_price') && $this->customer->isLogged()) || !$this->config->get('config_customer_price')) { $price = $this->currency->format($this->tax->calculate($result['price'], $result['tax_class_id'], $this->config->get('config_tax'))); } else { $price = false; } if ((float)$result['special']) { $special = $this->currency->format($this->tax->calculate($result['special'], $result['tax_class_id'], $this->config->get('config_tax'))); } else { $special = false; } if ($this->config->get('config_review_status')) { $rating = $result['rating']; } else { $rating = false; } $this->data['products'][] = array( 'product_id' => $result['product_id'], 'thumb' => $image, 'name' => $result['name'], 'price' => $price, 'special' => $special, 'rating' => $rating, 'reviews' => sprintf($this->language->get('text_reviews'), (int)$result['reviews']), 'href' => $this->url->link('product/product', 'product_id=' . $result['product_id']), ); }
  5. Спасибо. Все сделал и работает с модулем "Рекомендуемые". Попробовал тоже самое сделать с модулями "Последние" и "Хиты продаж". Увы фокус не получился. Ошибка :( У меня на главной выводятся три эти модуля, разметка у них должна быть одинаковая.
  6. Установил currency_fee от mrvira. У меня вопрос. Как привязать фикс к файлу currency_uah.php ? Обновление идет с нужно мне банка. Файл размещается в корне сайта и запускается по расписанию. При этом отключается автоматическое обновление курсов в админке. Подскажите, пожалуйста, как решить задачку. Спасибо.
  7. Спасибо, заработало. У меня была включена опция ЧПУ. После того как отключил, смог проследить правильные ссылки на страницы магазина.
  8. Информацию брал здесь Папка product/ category.tpl - вывод группы товаров manufacturer.tpl - вывод товаров по производителю (в 1.5.х не используется) manufacturer_info.tpl - вывод товаров по производителю (только в 1.5.х) manufacturer_list.tpl - страница со списком всех производителей (только в 1.5.х) product.tpl - вывод одного товара review.tpl - вывод отзыва о товаре в шаблоне product.tpl search.tpl - поиск и результаты поиска special.tpl - выбор специальных предложений (Special Offers) compare.tpl - страница сравнения товаров (только в 1.5.х) manufacturer_list взял только для примера. В футере стандартного шаблона есть ссылка "Производители". У меня страница имеет следующий адрес: http://название_магазина/brands/ Это разве не одно и то же?
  9. Подскажите а как поменять ссылки в шапке (Главная, Закладки, Коззина покупок, Оформление заказа) с поддержкой мультиязычности. Т.е. чтоб не просто вставить ссылку в виде <a href="http://ваш_сайт/contacts'>http://ваш_сайт/contacts">Контакты</a> а с помощью php. Как я понимаю нужно менять файлы: http://ваш_сайт/catalog/language/russian/common/header.php'>http://ваш_сайт/catalog/language/russian/common/header.php - языковой файл http://ваш_сайт/catalog/controller/common/header.php '>http://ваш_сайт/catalog/controller/common/header.php http://ваш_сайт/catalog/view/theme/ваша_тема/template/common/header.tpl'>http://ваш_сайт/catalog/view/theme/ваша_тема/template/common/header.tpl - файл шаблона Проделанные действия: добавил необходимые ссылки в header.tpl в <div class="links"> Для примера добавил ссылку на список производителей manufacturer_list (строка 90) <div class="links"> <a href="<?php echo $home; ?>"><?php echo $text_home; ?></a> <a href="<?php echo $manufacturer_list; ?>"><?php echo $manufacturer_list; ?></a> <a href="<?php echo $wishlist; ?>" id="wishlist-total"><?php echo $text_wishlist; ?></a> <a href="<?php echo $shopping_cart; ?>"><?php echo $text_shopping_cart; ?></a> <a href="<?php echo $checkout; ?>"><?php echo $text_checkout; ?></a> </div> Добавил две строки (41 и 52) в файл http://ваш_сайт/catalog/controller/common/header.php $this->language->load('common/header'); $this->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)); $this->data['og_image'] = $this->document->getOgImage(); $this->data['text_home'] = $this->language->get('text_home'); $this->data['text_manufacturer_list'] = $this->language->get('text_manufacturer_list'); $this->data['text_wishlist'] = sprintf($this->language->get('text_wishlist'), (isset($this->session->data['wishlist']) ? count($this->session->data['wishlist']) : 0)); $this->data['text_shopping_cart'] = $this->language->get('text_shopping_cart'); $this->data['text_search'] = $this->language->get('text_search'); $this->data['text_welcome'] = sprintf($this->language->get('text_welcome'), $this->url->link('account/login', '', 'SSL'), $this->url->link('account/register', '', 'SSL')); $this->data['text_logged'] = sprintf($this->language->get('text_logged'), $this->url->link('account/account', '', 'SSL'), $this->customer->getFirstName(), $this->url->link('account/logout', '', 'SSL')); $this->data['text_account'] = $this->language->get('text_account'); $this->data['text_checkout'] = $this->language->get('text_checkout'); $this->data['text_page'] = $this->language->get('text_page'); $this->data['home'] = $this->url->link('common/home'); $this->data['manufacturer_list'] = $this->url->link('product/manufacturer_list'); $this->data['wishlist'] = $this->url->link('account/wishlist', '', 'SSL'); $this->data['logged'] = $this->customer->isLogged(); $this->data['account'] = $this->url->link('account/account', '', 'SSL'); $this->data['shopping_cart'] = $this->url->link('checkout/cart'); $this->data['checkout'] = $this->url->link('checkout/checkout', '', 'SSL'); Добавил текст ссылки (строка 12) в файле http://ваш_сайт/catalog/language/russian/common/header.php <?php // Text $_['text_home'] = 'Главная'; $_['text_wishlist'] = 'Закладки (%s)'; $_['text_shopping_cart'] = 'Корзина покупок'; $_['text_search'] = 'Поиск'; $_['text_welcome'] = '<a href="%s">Войти</a> или <a href="%s">зарегистрироваться</a>'; $_['text_logged'] = 'Вы вошли как <a href="%s">%s</a> <b>(</b> <a href="%s">Выйти</a> <b>)</b>'; $_['text_account'] = 'Постоянный покупатель'; $_['text_checkout'] = 'Оформление заказа'; $_['text_page'] = 'страница'; $_['text_manufacturer_list'] = 'Производители'; ?> В результате выводит страницу магазина "Запрашиваемая страница не найдена!" Подскажите, что и где нужно изменить, чтоб все работало.
  10. Подскажите а как поменять ссылки с поддержкой мультиязычности. Т.е. чтоб не просто вставить ссылку в виде <a href="http://ваш_сайт/contacts">Контакты</a> а с помощью php. Как я понимаю нужно менять файлы: http://ваш_сайт/catalog/language/russian/common/header.php - языковой файл http://ваш_сайт/catalog/controller/common/header.php http://ваш_сайт/catalog/view/theme/ваша_тема/template/common/header.tpl - файл шаблона Проделанные действия: добавил необходимые ссылки в header.tpl в <div class="links"> Для примера добавил ссылку на список производителей manufacturer_list (строка 90) <div class="links"> <a href="<?php echo $home; ?>"><?php echo $text_home; ?></a> <a href="<?php echo $manufacturer_list; ?>"><?php echo $manufacturer_list; ?></a> <a href="<?php echo $wishlist; ?>" id="wishlist-total"><?php echo $text_wishlist; ?></a> <a href="<?php echo $shopping_cart; ?>"><?php echo $text_shopping_cart; ?></a> <a href="<?php echo $checkout; ?>"><?php echo $text_checkout; ?></a> </div> Добавил две строки (41 и 52) в файл http://ваш_сайт/catalog/controller/common/header.php $this->language->load('common/header'); $this->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)); $this->data['og_image'] = $this->document->getOgImage(); $this->data['text_home'] = $this->language->get('text_home'); $this->data['text_manufacturer_list'] = $this->language->get('text_manufacturer_list'); $this->data['text_wishlist'] = sprintf($this->language->get('text_wishlist'), (isset($this->session->data['wishlist']) ? count($this->session->data['wishlist']) : 0)); $this->data['text_shopping_cart'] = $this->language->get('text_shopping_cart'); $this->data['text_search'] = $this->language->get('text_search'); $this->data['text_welcome'] = sprintf($this->language->get('text_welcome'), $this->url->link('account/login', '', 'SSL'), $this->url->link('account/register', '', 'SSL')); $this->data['text_logged'] = sprintf($this->language->get('text_logged'), $this->url->link('account/account', '', 'SSL'), $this->customer->getFirstName(), $this->url->link('account/logout', '', 'SSL')); $this->data['text_account'] = $this->language->get('text_account'); $this->data['text_checkout'] = $this->language->get('text_checkout'); $this->data['text_page'] = $this->language->get('text_page'); $this->data['home'] = $this->url->link('common/home'); $this->data['manufacturer_list'] = $this->url->link('product/manufacturer_list'); $this->data['wishlist'] = $this->url->link('account/wishlist', '', 'SSL'); $this->data['logged'] = $this->customer->isLogged(); $this->data['account'] = $this->url->link('account/account', '', 'SSL'); $this->data['shopping_cart'] = $this->url->link('checkout/cart'); $this->data['checkout'] = $this->url->link('checkout/checkout', '', 'SSL'); Добавил текст ссылки (строка 12) в файле http://ваш_сайт/catalog/language/russian/common/header.php <?php // Text $_['text_home'] = 'Главная'; $_['text_wishlist'] = 'Закладки (%s)'; $_['text_shopping_cart'] = 'Корзина покупок'; $_['text_search'] = 'Поиск'; $_['text_welcome'] = '<a href="%s">Войти</a> или <a href="%s">зарегистрироваться</a>'; $_['text_logged'] = 'Вы вошли как <a href="%s">%s</a> <b>(</b> <a href="%s">Выйти</a> <b>)</b>'; $_['text_account'] = 'Постоянный покупатель'; $_['text_checkout'] = 'Оформление заказа'; $_['text_page'] = 'страница'; $_['text_manufacturer_list'] = 'Производители'; ?> В результате выводит страницу магазина "Запрашиваемая страница не найдена!" Подскажите, что и где нужно изменить, чтоб все работало.

×
×
  • Створити...

Important Information

На нашому сайті використовуються файли cookie і відбувається обробка деяких персональних даних користувачів, щоб поліпшити користувальницький інтерфейс. Щоб дізнатися для чого і які персональні дані ми обробляємо перейдіть за посиланням . Якщо Ви натиснете «Я даю згоду», це означає, що Ви розумієте і приймаєте всі умови, зазначені в цьому Повідомленні про конфіденційність.