Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
O
onestartup-shop-ceramica-gtz
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Francisco Salazar
onestartup-shop-ceramica-gtz
Commits
38e0f538
Commit
38e0f538
authored
6 years ago
by
Francisco Salazar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
distancia en vista
parent
d09f3cf8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
AdminProductController.php
src/controllers/AdminProductController.php
+1
-1
orden.blade.php
src/views/clients/orden.blade.php
+2
-2
No files found.
src/controllers/AdminProductController.php
View file @
38e0f538
...
@@ -328,7 +328,7 @@ class AdminProductController extends Controller
...
@@ -328,7 +328,7 @@ class AdminProductController extends Controller
$shipping_price
=
$shipping
->
shipping_price
;
$shipping_price
=
$shipping
->
shipping_price
;
$origin
=
CodigoPostal
::
where
(
"postal_code"
,
67150
)
->
first
();
$origin
=
CodigoPostal
::
where
(
"postal_code"
,
67150
)
->
first
();
$destination
=
CodigoPostal
::
where
(
"postal_code"
,
$
addres
->
cp
)
->
first
();
$destination
=
CodigoPostal
::
where
(
"postal_code"
,
$
shipping
->
cp
)
->
first
();
$total_cart
=
0
;
$total_cart
=
0
;
foreach
(
$sale
->
products
()
->
get
()
as
$p
){
foreach
(
$sale
->
products
()
->
get
()
as
$p
){
...
...
This diff is collapsed.
Click to expand it.
src/views/clients/orden.blade.php
View file @
38e0f538
...
@@ -181,10 +181,10 @@ setlocale(LC_MONETARY, 'en_US');
...
@@ -181,10 +181,10 @@ setlocale(LC_MONETARY, 'en_US');
@endif
@endif
@if(
$shipping_price
!= null)
@if(
$shipping_price
!= null)
<tr>
<tr>
<td>{{$distanc
ia
."
km
"}}</td>
<td>{{$distanc
e
."
km
"}}</td>
<td>
{
{$shipping_price->name}
}
</td>
<td>
{
{$shipping_price->name}
}
</td>
<td>{{money_format('%(#10n',
$shipping_price->cost
)}}</td>
<td>{{money_format('%(#10n',
$shipping_price->cost
)}}</td>
<td>{{money_format('%(#10n',
$shipping_price->cost
*
$distanc
ia
)}}</td>
<td>{{money_format('%(#10n',
$shipping_price->cost
*
$distanc
e
)}}</td>
</tr>
</tr>
@endif
@endif
<tfoot>
<tfoot>
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment