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

mine

Newbie
  
  • Posts

    2
  • Joined

  • Last visited

mine's Achievements

Newbie

Newbie (1/14)

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

Recent Badges

0

Reputation

  1. Из рубрики сам шучу и сам смеюсь. По второй части вопроса (про custom section) в сatalog/model/journal2/product.php public function getProductsByCategory($category_id, $limit = 5) { return $this->model_catalog_product->getProducts(array( 'filter_category_id' => $category_id, 'start' => 0, 'limit' => $limit )); } добавляем 'sort' => 'p.date_added', 'order' => 'DESC', public function getProductsByCategory($category_id, $limit = 5) { return $this->model_catalog_product->getProducts(array( 'sort' => 'p.date_added', 'order' => 'DESC', 'filter_category_id' => $category_id, 'start' => 0, 'limit' => $limit )); }
  2. Добрый день! Есть 2 вопроса, вдруг кто сталкивался: 1. При добавлении товара в админке - выбираем изображение... и как здесь реализовать, чтобы изображения в папке были отсортированы по дате или по имени в обратном порядке? 2. Есть в теме Journal2 блок custom section (отображает продукты из категорий и при клике "по табам" (см. вложенные) - подгружает товары из категорий. Как настроить в этом блоке выборку артикулов по дате? В категориях нашел где менять, а здесь никак, может знает кто? Заранее спасибо. journal2_custom_sections.php custom_sections_category.twig
Guest
×
  • 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.