update store order

This commit is contained in:
franknstayn
2022-04-02 20:17:28 +08:00
parent 80bf7e6c67
commit 9936f33c05
2 changed files with 4 additions and 4 deletions

View File

@@ -61,9 +61,9 @@ class TeamStoreController extends Controller
$product_array = $m->filterTeamstoreProducts('TeamStoreId', $store_array[0]->Id, $field, $sort_value);
}
} else {
$field = "ProductName";
$field = "Ordering";
$sort_value = "ASC";
$sort = "al-asc";
$sort = "";
$product_array = $m->filterTeamstoreProducts('TeamStoreId', $store_array[0]->Id, $field, $sort_value);
}

View File

@@ -303,7 +303,7 @@ class UserController extends Controller
$store_array = $newTeamStoreModel->selectTeamStore('Id', $store_id);
$product_array = $newTeamStoreModel->selectTeamStoreProducts('TeamStoreId', $store_id);
$displayThumbnails = "product-image-placeholder.png";
foreach ($product_array as $p => $pr_arr) {
$thumbnails_array = $newTeamStoreModel->getProductThumbnails($pr_arr->Id);
@@ -1180,7 +1180,7 @@ class UserController extends Controller
$store_array = $newTeamStoreModel->selectTeamStore('Id', $store_id);
$product_array = $newTeamStoreModel->selectTeamStoreProducts('TeamStoreId', $store_id);
$displayThumbnails = "product-image-placeholder.png";
foreach ($product_array as $p => $pr_arr) {
$thumbnails_array = $newTeamStoreModel->getProductThumbnails($pr_arr->Id);