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
9e917410
Commit
9e917410
authored
Jul 19, 2019
by
Arpit Jain
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Worked on city state drop down and also implemented API according to this drop down
parent
996bb8bc
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
3 deletions
+6
-3
CronController.php
application/app/Http/Controllers/CronController.php
+1
-2
SearchController.php
application/app/Http/Controllers/SearchController.php
+2
-0
updatedquery.php
application/updatedquery.php
+3
-1
No files found.
application/app/Http/Controllers/CronController.php
View file @
9e917410
...
...
@@ -24,9 +24,8 @@ class CronController extends Controller
$getLocaterListMetaData
=
$this
->
cronList
(
$api_url
);
for
(
$i
=
$getLocaterListMetaData
[
'current_page'
];
$i
<=
$getLocaterListMetaData
[
'last_page'
];
$i
++
){
$getLocaterListDataNew
=
$this
->
call_api_page
(
$api_url
,
''
,
''
,
''
,
''
,
$i
);
$getLocaterListDataNew
=
$this
->
call_api_page
(
$api_url
,
''
,
$i
);
$finalData
=
array_map
(
function
(
$data
)
use
(
$getLocaterListDataNew
)
{
$checkLocaterData
=
Locater
::
find
(
$data
[
'id'
]);
...
...
application/app/Http/Controllers/SearchController.php
View file @
9e917410
...
...
@@ -129,6 +129,7 @@ class SearchController extends Controller
}
}
/**
* For render detail page
* */
...
...
@@ -150,6 +151,7 @@ class SearchController extends Controller
return
view
(
'frontend.searchs.detail'
,
compact
(
'homepage'
,
'locatorID'
,
'locationDetailAPIdata'
,
'pageData'
));
}
/*For showing autocomplete result in index page*/
public
function
autocomplete
(
Request
$request
)
{
...
...
application/updatedquery.php
View file @
9e917410
INSERT
INTO
`cities`
(
`id`
,
`name`
,
`parent_id`
,
`type`
,
`status`
,
`is_deleted`
,
`created_at`
,
`updated_at`
)
VALUES
(
NULL
,
'India'
,
NULL
,
'1'
,
'1'
,
'0'
,
NULL
,
NULL
);
For
cron
RUN
on
browser
:
WWW_ROOT
./
cron
/
getLocaterListData
RUN
on
browser
:
WWW_ROOT
./
cron
/
getState
RUN
on
browser
:
WWW_ROOT
./
cron
/
getCity
\ 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