added featured products
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user