Пример #1
0
 protected function showProducts(\WP_Term $collection)
 {
     $products = $this->products->getProductsByCollection($collection->term_id)->paginate();
     $products = $this->prepareProductsForDisplay($products);
     return view('pages.products.product-list', ['collection' => $collection, 'products' => $products]);
 }