Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
store-locator
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
Ajay Barthwal
store-locator
Commits
cf8d5340
Commit
cf8d5340
authored
Aug 19, 2019
by
Ajay Barthwal
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'develop' into 'master'
Develop See merge request
!8
parents
c57c32de
d6fb993b
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
107 additions
and
9 deletions
+107
-9
SearchController.php
application/app/Http/Controllers/SearchController.php
+3
-1
left-right-arrow.png
application/public/left-right-arrow.png
+0
-0
custom.css
application/public/vendor/frontend/css/custom.css
+73
-2
script.js
application/public/vendor/frontend/js/script.js
+2
-2
detail.blade.php
application/resources/views/frontend/searchs/detail.blade.php
+2
-2
updatedquery.php
application/updatedquery.php
+27
-2
No files found.
application/app/Http/Controllers/SearchController.php
View file @
cf8d5340
...
...
@@ -122,7 +122,9 @@ class SearchController extends Controller
$api_url
=
config
(
'app.api_location'
);
$locationDetailAPIdata
=
$this
->
call_api
(
$api_url
,
$locatorID
);
$feedDetail
=
LocaterFeed
::
where
(
'locater_feeds.status'
,
'='
,
'1'
)
->
take
(
6
)
->
get
();
$feedDetail
=
LocaterFeed
::
where
(
'locater_feeds.status'
,
'='
,
'1'
)
->
where
(
'locater_feeds.show_feed'
,
'='
,
'1'
)
->
get
();
return
view
(
'frontend.searchs.detail'
,
compact
(
'locatorID'
,
'locationDetailAPIdata'
,
'pageData'
,
'feedDetail'
));
}
...
...
application/public/left-right-arrow.png
0 → 100644
View file @
cf8d5340
3.25 KB
application/public/vendor/frontend/css/custom.css
View file @
cf8d5340
...
...
@@ -90,4 +90,75 @@ div#localitylist {
}
.col-md-7.col-lg-9.location_data-map
{
height
:
612px
;
}
\ No newline at end of file
}
button
.slick-next
,
button
.slick-next
:hover
{
position
:
absolute
;
top
:
50%
;
right
:
-27px
;
width
:
21px
;
height
:
31px
;
background-image
:
url("/left-right-arrow.png")
;
background-size
:
40px
;
outline
:
none
;
}
button
.slick-prev
,
button
.slick-prev
:hover
{
position
:
absolute
;
top
:
50%
;
left
:
-32px
;
z-index
:
1
;
width
:
21px
;
height
:
31px
;
background-image
:
url("/left-right-arrow.png")
;
background-size
:
40px
;
background-position-x
:
right
;
outline
:
none
;
}
/* Arrows */
.slick-prev
,
.slick-next
{
font-size
:
0
;
line-height
:
0
;
position
:
absolute
;
top
:
50%
;
display
:
block
;
width
:
20px
;
height
:
20px
;
margin-top
:
-10px
;
padding
:
0
;
cursor
:
pointer
;
color
:
transparent
;
border
:
none
;
outline
:
none
;
background
:
transparent
;
outline
:
none
!important
;
}
/*.slick-prev:hover,
.slick-prev:focus,
.slick-next:hover,
.slick-next:focus
{
color: transparent;
outline: none;
background: transparent;
}
.slick-prev:hover:before,
.slick-prev:focus:before,
.slick-next:hover:before,
.slick-next:focus:before
{
opacity: 1;
}*/
\ No newline at end of file
application/public/vendor/frontend/js/script.js
View file @
cf8d5340
...
...
@@ -13,11 +13,11 @@ $(document).ready(function() {
}
if
(
$
(
".promotion-wrapper-items"
).
length
)
{
$
(
".promotion-wrapper-items"
).
slick
({
dots
:
tru
e
,
dots
:
fals
e
,
infinite
:
true
,
speed
:
300
,
slidesToShow
:
5
,
arrows
:
fals
e
,
arrows
:
tru
e
,
responsive
:
[
{
...
...
application/resources/views/frontend/searchs/detail.blade.php
View file @
cf8d5340
...
...
@@ -113,11 +113,11 @@
<?php
foreach
(
$feedDetail
as
$feed
){
?>
<div
class=
"item"
>
<figure><
img
src=
"{{ $feed->image_link }}"
>
</figure>
<figure><
a
href=
"{{ $feed->link }}"
target=
"_blank"
><img
src=
"{{ $feed->image_link }}"
>
</a>
</figure>
<p
class=
"name"
>
{{ $feed->title }}
</p>
<p
class=
"currency bold"
>
{{ $feed->price }}
</p>
<p
class=
"publisher"
>
{{ $feed->brand }}
</p>
<p
class=
"grey-txt"
>
Price drop
: {{ $feed->sale_price }}
</p>
<p
class=
"grey-txt"
>
Sale Price
: {{ $feed->sale_price }}
</p>
</div>
<?php
}
?>
</section>
...
...
application/updatedquery.php
View file @
cf8d5340
...
...
@@ -4,6 +4,31 @@ RUN on browser : WWW_ROOT./cron/getLocaterListData
RUN
on
browser
:
WWW_ROOT
./
cron
/
getState
RUN
on
browser
:
WWW_ROOT
./
cron
/
getCity
Run
on
CMD
:
composer
require
maatwebsite
/
excel
ALTER
TABLE
`homepages`
CHANGE
`other_setting`
`show_feed`
VARCHAR
(
255
)
CHARACTER
SET
latin1
COLLATE
latin1_swedish_ci
NOT
NULL
;
ALTER
TABLE
`locater_feeds`
ADD
`show_feed`
TINYINT
(
4
)
NOT
NULL
DEFAULT
'0'
AFTER
`id`
;
\ No newline at end of file
CREATE
TABLE
`locater_feeds`
(
`id`
bigint
(
20
)
NOT
NULL
,
`show_feed`
tinyint
(
4
)
NOT
NULL
DEFAULT
'0'
,
`feeds_id`
varchar
(
100
)
DEFAULT
NULL
,
`title`
varchar
(
255
)
DEFAULT
NULL
,
`description`
text
,
`gtin`
varchar
(
100
)
DEFAULT
NULL
,
`brand`
varchar
(
100
)
DEFAULT
NULL
,
`color`
varchar
(
50
)
DEFAULT
NULL
,
`size`
text
,
`link`
varchar
(
255
)
DEFAULT
NULL
,
`image_link`
varchar
(
255
)
DEFAULT
NULL
,
`availability`
varchar
(
50
)
DEFAULT
NULL
,
`product_condition`
varchar
(
50
)
DEFAULT
NULL
,
`item_group_id`
varchar
(
100
)
DEFAULT
NULL
,
`google_product_category`
varchar
(
150
)
DEFAULT
NULL
,
`product_type`
varchar
(
150
)
DEFAULT
NULL
,
`sale_price`
varchar
(
100
)
DEFAULT
NULL
,
`price`
varchar
(
100
)
DEFAULT
NULL
,
`status`
tinyint
(
2
)
NOT
NULL
DEFAULT
'1'
COMMENT
'0=active,1=inactive'
,
`is_deleted`
tinyint
(
2
)
NOT
NULL
DEFAULT
'0'
COMMENT
'1=deleted,0=notdeleted'
,
`created_at`
datetime
DEFAULT
NULL
,
`updated_at`
datetime
DEFAULT
NULL
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
latin1
;
\ No newline at end of file
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