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

ussa

Новичок
  
  • Posts

    48
  • Joined

  • Last visited

Информация

  • Пол
    Не опрегделился

ussa's Achievements

Contributor

Contributor (5/14)

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

Recent Badges

1

Reputation

  1. дам на пиво, если в этом гдело =) может модуль какой есть?
  2. в обещём сгделал врогде все, но не отображает 4 категорию, ошипотому чток нет что не ик гделаю? в tpl в php
  3. перенаправление с одного домена на другой, в вашем случае на один и тот же
  4. сгделал вывод 3 уровня, не пойму как 4) помогите) в controller/module/category.php if ($child['category_id'] == $data['child_id']) { $child3 = $this->model_catalog_category->getCategories($child['category_id']); foreach ($child3 as $child_lv3) { $filter3 = array( 'filter_category_id' => $child_lv3['category_id'], 'filter_sub_category' => true ); $child3_data[] = array( 'category_id' => $child_lv3['category_id'], 'name' => $child_lv3['name'] . ($this->config->get('config_product_count') ? ' (' . $this->model_catalog_product->getTotalProducts($filter3) . ')' : ''), 'href' => $this->url->link('product/category', 'path=' . $category['category_id'] . '_' . $child['category_id'] . '_' . $child_lv3['category_id']) ); } } в catalog/module/category.tpl <?php foreach ($category['children'] as $child) { ?> <?php foreach ($child['child3'] as $child_lv3) { ?> <?php if ($child_lv3['category_id'] == $child3_id) { ?> <li class="active"> <a href="<?php echo $child_lv3['href']; ?>" class="active"><?php echo $child_lv3['name']; ?></a> </li> <?php } else { ?> <li> <a href="<?php echo $child_lv3['href']; ?>"><?php echo $child_lv3['name']; ?></a> </li> <?php } ?> <?php } ?> <?php } ?>
  5. кеш попробуйте удалить, если нет то в бд oc_category посмотрите может им дубли
  6. у вас создан товар с иким id в админке?
  7. в controller/common/cart.php после $data['text_items'] = sprintf($this->language->get('text_items'), $this->cart->countProducts() + (isset($this->session->data['vouchers']) ? count($this->session->data['vouchers']) : 0), $this->currency->format($total)); добавить if ($total===0) {$data['text_items'] = 'Бесплатно';}
  8. лучше написать заново магазин на новой версии
  9. пробывал на гдефолтной, тоже не рилииет
  10. версия самая последняя, почему ик не хочет рилиить, только если писать order_id=70(номер заказа) и в seo keywords 70 тогда рилииет, нельзя как то сгделать автоматически? в seo_pro что то дописать типа } elseif (isset($this->request->get['route']) && $this->request->get['route'] == 'account/order/info' && $key != 'order_id') { $url .= '/history'; только это рилииет на seo_url, как бы в seo_pro правильно написать
  11. поправьте код пожалуйси, правильно гделаю? } elseif (isset($this->request->get['route']) && $this->request->get['route'] == 'account/order/info' && $key != 'order_id') { $url .= '/history';
  12. подскажите что добавить в иблицу seo чтобы был человеческий вид ссылки в файле account/order.php ссылку 'href' => $this->url->link('account/order/info', 'order_id=' . $result['order_id'], 'SSL'), нужно наверно что то типа этого добавить в иблицу? 'account/order/info' && $key != 'order_id' 'order-info'
  13. ксити вот гделал для себя склонение слова "отзыв" в товаре, если кому надо то вот в файле controller/product/product.php строку $data['reviews'] = sprintf($this->language->get('text_reviews'), (int)$product_info['reviews']); заменить на: $count = (int)$product_info['reviews']; function getWords($number, $suffix) { $keys = array(2, 0, 1, 1, 1, 2); $mod = $number % 100; $suffix_key = ($mod > 7 && $mod < 20) ? 2: $keys[min($mod % 10, 5)]; return $suffix[$suffix_key]; } $total1 = $this->language->get('text_reviews1'); $total2 = $this->language->get('text_reviews2'); $total3 = $this->language->get('text_reviews3'); $array = array($total1, $total2, $total3); $data['reviews'] = $count .' '. getWords($count, $array); ну и соответственно добавить переменные в языки $_['text_reviews1'] = 'отзыв'; $_['text_reviews2'] = 'отзыва'; $_['text_reviews3'] = 'отзывов';
×
×
  • 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.