updated
This commit is contained in:
@@ -496,7 +496,7 @@
|
|||||||
|
|
||||||
function frontContent(fb_height, fb_width, fb_x, fb_y){
|
function frontContent(fb_height, fb_width, fb_x, fb_y){
|
||||||
var objects = frontCanvas.getObjects();
|
var objects = frontCanvas.getObjects();
|
||||||
console.log(objects)
|
// console.log(objects)
|
||||||
try{
|
try{
|
||||||
var p_number = '{{ $order_item_array[0]->Number }}';
|
var p_number = '{{ $order_item_array[0]->Number }}';
|
||||||
for (var j in objects) {
|
for (var j in objects) {
|
||||||
@@ -845,8 +845,9 @@
|
|||||||
//Your scale factor is 2.172 (1086/500 = 2.172) or 2.13 (639/300 = 2.13) to be more precise.
|
//Your scale factor is 2.172 (1086/500 = 2.172) or 2.13 (639/300 = 2.13) to be more precise.
|
||||||
// X = WIDTH and Y = HEIGHT
|
// X = WIDTH and Y = HEIGHT
|
||||||
if(side == "Front" || side == "Back"){
|
if(side == "Front" || side == "Back"){
|
||||||
var SCALE_FACTOR_X = actualSizeX / 222;
|
// width="157.936px" height="173.727px" // hoodie
|
||||||
var SCALE_FACTOR_Y = actualSizeY / 380;
|
var SCALE_FACTOR_X = actualSizeX / 157.936;
|
||||||
|
var SCALE_FACTOR_Y = actualSizeY / 173.727;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(side == "Right" || side == "Left"){
|
if(side == "Right" || side == "Left"){
|
||||||
|
|||||||
@@ -7,6 +7,7 @@
|
|||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
object-fit: contain;
|
object-fit: contain;
|
||||||
}
|
}
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
<div class="content-wrapper" style="min-height: 916px;">
|
<div class="content-wrapper" style="min-height: 916px;">
|
||||||
<!-- Content Header (Page header) -->
|
<!-- Content Header (Page header) -->
|
||||||
@@ -31,7 +32,8 @@
|
|||||||
<div class="box-header with-border">
|
<div class="box-header with-border">
|
||||||
<h3 class="box-title">Order Details</h3>
|
<h3 class="box-title">Order Details</h3>
|
||||||
<div class="box-tools pull-right">
|
<div class="box-tools pull-right">
|
||||||
<a href="{{ url('admin/orders/view/') . '/' . $array_payment_details[0]->CartKey . '/print' }}" type="button" class="btn btn-sm btn-primary"><i class="fa fa-print"></i> Print</a>
|
<a href="{{ url('admin/orders/view/') . '/' . $array_payment_details[0]->CartKey . '/print' }}"
|
||||||
|
type="button" class="btn btn-sm btn-primary"><i class="fa fa-print"></i> Print</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<!-- <form role="form" id="frm-create-address-book"> -->
|
<!-- <form role="form" id="frm-create-address-book"> -->
|
||||||
@@ -45,7 +47,8 @@
|
|||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th class="col-md-3">Payer Name</th>
|
<th class="col-md-3">Payer Name</th>
|
||||||
<td>{{ $array_payment_details[0]->Payer_Firstname . ' ' . $array_payment_details[0]->Payer_Lastname }}</td>
|
<td>{{ $array_payment_details[0]->Payer_Firstname . ' ' . $array_payment_details[0]->Payer_Lastname }}
|
||||||
|
</td>
|
||||||
<td rowspan="3">
|
<td rowspan="3">
|
||||||
{{ $array_shipping_add[0]->recipient_name }}<br>
|
{{ $array_shipping_add[0]->recipient_name }}<br>
|
||||||
{{ $array_shipping_add[0]->line1 . ' ' . $array_shipping_add[0]->line2 . ', ' }}<br>
|
{{ $array_shipping_add[0]->line1 . ' ' . $array_shipping_add[0]->line2 . ', ' }}<br>
|
||||||
@@ -66,15 +69,21 @@
|
|||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th class="col-md-3">Subtotal</th>
|
<th class="col-md-3">Subtotal</th>
|
||||||
<td colspan="2">{{ $array_payment_details[0]->SubTotal . ' ' . $array_payment_details[0]->Currency }}</td>
|
<td colspan="2">
|
||||||
|
{{ $array_payment_details[0]->SubTotal . ' ' . $array_payment_details[0]->Currency }}
|
||||||
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th class="col-md-3">Tax</th>
|
<th class="col-md-3">Tax</th>
|
||||||
<td colspan="2">{{ $array_payment_details[0]->Tax . ' ' . $array_payment_details[0]->Currency }}</td>
|
<td colspan="2">
|
||||||
|
{{ $array_payment_details[0]->Tax . ' ' . $array_payment_details[0]->Currency }}
|
||||||
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th class="col-md-3">Total</th>
|
<th class="col-md-3">Total</th>
|
||||||
<td colspan="2">{{ $array_payment_details[0]->Total . ' ' . $array_payment_details[0]->Currency }}</td>
|
<td colspan="2">
|
||||||
|
{{ $array_payment_details[0]->Total . ' ' . $array_payment_details[0]->Currency }}
|
||||||
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th class="col-md-3">Invoice #</th>
|
<th class="col-md-3">Invoice #</th>
|
||||||
@@ -92,19 +101,23 @@
|
|||||||
<div class="text-center">
|
<div class="text-center">
|
||||||
@foreach ($img_thumb as $img)
|
@foreach ($img_thumb as $img)
|
||||||
@if ($img->ProductId == $item->ProductId)
|
@if ($img->ProductId == $item->ProductId)
|
||||||
<img class="previewImage" src="{{ config('site_config.prod_private_server_ip') }}:5955/{{ $img->Image }}">
|
<img class="previewImage"
|
||||||
|
src="{{ config('site_config.prod_private_server_ip') }}:5955/{{ $img->Image }}">
|
||||||
@endif
|
@endif
|
||||||
@endforeach
|
@endforeach
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</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
|
||||||
<p>Total Price: ${{ $item->total_price }} • Row(s): {{ $item->qty }} </p>
|
href="{{ url('teamstore') . '/' . $item->StoreURL . '/' . 'product/' . $item->ProductURL }}">{{ $item->ProductName }}</a>
|
||||||
|
</h4>
|
||||||
|
<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">
|
||||||
|
|
||||||
@if($item->FormUsed=="jersey-and-shorts-form")
|
@if ($item->FormUsed == 'jersey-and-shorts-form')
|
||||||
<tr>
|
<tr>
|
||||||
<th>Name</th>
|
<th>Name</th>
|
||||||
<th>Number</th>
|
<th>Number</th>
|
||||||
@@ -114,30 +127,27 @@
|
|||||||
<th>Quantity</th>
|
<th>Quantity</th>
|
||||||
<th></th>
|
<th></th>
|
||||||
</tr>
|
</tr>
|
||||||
@elseif($item->FormUsed=="tshirt-form")
|
@elseif($item->FormUsed == 'tshirt-form')
|
||||||
<tr>
|
<tr>
|
||||||
<th>Size</th>
|
<th>Size</th>
|
||||||
<th>Price</th>
|
<th>Price</th>
|
||||||
<th>Quantity</th>
|
<th>Quantity</th>
|
||||||
<th></th>
|
<th></th>
|
||||||
</tr>
|
</tr>
|
||||||
|
@elseif($item->FormUsed == 'quantity-form')
|
||||||
@elseif($item->FormUsed=="quantity-form")
|
|
||||||
<tr>
|
<tr>
|
||||||
<th>Price</th>
|
<th>Price</th>
|
||||||
<th>Quantity</th>
|
<th>Quantity</th>
|
||||||
<th></th>
|
<th></th>
|
||||||
</tr>
|
</tr>
|
||||||
|
@elseif($item->FormUsed == 'name-number-form')
|
||||||
|
|
||||||
@elseif($item->FormUsed=="name-number-form")
|
|
||||||
<tr>
|
<tr>
|
||||||
<th>Name</th>
|
<th>Name</th>
|
||||||
<th>Number</th>
|
<th>Number</th>
|
||||||
<th>Price</th>
|
<th>Price</th>
|
||||||
<th>Quantity</th>
|
<th>Quantity</th>
|
||||||
</tr>
|
</tr>
|
||||||
@elseif($item->FormUsed=="name-number-size-form")
|
@elseif($item->FormUsed == 'name-number-size-form')
|
||||||
<tr>
|
<tr>
|
||||||
<th>Name</th>
|
<th>Name</th>
|
||||||
<th>Number</th>
|
<th>Number</th>
|
||||||
@@ -146,7 +156,7 @@
|
|||||||
<th>Quantity</th>
|
<th>Quantity</th>
|
||||||
<th></th>
|
<th></th>
|
||||||
</tr>
|
</tr>
|
||||||
@elseif($item->FormUsed=="name-name2-size-form")
|
@elseif($item->FormUsed == 'name-name2-size-form')
|
||||||
<tr>
|
<tr>
|
||||||
<th>Gamer Tag</th>
|
<th>Gamer Tag</th>
|
||||||
<th>Name</th>
|
<th>Name</th>
|
||||||
@@ -154,27 +164,27 @@
|
|||||||
<th>Price</th>
|
<th>Price</th>
|
||||||
<th>Quantity</th>
|
<th>Quantity</th>
|
||||||
</tr>
|
</tr>
|
||||||
@elseif($item->FormUsed=="number-form")
|
@elseif($item->FormUsed == 'number-form')
|
||||||
<tr>
|
<tr>
|
||||||
<th>Number</th>
|
<th>Number</th>
|
||||||
<th>Price</th>
|
<th>Price</th>
|
||||||
<th>Quantity</th>
|
<th>Quantity</th>
|
||||||
</tr>
|
</tr>
|
||||||
@elseif($item->FormUsed=="name-size-form")
|
@elseif($item->FormUsed == 'name-size-form')
|
||||||
<tr>
|
<tr>
|
||||||
<th>Name</th>
|
<th>Name</th>
|
||||||
<th>Size</th>
|
<th>Size</th>
|
||||||
<th>Price</th>
|
<th>Price</th>
|
||||||
<th>Quantity</th>
|
<th>Quantity</th>
|
||||||
</tr>
|
</tr>
|
||||||
@elseif($item->FormUsed=="jersey-and-shorts-quantity-form")
|
@elseif($item->FormUsed == 'jersey-and-shorts-quantity-form')
|
||||||
<tr>
|
<tr>
|
||||||
<th>Jersey Size</th>
|
<th>Jersey Size</th>
|
||||||
<th>Shorts Size</th>
|
<th>Shorts Size</th>
|
||||||
<th>Price</th>
|
<th>Price</th>
|
||||||
<th>Quantity</th>
|
<th>Quantity</th>
|
||||||
</tr>
|
</tr>
|
||||||
@elseif($item->FormUsed=="number-jersey-shorts-form")
|
@elseif($item->FormUsed == 'number-jersey-shorts-form')
|
||||||
<tr>
|
<tr>
|
||||||
<th>Number</th>
|
<th>Number</th>
|
||||||
<th>Jersey Size</th>
|
<th>Jersey Size</th>
|
||||||
@@ -183,70 +193,93 @@
|
|||||||
<th>Quantity</th>
|
<th>Quantity</th>
|
||||||
</tr>
|
</tr>
|
||||||
@else
|
@else
|
||||||
|
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
|
|
||||||
@foreach ($order_item_array as $sub_item)
|
@foreach ($order_item_array as $sub_item)
|
||||||
@if ($sub_item->ProductId == $item->ProductId)
|
@if ($sub_item->ProductId == $item->ProductId)
|
||||||
|
@if ($item->FormUsed == 'jersey-and-shorts-form')
|
||||||
@if($item->FormUsed=="jersey-and-shorts-form")
|
|
||||||
<tr>
|
<tr>
|
||||||
<td> @if($sub_item->Name != '') {{ $sub_item->Name }} @else -- @endif </td>
|
<td>
|
||||||
|
@if ($sub_item->Name != '')
|
||||||
|
{{ $sub_item->Name }}
|
||||||
|
@else
|
||||||
|
--
|
||||||
|
@endif
|
||||||
|
</td>
|
||||||
<td>{{ $sub_item->Number }}</td>
|
<td>{{ $sub_item->Number }}</td>
|
||||||
<td>{{ $sub_item->JerseySize }}</td>
|
<td>{{ $sub_item->JerseySize }}</td>
|
||||||
<td>{{ $sub_item->ShortsSize }}</td>
|
<td>{{ $sub_item->ShortsSize }}</td>
|
||||||
<td>{{ $sub_item->Price }}</td>
|
<td>{{ $sub_item->Price }}</td>
|
||||||
<td>{{ $sub_item->Quantity }}</td>
|
<td>{{ $sub_item->Quantity }}</td>
|
||||||
<td class="pull-right">
|
<td class="pull-right">
|
||||||
<a href="{{ url('admin/orders/download/jersey' . '/' . $sub_item->DesignCode . '/' . $sub_item->Id )}}" class="btn btn-xs btn-primary"><i class="fa fa-download"></i> Download Print File ( JERSEY )</a>
|
<a href="{{ url('admin/orders/download/jersey' . '/' . $sub_item->DesignCode . '/' . $sub_item->Id) }}"
|
||||||
<a href="{{ url('admin/orders/download/shorts' . '/' . $sub_item->DesignCode . '/' . $sub_item->Id )}}" class="btn btn-xs btn-primary"><i class="fa fa-download"></i> Download Print File ( SHORTS )</a>
|
class="btn btn-xs btn-primary"><i
|
||||||
|
class="fa fa-download"></i> Download
|
||||||
|
Print File ( JERSEY )</a>
|
||||||
|
<a href="{{ url('admin/orders/download/shorts' . '/' . $sub_item->DesignCode . '/' . $sub_item->Id) }}"
|
||||||
|
class="btn btn-xs btn-primary"><i
|
||||||
|
class="fa fa-download"></i> Download
|
||||||
|
Print File ( SHORTS )</a>
|
||||||
</td>
|
</td>
|
||||||
|
|
||||||
</tr>
|
</tr>
|
||||||
@elseif($item->FormUsed=="tshirt-form")
|
@elseif($item->FormUsed == 'tshirt-form')
|
||||||
<tr>
|
<tr>
|
||||||
<td>{{ $sub_item->Size }}</td>
|
<td>{{ $sub_item->Size }}</td>
|
||||||
<td>{{ $sub_item->Price }}</td>
|
<td>{{ $sub_item->Price }}</td>
|
||||||
<td>{{ $sub_item->Quantity }}</td>
|
<td>{{ $sub_item->Quantity }}</td>
|
||||||
@if ($sub_item->Type)
|
@if ($sub_item->Type)
|
||||||
<td><a href="{{ url('admin/orders/download/' . strtolower($sub_item->Type) . '/' . $sub_item->DesignCode . '/' . $sub_item->Id )}}" class="btn btn-xs btn-primary"><i class="fa fa-download"></i> Download Print File</a></td>
|
<td><a href="{{ url('admin/orders/download/' . strtolower($sub_item->Type) . '/' . $sub_item->DesignCode . '/' . $sub_item->Id) }}"
|
||||||
|
class="btn btn-xs btn-primary"><i
|
||||||
|
class="fa fa-download"></i>
|
||||||
|
Download Print File</a></td>
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
|
|
||||||
</tr>
|
</tr>
|
||||||
@elseif($item->FormUsed=="quantity-form")
|
@elseif($item->FormUsed == 'quantity-form')
|
||||||
<tr>
|
<tr>
|
||||||
<td>{{ $sub_item->Price }}</td>
|
<td>{{ $sub_item->Price }}</td>
|
||||||
<td>{{ $sub_item->Quantity }}</td>
|
<td>{{ $sub_item->Quantity }}</td>
|
||||||
|
@if ($sub_item->Type)
|
||||||
<td>
|
<td>
|
||||||
<a href="{{ url('admin/orders/download/mask' . '/' . $sub_item->DesignCode . '/' . $sub_item->Id )}}" class="btn btn-xs btn-primary"><i class="fa fa-download"></i> Download Print File</a>
|
<a href="{{ url('admin/orders/download/mask' . '/' . $sub_item->DesignCode . '/' . $sub_item->Id) }}"
|
||||||
|
class="btn btn-xs btn-primary"><i
|
||||||
|
class="fa fa-download"></i>
|
||||||
|
Download Print File</a>
|
||||||
</td>
|
</td>
|
||||||
|
@endif
|
||||||
|
|
||||||
</tr>
|
</tr>
|
||||||
@elseif($item->FormUsed=="name-number-form")
|
@elseif($item->FormUsed == 'name-number-form')
|
||||||
<tr>
|
<tr>
|
||||||
<td>{{ $sub_item->Name }}</td>
|
<td>{{ $sub_item->Name }}</td>
|
||||||
<td>{{ $sub_item->Number }}</td>
|
<td>{{ $sub_item->Number }}</td>
|
||||||
<td>{{ $sub_item->Price }}</td>
|
<td>{{ $sub_item->Price }}</td>
|
||||||
<td>{{ $sub_item->Quantity }}</td>
|
<td>{{ $sub_item->Quantity }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
@elseif($item->FormUsed=="name-number-size-form")
|
@elseif($item->FormUsed == 'name-number-size-form')
|
||||||
<tr>
|
<tr>
|
||||||
<td>{{ $sub_item->Name }}</td>
|
<td>{{ $sub_item->Name }}</td>
|
||||||
<td>{{ $sub_item->Number }}</td>
|
<td>{{ $sub_item->Number }}</td>
|
||||||
<td>{{ $sub_item->Size }}</td>
|
<td>{{ $sub_item->Size }}</td>
|
||||||
<td>{{ $sub_item->Price }}</td>
|
<td>{{ $sub_item->Price }}</td>
|
||||||
<td>{{ $sub_item->Quantity }}</td>
|
<td>{{ $sub_item->Quantity }}</td>
|
||||||
<td><a href="{{ url('admin/orders/download/tshirt' . '/' . $sub_item->DesignCode . '/' . $sub_item->Id )}}" class="btn btn-xs btn-primary"><i class="fa fa-download"></i> Download Print File</a></td>
|
@if ($sub_item->Type)
|
||||||
|
<td><a href="{{ url('admin/orders/download/' . strtolower($sub_item->Type) . '/' . $sub_item->DesignCode . '/' . $sub_item->Id) }}"
|
||||||
|
class="btn btn-xs btn-primary"><i
|
||||||
|
class="fa fa-download"></i>
|
||||||
|
Download Print File</a></td>
|
||||||
|
@endif
|
||||||
</tr>
|
</tr>
|
||||||
@elseif($item->FormUsed=="number-form")
|
@elseif($item->FormUsed == 'number-form')
|
||||||
<tr>
|
<tr>
|
||||||
<td>{{ $sub_item->Number }}</td>
|
<td>{{ $sub_item->Number }}</td>
|
||||||
<td>{{ $sub_item->Price }}</td>
|
<td>{{ $sub_item->Price }}</td>
|
||||||
<td>{{ $sub_item->Quantity }}</td>
|
<td>{{ $sub_item->Quantity }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
@elseif($item->FormUsed=="name-name2-size-form")
|
@elseif($item->FormUsed == 'name-name2-size-form')
|
||||||
<tr>
|
<tr>
|
||||||
<td>{{ $sub_item->Name }}</td>
|
<td>{{ $sub_item->Name }}</td>
|
||||||
<td>{{ $sub_item->Name2 }}</td>
|
<td>{{ $sub_item->Name2 }}</td>
|
||||||
@@ -254,21 +287,21 @@
|
|||||||
<td>{{ $sub_item->Price }}</td>
|
<td>{{ $sub_item->Price }}</td>
|
||||||
<td>{{ $sub_item->Quantity }}</td>
|
<td>{{ $sub_item->Quantity }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
@elseif($item->FormUsed=="name-size-form")
|
@elseif($item->FormUsed == 'name-size-form')
|
||||||
<tr>
|
<tr>
|
||||||
<td>{{ $sub_item->Name }}</td>
|
<td>{{ $sub_item->Name }}</td>
|
||||||
<td>{{ $sub_item->Size }}</td>
|
<td>{{ $sub_item->Size }}</td>
|
||||||
<td>{{ $sub_item->Price }}</td>
|
<td>{{ $sub_item->Price }}</td>
|
||||||
<td>{{ $sub_item->Quantity }}</td>
|
<td>{{ $sub_item->Quantity }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
@elseif($item->FormUsed=="jersey-and-shorts-quantity-form")
|
@elseif($item->FormUsed == 'jersey-and-shorts-quantity-form')
|
||||||
<tr>
|
<tr>
|
||||||
<td>{{ $sub_item->JerseySize }}</td>
|
<td>{{ $sub_item->JerseySize }}</td>
|
||||||
<td>{{ $sub_item->ShortsSize }}</td>
|
<td>{{ $sub_item->ShortsSize }}</td>
|
||||||
<td>{{ $sub_item->Price }}</td>
|
<td>{{ $sub_item->Price }}</td>
|
||||||
<td>{{ $sub_item->Quantity }}</td>
|
<td>{{ $sub_item->Quantity }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
@elseif($item->FormUsed=="number-jersey-shorts-form")
|
@elseif($item->FormUsed == 'number-jersey-shorts-form')
|
||||||
<tr>
|
<tr>
|
||||||
<td>{{ $sub_item->Number }}</td>
|
<td>{{ $sub_item->Number }}</td>
|
||||||
<td>{{ $sub_item->JerseySize }}</td>
|
<td>{{ $sub_item->JerseySize }}</td>
|
||||||
@@ -277,9 +310,7 @@
|
|||||||
<td>{{ $sub_item->Quantity }}</td>
|
<td>{{ $sub_item->Quantity }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
@else
|
@else
|
||||||
|
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
@endif
|
@endif
|
||||||
@endforeach
|
@endforeach
|
||||||
</table>
|
</table>
|
||||||
|
|||||||
Reference in New Issue
Block a user