update 3_20_19
This commit is contained in:
@@ -220,6 +220,7 @@ class TeamStoreController extends Controller {
|
|||||||
|
|
||||||
$product_id = $post['product_id'];
|
$product_id = $post['product_id'];
|
||||||
$store_url = $post['store_url'];
|
$store_url = $post['store_url'];
|
||||||
|
$store_id = $post['store_id'];
|
||||||
|
|
||||||
if($request->session()->has('cartkey')){
|
if($request->session()->has('cartkey')){
|
||||||
$cartKey = $request->session()->get('cartkey');
|
$cartKey = $request->session()->get('cartkey');
|
||||||
@@ -253,6 +254,7 @@ class TeamStoreController extends Controller {
|
|||||||
$items[] = array(
|
$items[] = array(
|
||||||
'ProductId' => $product_id,
|
'ProductId' => $product_id,
|
||||||
'StoreURL' => $store_url,
|
'StoreURL' => $store_url,
|
||||||
|
'StoreId' => $store_id,
|
||||||
'FormUsed' => $product_form,
|
'FormUsed' => $product_form,
|
||||||
'CartKey' => $cartKey,
|
'CartKey' => $cartKey,
|
||||||
'DesignCode' => $design_code,
|
'DesignCode' => $design_code,
|
||||||
@@ -271,6 +273,7 @@ class TeamStoreController extends Controller {
|
|||||||
$items[] = array(
|
$items[] = array(
|
||||||
'ProductId' => $product_id,
|
'ProductId' => $product_id,
|
||||||
'StoreURL' => $store_url,
|
'StoreURL' => $store_url,
|
||||||
|
'StoreId' => $store_id,
|
||||||
'FormUsed' => $product_form,
|
'FormUsed' => $product_form,
|
||||||
'CartKey' => $cartKey,
|
'CartKey' => $cartKey,
|
||||||
'DesignCode' => $design_code,
|
'DesignCode' => $design_code,
|
||||||
@@ -285,6 +288,7 @@ class TeamStoreController extends Controller {
|
|||||||
$items[] = array(
|
$items[] = array(
|
||||||
'ProductId' => $product_id,
|
'ProductId' => $product_id,
|
||||||
'StoreURL' => $store_url,
|
'StoreURL' => $store_url,
|
||||||
|
'StoreId' => $store_id,
|
||||||
'FormUsed' => $product_form,
|
'FormUsed' => $product_form,
|
||||||
'CartKey' => $cartKey,
|
'CartKey' => $cartKey,
|
||||||
'DesignCode' => $design_code,
|
'DesignCode' => $design_code,
|
||||||
@@ -304,6 +308,7 @@ class TeamStoreController extends Controller {
|
|||||||
$items[] = array(
|
$items[] = array(
|
||||||
'ProductId' => $product_id,
|
'ProductId' => $product_id,
|
||||||
'StoreURL' => $store_url,
|
'StoreURL' => $store_url,
|
||||||
|
'StoreId' => $store_id,
|
||||||
'FormUsed' => $product_form,
|
'FormUsed' => $product_form,
|
||||||
'CartKey' => $cartKey,
|
'CartKey' => $cartKey,
|
||||||
'DesignCode' => $design_code,
|
'DesignCode' => $design_code,
|
||||||
@@ -325,6 +330,7 @@ class TeamStoreController extends Controller {
|
|||||||
$items[] = array(
|
$items[] = array(
|
||||||
'ProductId' => $product_id,
|
'ProductId' => $product_id,
|
||||||
'StoreURL' => $store_url,
|
'StoreURL' => $store_url,
|
||||||
|
'StoreId' => $store_id,
|
||||||
'FormUsed' => $product_form,
|
'FormUsed' => $product_form,
|
||||||
'CartKey' => $cartKey,
|
'CartKey' => $cartKey,
|
||||||
'DesignCode' => $design_code,
|
'DesignCode' => $design_code,
|
||||||
|
|||||||
@@ -111,7 +111,7 @@ class TeamStoreModel extends Model {
|
|||||||
function myCartGroup($cartKey){
|
function myCartGroup($cartKey){
|
||||||
if($cartKey != ""){
|
if($cartKey != ""){
|
||||||
$pdo = DB::connection()->getPdo();
|
$pdo = DB::connection()->getPdo();
|
||||||
$query = $pdo->prepare("SELECT *, COUNT(Id) AS qty, SUM(Price) AS total_price, SUM(Quantity) AS total_qty FROM cart_tmp WHERE CartKey = :ck GROUP BY ProductId");
|
$query = $pdo->prepare("SELECT *, COUNT(Id) AS qty, SUM(Price) * Quantity AS total_price FROM cart_tmp WHERE CartKey = :ck GROUP BY ProductId");
|
||||||
$query->execute([':ck'=>$cartKey]);
|
$query->execute([':ck'=>$cartKey]);
|
||||||
$row = $query->fetchAll(\PDO::FETCH_OBJ);
|
$row = $query->fetchAll(\PDO::FETCH_OBJ);
|
||||||
return $row;
|
return $row;
|
||||||
|
|||||||
@@ -144,7 +144,7 @@ class UserModel extends Model {
|
|||||||
|
|
||||||
function itemGroup($cartKey){
|
function itemGroup($cartKey){
|
||||||
$pdo = DB::connection()->getPdo();
|
$pdo = DB::connection()->getPdo();
|
||||||
$query = $pdo->prepare("SELECT *, COUNT(Id) AS qty, SUM(Price) AS total_price, SUM(Quantity) AS total_qty FROM orders WHERE CartKey = :ck GROUP BY ProductId");
|
$query = $pdo->prepare("SELECT *, COUNT(Id) AS qty, SUM(Price) * Quantity AS total_price FROM orders WHERE CartKey = :ck GROUP BY ProductId");
|
||||||
$query->execute([':ck'=>$cartKey]);
|
$query->execute([':ck'=>$cartKey]);
|
||||||
$row = $query->fetchAll(\PDO::FETCH_OBJ);
|
$row = $query->fetchAll(\PDO::FETCH_OBJ);
|
||||||
return $row;
|
return $row;
|
||||||
|
|||||||
0
public/assets/js/jquery.mobile.custom.min.js
vendored
Normal file
0
public/assets/js/jquery.mobile.custom.min.js
vendored
Normal file
BIN
public/images/teamstore/familya-washington-dc/banner.png
Normal file
BIN
public/images/teamstore/familya-washington-dc/banner.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 42 KiB |
BIN
public/images/teamstore/familya-washington-dc/logo.png
Normal file
BIN
public/images/teamstore/familya-washington-dc/logo.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 287 KiB |
@@ -404,7 +404,7 @@
|
|||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<div style="font-size: 14px;"><a href="{{ url('teamstore') . '/' . $item->StoreURL . '/' . 'product/' . $item->ProductURL }}">{{ $item->ProductName }}</a></div>
|
<div style="font-size: 14px;"><a href="{{ url('teamstore') . '/' . $item->StoreURL . '/' . 'product/' . $item->ProductURL }}">{{ $item->ProductName }}</a></div>
|
||||||
Total Price: ${{ $item->total_price * $item->total_qty }} • Row(s): {{ $item->qty }}
|
Total Price: ${{ $item->total_price }} • Row(s): {{ $item->qty }}
|
||||||
<table class="table table-condensed table-bordered" style="width: 100%; border-collapse: collapse;">
|
<table class="table table-condensed table-bordered" style="width: 100%; border-collapse: collapse;">
|
||||||
@if($item->FormUsed=="jersey-and-shorts-form")
|
@if($item->FormUsed=="jersey-and-shorts-form")
|
||||||
<tr>
|
<tr>
|
||||||
|
|||||||
@@ -83,9 +83,10 @@
|
|||||||
$(function(){
|
$(function(){
|
||||||
myCart();
|
myCart();
|
||||||
$(".hide-row").hide();
|
$(".hide-row").hide();
|
||||||
$(window).scroll(function() {
|
|
||||||
$('.order-summary').css('top', $(this).scrollTop());
|
// $(window).scroll(function() {
|
||||||
});
|
// $('.order-summary').css('top', $(this).scrollTop());
|
||||||
|
// });
|
||||||
|
|
||||||
$('.modal').on('show.bs.modal', function() {
|
$('.modal').on('show.bs.modal', function() {
|
||||||
$(this).show();
|
$(this).show();
|
||||||
|
|||||||
@@ -73,7 +73,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="col-md-9">
|
<div class="col-md-9">
|
||||||
<h4><a href="{{ url('teamstore') . '/' . $item->StoreURL . '/' . 'product/' . $item->ProductURL }}">{{ $item->ProductName }}</a></h4>
|
<h4><a href="{{ url('teamstore') . '/' . $item->StoreURL . '/' . 'product/' . $item->ProductURL }}">{{ $item->ProductName }}</a></h4>
|
||||||
<p>Total Price: ${{ $item->total_price * $item->total_qty }} • Row(s): {{ $item->qty }} </p>
|
<p>Total Price: ${{ $item->total_price }} • Row(s): {{ $item->qty }} </p>
|
||||||
<div class="table-responsive">
|
<div class="table-responsive">
|
||||||
<table class="table table-striped table-condensed">
|
<table class="table table-striped table-condensed">
|
||||||
|
|
||||||
|
|||||||
@@ -80,6 +80,7 @@
|
|||||||
$('.inputName').keyup(function() {
|
$('.inputName').keyup(function() {
|
||||||
this.value = this.value.toLocaleUpperCase();
|
this.value = this.value.toLocaleUpperCase();
|
||||||
});
|
});
|
||||||
|
|
||||||
$('.btn-number').click(function(e){
|
$('.btn-number').click(function(e){
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
|
|
||||||
|
|||||||
@@ -22,6 +22,7 @@
|
|||||||
<input type="hidden" name="price_holder" id="price_holder" value="{{ $product_array[0]->ProductPrice }}">
|
<input type="hidden" name="price_holder" id="price_holder" value="{{ $product_array[0]->ProductPrice }}">
|
||||||
<input type="hidden" name="template_code" id="template_code" value="{{ $product_array[0]->TemplateCode }}">
|
<input type="hidden" name="template_code" id="template_code" value="{{ $product_array[0]->TemplateCode }}">
|
||||||
<input type="hidden" name="store_url" id="store_url" value="{{ $store_array[0]->StoreUrl }}">
|
<input type="hidden" name="store_url" id="store_url" value="{{ $store_array[0]->StoreUrl }}">
|
||||||
|
<input type="hidden" name="store_id" id="store_url" value="{{ $store_array[0]->Id }}">
|
||||||
|
|
||||||
|
|
||||||
<div class="panel-design-details" id="orderListPanel">
|
<div class="panel-design-details" id="orderListPanel">
|
||||||
|
|||||||
@@ -22,6 +22,7 @@
|
|||||||
<input type="hidden" name="price_holder" id="price_holder" value="{{ $product_array[0]->ProductPrice }}">
|
<input type="hidden" name="price_holder" id="price_holder" value="{{ $product_array[0]->ProductPrice }}">
|
||||||
<input type="hidden" name="template_code" id="template_code" value="{{ $product_array[0]->TemplateCode }}">
|
<input type="hidden" name="template_code" id="template_code" value="{{ $product_array[0]->TemplateCode }}">
|
||||||
<input type="hidden" name="store_url" id="store_url" value="{{ $store_array[0]->StoreUrl }}">
|
<input type="hidden" name="store_url" id="store_url" value="{{ $store_array[0]->StoreUrl }}">
|
||||||
|
<input type="hidden" name="store_id" id="store_url" value="{{ $store_array[0]->Id }}">
|
||||||
|
|
||||||
|
|
||||||
<div class="panel-design-details" id="orderListPanel">
|
<div class="panel-design-details" id="orderListPanel">
|
||||||
|
|||||||
@@ -22,6 +22,7 @@
|
|||||||
<input type="hidden" name="price_holder" id="price_holder" value="{{ $product_array[0]->ProductPrice }}">
|
<input type="hidden" name="price_holder" id="price_holder" value="{{ $product_array[0]->ProductPrice }}">
|
||||||
<input type="hidden" name="template_code" id="template_code" value="{{ $product_array[0]->TemplateCode }}">
|
<input type="hidden" name="template_code" id="template_code" value="{{ $product_array[0]->TemplateCode }}">
|
||||||
<input type="hidden" name="store_url" id="store_url" value="{{ $store_array[0]->StoreUrl }}">
|
<input type="hidden" name="store_url" id="store_url" value="{{ $store_array[0]->StoreUrl }}">
|
||||||
|
<input type="hidden" name="store_id" id="store_url" value="{{ $store_array[0]->Id }}">
|
||||||
|
|
||||||
|
|
||||||
<div class="panel-design-details" id="orderListPanel">
|
<div class="panel-design-details" id="orderListPanel">
|
||||||
|
|||||||
@@ -22,6 +22,7 @@
|
|||||||
<input type="hidden" name="price_holder" id="price_holder" value="{{ $product_array[0]->ProductPrice }}">
|
<input type="hidden" name="price_holder" id="price_holder" value="{{ $product_array[0]->ProductPrice }}">
|
||||||
<input type="hidden" name="template_code" id="template_code" value="{{ $product_array[0]->TemplateCode }}">
|
<input type="hidden" name="template_code" id="template_code" value="{{ $product_array[0]->TemplateCode }}">
|
||||||
<input type="hidden" name="store_url" id="store_url" value="{{ $store_array[0]->StoreUrl }}">
|
<input type="hidden" name="store_url" id="store_url" value="{{ $store_array[0]->StoreUrl }}">
|
||||||
|
<input type="hidden" name="store_id" id="store_url" value="{{ $store_array[0]->Id }}">
|
||||||
|
|
||||||
<!-- <div class="panel-design-details" id="orderListPanel">
|
<!-- <div class="panel-design-details" id="orderListPanel">
|
||||||
|
|
||||||
|
|||||||
@@ -22,6 +22,7 @@
|
|||||||
<input type="hidden" name="price_holder" id="price_holder" value="{{ $product_array[0]->ProductPrice }}">
|
<input type="hidden" name="price_holder" id="price_holder" value="{{ $product_array[0]->ProductPrice }}">
|
||||||
<input type="hidden" name="template_code" id="template_code" value="{{ $product_array[0]->TemplateCode }}">
|
<input type="hidden" name="template_code" id="template_code" value="{{ $product_array[0]->TemplateCode }}">
|
||||||
<input type="hidden" name="store_url" id="store_url" value="{{ $store_array[0]->StoreUrl }}">
|
<input type="hidden" name="store_url" id="store_url" value="{{ $store_array[0]->StoreUrl }}">
|
||||||
|
<input type="hidden" name="store_id" id="store_url" value="{{ $store_array[0]->Id }}">
|
||||||
|
|
||||||
<!-- <div class="panel-design-details" id="orderListPanel">
|
<!-- <div class="panel-design-details" id="orderListPanel">
|
||||||
|
|
||||||
|
|||||||
@@ -93,7 +93,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="col-md-10">
|
<div class="col-md-10">
|
||||||
<h4><a href="{{ url('teamstore') . '/' . $item->StoreURL . '/' . 'product/' . $item->ProductURL }}">{{ $item->ProductName }}</a></h4>
|
<h4><a href="{{ url('teamstore') . '/' . $item->StoreURL . '/' . 'product/' . $item->ProductURL }}">{{ $item->ProductName }}</a></h4>
|
||||||
<p>Total Price: ${{ $item->total_price * $item->total_qty }} • Row(s): {{ $item->qty }} </p>
|
<p>Total Price: ${{ $item->total_price }} • Row(s): {{ $item->qty }} </p>
|
||||||
<div class="table-responsive">
|
<div class="table-responsive">
|
||||||
<table class="table table-striped table-condensed">
|
<table class="table table-striped table-condensed">
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user