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

ussa

Newbie
  
  • Posts

    48
  • Joined

  • Last visited

Information

  • Gender
    Не определился

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. может seo какое посоветуете?
  12. поправьте код пожалуйста, правильно делаю? } elseif (isset($this->request->get['route']) && $this->request->get['route'] == 'account/order/info' && $key != 'order_id') { $url .= '/history';
  13. подскажите что добавить в таблицу 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'
  14. кстати вот делал для себя склонение слова "отзыв" в товаре, если кому надо то вот в файле 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.