crewsportswear update as of 3_18_19
This commit is contained in:
@@ -293,6 +293,50 @@ class TeamStoreController extends Controller {
|
||||
'Price' => $ProductPrice,
|
||||
'Quantity' => $post['quantity']
|
||||
);
|
||||
|
||||
|
||||
}elseif($product_form == "name-number-form"){
|
||||
|
||||
$order_names = $post['order_names'];
|
||||
$order_number = $post['order_number'];
|
||||
|
||||
foreach($order_names as $key => $val){
|
||||
$items[] = array(
|
||||
'ProductId' => $product_id,
|
||||
'StoreURL' => $store_url,
|
||||
'FormUsed' => $product_form,
|
||||
'CartKey' => $cartKey,
|
||||
'DesignCode' => $design_code,
|
||||
'ProductURL' => $ProductURL,
|
||||
'ProductName' => $product_name,
|
||||
'Name' => $order_names[$key],
|
||||
'Number' => $order_number[$key],
|
||||
'Price' => $ProductPrice,
|
||||
'Quantity' => 1
|
||||
);
|
||||
}
|
||||
}elseif($product_form == "name-number-size-form"){
|
||||
|
||||
$order_names = $post['order_names'];
|
||||
$order_number = $post['order_number'];
|
||||
$order_size = $post['order_size'];
|
||||
|
||||
foreach($order_names as $key => $val){
|
||||
$items[] = array(
|
||||
'ProductId' => $product_id,
|
||||
'StoreURL' => $store_url,
|
||||
'FormUsed' => $product_form,
|
||||
'CartKey' => $cartKey,
|
||||
'DesignCode' => $design_code,
|
||||
'ProductURL' => $ProductURL,
|
||||
'ProductName' => $product_name,
|
||||
'Name' => $order_names[$key],
|
||||
'Size' => $order_size[$key],
|
||||
'Number' => $order_number[$key],
|
||||
'Price' => $ProductPrice,
|
||||
'Quantity' => 1
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -320,12 +364,13 @@ class TeamStoreController extends Controller {
|
||||
|
||||
$items = $m->myCart($cartKey);
|
||||
$getSubtotal = $m->getSubtotal($cartKey);
|
||||
$items_group = $m->myCartGroup($cartKey);
|
||||
|
||||
// var_dump($items_group);
|
||||
$items_group = $m->myCartGroup($cartKey);
|
||||
$item_thumbs = $m->selectDisplayCartThumb();
|
||||
|
||||
return view('sublayouts.cart')
|
||||
->with('item_group', $items_group)
|
||||
->with('row', $items)
|
||||
->with('img_thumb', $item_thumbs)
|
||||
->with('getSubtotal', $getSubtotal);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user