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

EvaSkyeva

Newbie
  
  • Posts

    3
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

EvaSkyeva's Achievements

Newbie

Newbie (1/14)

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

Recent Badges

0

Reputation

  1. Opencart3. Было две задачи. Реализовать сортировку по manufacturer_id на странице категорий товаров - с этим я справилась. И вот сейчас задача сделать обратное, а именно реализовать сортировку товара по category_id в производителях. В catalog/controller/product/manufacturer.php я изменила $sort = 'p.sort_order';[ на $sort = 'p.category_id'; а также добавила строки: $data['sorts'][] = array( 'text' => $this->language->get('text_category_asc'), 'value' => 'p.category_id-ASC', 'href' => $this->url->link('product/category', 'manufacturer_id=' . $this->request->get['manufacturer_id'] . '&sort=p.category_id&order=ASC' . $url) ); $data['sorts'][] = array( 'text' => $this->language->get('text_category_desc'), 'value' => 'p.category_id-DESC', 'href' => $this->url->link('product/category', 'manufacturer_id=' . $this->request->get['manufacturer_id'] . '&sort=p.category_id&order=DESC' . $url) ); И в языковой файл catalog/language/ru-ru/product/manufacturer.php также дописала: $_['text_category_asc'] = 'Категория (А - Я)'; $_['text_category_desc'] = 'Категория (Я - А)'; Но очевидно что-то еще нужно прописать в файле catalog/model/catalog/product.php. А вот где и что я немножко теряюсь, т.к. не совсем опытная. Кто сможет помочь?
  2. Последнее сообщение смотрю от давненько... Хотелось бы купить конечно. Дополнение ныне функционирует?
×
×
  • 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.