added featured products

This commit is contained in:
franknstayn
2021-07-23 20:42:59 +08:00
parent 13509568eb
commit a6ea024725
6 changed files with 178 additions and 134 deletions

View File

@@ -161,10 +161,13 @@ class TeamStoreController extends Controller
$stores_array = $m->selectTeamstoreFilter($field, $sort_value);
}
$featured_products = $m->selectFeaturedProducts();
return view('merchbay.index')
->with('stores_array', $stores_array)
->with('keyword', $q)
->with('filter', $sort);
->with('filter', $sort)
->with('featured_products', $featured_products);
}
public function checkTeamStorePassword(Request $request)
@@ -233,6 +236,8 @@ class TeamStoreController extends Controller
$availableQty = null;
}
// $product_array[0]->ProductAvailableQty
// var_dump($store_array[0]->Id);
$store_products = $m->selectFeaturedProducts($store_array[0]->Id);
return view('teamstore-sublayouts.product-details')
->with('store_array', $store_array)
@@ -240,7 +245,8 @@ class TeamStoreController extends Controller
->with('thumbnails_array', $thumbnails_array)
->with('teams_array', $teams_array)
->with('sizes_array', $sizes_array)
->with('available_qty', $availableQty);
->with('available_qty', $availableQty)
->with('store_products', $store_products);
}
public function login(Request $request)