added roster
This commit is contained in:
@@ -212,6 +212,7 @@ class TeamStoreController extends Controller
|
||||
|
||||
$thumbnails_array = $m->getThumbnails($product_array[0]->Id);
|
||||
$teams_array = $m->getTeams($product_array[0]->Id);
|
||||
$selectRoster = $m->selectRoster($product_array[0]->Id);
|
||||
// $sizes_array = $m->getSizes();
|
||||
|
||||
if (empty($thumbnails_array)) {
|
||||
@@ -255,7 +256,8 @@ class TeamStoreController extends Controller
|
||||
->with('teams_array', $teams_array)
|
||||
->with('sizes_array', $sizes_array)
|
||||
->with('available_qty', $availableQty)
|
||||
->with('store_products', $store_products);
|
||||
->with('store_products', $store_products)
|
||||
->with('roster', $selectRoster);
|
||||
}
|
||||
|
||||
public function login(Request $request)
|
||||
@@ -295,9 +297,12 @@ class TeamStoreController extends Controller
|
||||
$availableQty = null;
|
||||
}
|
||||
|
||||
$selectRoster = $TeamStoreModel->selectRoster($item[0]->Id);
|
||||
|
||||
$handle_form = view('teamstore-sublayouts.forms.' . $item[0]->ProductForm)
|
||||
->with('sizes_array', $sizes_array)
|
||||
->with('availableQty', $availableQty)
|
||||
->with('roster', $selectRoster)
|
||||
->render();
|
||||
|
||||
return $handle_form;
|
||||
@@ -416,7 +421,7 @@ class TeamStoreController extends Controller
|
||||
'ShippingCostId' => $shipping_cost_id
|
||||
);
|
||||
}
|
||||
} elseif ($product_form == "name-number-size-form") {
|
||||
} elseif ($product_form == "name-number-size-form" || $product_form == "roster-name-number-size-form") {
|
||||
|
||||
$order_names = $post['order_names'];
|
||||
$order_number = $post['order_number'];
|
||||
|
||||
Reference in New Issue
Block a user