updated for designer

This commit is contained in:
franknstayn
2021-07-15 16:33:01 +08:00
parent cbf708428c
commit 9a44b14fb3
16 changed files with 309 additions and 313 deletions

View File

@@ -18,7 +18,7 @@ class TeamStoreModel extends Model {
{
$i = DB::table('teamstore_products')
->where($field, $teamstoreId)
->orderBy('Ordering', 'ASC')
// ->orderBy('Ordering', 'ASC')
->orderBy('Ordering', 'ASC')->get();
return $i;
}
@@ -224,7 +224,17 @@ class TeamStoreModel extends Model {
$i = DB::table('teamstores')
->where("IsActive", "true")
->orderby($field, $value)
->paginate(16);
->paginate(12);
return $i;
}
function selectFeaturedProduct(){
$i = DB::table('teamstore_products')
->where("IsActive", "true")
// ->orderby($field, $value)
->paginate(12);
return $i;
}