9 | {l s='This module allows your customers quickly select address based on search results from Algolia Places.' mod='phalgoliaplaces'}
10 |
11 |
12 | {l s='The Algolia Places API enforces some rate limits, currently (June 2016) this limit is 1.000 requests per day for a one domain. You can increase this limit to 100.000 by registering a new account on https://www.algolia.com/users/sign_up/places.' mod='phalgoliaplaces'}
13 |
14 |
15 | {l s='Module developed by %s from %s' sprintf=['Krystian Podemski', 'PrestaHome']}
16 |
17 |
18 |
19 | {/block}
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | The MIT License (MIT)
2 |
3 | Copyright (c) 2016 Krystian Podemski
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/Readme.md:
--------------------------------------------------------------------------------
1 | # PrestaHome - Algolia Places for PrestaShop
2 |
3 | What is all about?
4 |
5 | > Algolia Places provides a fast, distributed and easy way to use address search autocomplete JavaScript library on your website. It has been designed to improve the user experience of your HTML forms.
6 |
7 | ## How to install?
8 |
9 | 1. Clone repo
10 | 2. Run `npm install`
11 | 3. Run `grunt` to build module package
12 | 4. Install module from .zip
13 |
14 | ## Changelog
15 |
16 | #### Version 0.4.0 - Date: June 27, 2016
17 | * Support for counties/states (by state name at this moment)
18 |
19 | #### Version 0.3.0 - Date: June 27, 2016
20 | * Add options to set appID & apiKey for registered/premium Algolia users
21 |
22 | #### Version 0.2.0 - Date: June 23, 2016
23 | * Replace Gulp with Grunt for package creation
24 |
25 | #### Version 0.1.0 - Date: June 23, 2016
26 |
27 | * First release
28 |
29 | ## To Do:
30 |
31 | - [x] Support for counties/states
32 | - [ ] Error reporting if needed (?)
33 | - [ ] spec/tests
34 | - [ ] Auto-updater from @firstred
35 | - [x] Support for Algolia premium users
36 | - [ ] Option for `useDeviceLocation`
37 |
38 | ## Support
39 |
40 | Please use `Issues` on GitHub
41 |
42 | ## License
43 |
44 | MIT
--------------------------------------------------------------------------------
/index.php:
--------------------------------------------------------------------------------
1 |
22 | * @copyright 2007-2014 PrestaShop SA
23 | * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
24 | * International Registered Trademark & Property of PrestaShop SA
25 | */
26 |
27 | header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
28 | header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT');
29 |
30 | header('Cache-Control: no-store, no-cache, must-revalidate');
31 | header('Cache-Control: post-check=0, pre-check=0', false);
32 | header('Pragma: no-cache');
33 |
34 | header('Location: ../');
35 | exit;
--------------------------------------------------------------------------------
/views/css/index.php:
--------------------------------------------------------------------------------
1 |
22 | * @copyright 2007-2014 PrestaShop SA
23 | * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
24 | * International Registered Trademark & Property of PrestaShop SA
25 | */
26 |
27 | header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
28 | header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT');
29 |
30 | header('Cache-Control: no-store, no-cache, must-revalidate');
31 | header('Cache-Control: post-check=0, pre-check=0', false);
32 | header('Pragma: no-cache');
33 |
34 | header('Location: ../');
35 | exit;
--------------------------------------------------------------------------------
/views/img/index.php:
--------------------------------------------------------------------------------
1 |
22 | * @copyright 2007-2014 PrestaShop SA
23 | * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
24 | * International Registered Trademark & Property of PrestaShop SA
25 | */
26 |
27 | header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
28 | header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT');
29 |
30 | header('Cache-Control: no-store, no-cache, must-revalidate');
31 | header('Cache-Control: post-check=0, pre-check=0', false);
32 | header('Pragma: no-cache');
33 |
34 | header('Location: ../');
35 | exit;
--------------------------------------------------------------------------------
/views/js/index.php:
--------------------------------------------------------------------------------
1 |
22 | * @copyright 2007-2014 PrestaShop SA
23 | * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
24 | * International Registered Trademark & Property of PrestaShop SA
25 | */
26 |
27 | header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
28 | header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT');
29 |
30 | header('Cache-Control: no-store, no-cache, must-revalidate');
31 | header('Cache-Control: post-check=0, pre-check=0', false);
32 | header('Pragma: no-cache');
33 |
34 | header('Location: ../');
35 | exit;
--------------------------------------------------------------------------------
/views/templates/index.php:
--------------------------------------------------------------------------------
1 |
22 | * @copyright 2007-2014 PrestaShop SA
23 | * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
24 | * International Registered Trademark & Property of PrestaShop SA
25 | */
26 |
27 | header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
28 | header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT');
29 |
30 | header('Cache-Control: no-store, no-cache, must-revalidate');
31 | header('Cache-Control: post-check=0, pre-check=0', false);
32 | header('Pragma: no-cache');
33 |
34 | header('Location: ../');
35 | exit;
--------------------------------------------------------------------------------
/views/templates/admin/index.php:
--------------------------------------------------------------------------------
1 |
22 | * @copyright 2007-2014 PrestaShop SA
23 | * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
24 | * International Registered Trademark & Property of PrestaShop SA
25 | */
26 |
27 | header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
28 | header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT');
29 |
30 | header('Cache-Control: no-store, no-cache, must-revalidate');
31 | header('Cache-Control: post-check=0, pre-check=0', false);
32 | header('Pragma: no-cache');
33 |
34 | header('Location: ../');
35 | exit;
--------------------------------------------------------------------------------
/views/templates/front/index.php:
--------------------------------------------------------------------------------
1 |
22 | * @copyright 2007-2014 PrestaShop SA
23 | * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
24 | * International Registered Trademark & Property of PrestaShop SA
25 | */
26 |
27 | header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
28 | header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT');
29 |
30 | header('Cache-Control: no-store, no-cache, must-revalidate');
31 | header('Cache-Control: post-check=0, pre-check=0', false);
32 | header('Pragma: no-cache');
33 |
34 | header('Location: ../');
35 | exit;
--------------------------------------------------------------------------------
/views/templates/hook/index.php:
--------------------------------------------------------------------------------
1 |
22 | * @copyright 2007-2014 PrestaShop SA
23 | * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
24 | * International Registered Trademark & Property of PrestaShop SA
25 | */
26 |
27 | header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
28 | header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT');
29 |
30 | header('Cache-Control: no-store, no-cache, must-revalidate');
31 | header('Cache-Control: post-check=0, pre-check=0', false);
32 | header('Pragma: no-cache');
33 |
34 | header('Location: ../');
35 | exit;
--------------------------------------------------------------------------------
/controllers/front/index.php:
--------------------------------------------------------------------------------
1 |
22 | * @copyright 2007-2015 PrestaShop SA
23 | * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
24 | * International Registered Trademark & Property of PrestaShop SA
25 | */
26 |
27 | header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
28 | header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
29 |
30 | header("Cache-Control: no-store, no-cache, must-revalidate");
31 | header("Cache-Control: post-check=0, pre-check=0", false);
32 | header("Pragma: no-cache");
33 |
34 | header("Location: ../");
35 | exit;
36 |
--------------------------------------------------------------------------------
/init/index.php:
--------------------------------------------------------------------------------
1 |
22 | * @copyright 2007-2016 PrestaShop SA
23 | * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
24 | * International Registered Trademark & Property of PrestaShop SA
25 | */
26 |
27 | header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
28 | header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
29 |
30 | header("Cache-Control: no-store, no-cache, must-revalidate");
31 | header("Cache-Control: post-check=0, pre-check=0", false);
32 | header("Pragma: no-cache");
33 |
34 | header("Location: ../");
35 | exit;
36 |
--------------------------------------------------------------------------------
/models/index.php:
--------------------------------------------------------------------------------
1 |
22 | * @copyright 2007-2016 PrestaShop SA
23 | * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
24 | * International Registered Trademark & Property of PrestaShop SA
25 | */
26 |
27 | header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
28 | header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
29 |
30 | header("Cache-Control: no-store, no-cache, must-revalidate");
31 | header("Cache-Control: post-check=0, pre-check=0", false);
32 | header("Pragma: no-cache");
33 |
34 | header("Location: ../");
35 | exit;
36 |
--------------------------------------------------------------------------------
/views/index.php:
--------------------------------------------------------------------------------
1 |
22 | * @copyright 2007-2016 PrestaShop SA
23 | * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
24 | * International Registered Trademark & Property of PrestaShop SA
25 | */
26 |
27 | header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
28 | header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
29 |
30 | header("Cache-Control: no-store, no-cache, must-revalidate");
31 | header("Cache-Control: post-check=0, pre-check=0", false);
32 | header("Pragma: no-cache");
33 |
34 | header("Location: ../");
35 | exit;
36 |
--------------------------------------------------------------------------------
/controllers/index.php:
--------------------------------------------------------------------------------
1 |
22 | * @copyright 2007-2016 PrestaShop SA
23 | * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
24 | * International Registered Trademark & Property of PrestaShop SA
25 | */
26 |
27 | header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
28 | header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
29 |
30 | header("Cache-Control: no-store, no-cache, must-revalidate");
31 | header("Cache-Control: post-check=0, pre-check=0", false);
32 | header("Pragma: no-cache");
33 |
34 | header("Location: ../");
35 | exit;
36 |
--------------------------------------------------------------------------------
/translations/index.php:
--------------------------------------------------------------------------------
1 |
22 | * @copyright 2007-2016 PrestaShop SA
23 | * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
24 | * International Registered Trademark & Property of PrestaShop SA
25 | */
26 |
27 | header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
28 | header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
29 |
30 | header("Cache-Control: no-store, no-cache, must-revalidate");
31 | header("Cache-Control: post-check=0, pre-check=0", false);
32 | header("Pragma: no-cache");
33 |
34 | header("Location: ../");
35 | exit;
36 |
--------------------------------------------------------------------------------
/views/templates/admin/_configure/index.php:
--------------------------------------------------------------------------------
1 |
22 | * @copyright 2007-2013 PrestaShop SA
23 | * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
24 | * International Registered Trademark & Property of PrestaShop SA
25 | */
26 |
27 | header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
28 | header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
29 |
30 | header("Cache-Control: no-store, no-cache, must-revalidate");
31 | header("Cache-Control: post-check=0, pre-check=0", false);
32 | header("Pragma: no-cache");
33 |
34 | header("Location: ../");
35 | exit;
--------------------------------------------------------------------------------
/views/templates/admin/_configure/helpers/index.php:
--------------------------------------------------------------------------------
1 |
22 | * @copyright 2007-2013 PrestaShop SA
23 | * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
24 | * International Registered Trademark & Property of PrestaShop SA
25 | */
26 |
27 | header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
28 | header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
29 |
30 | header("Cache-Control: no-store, no-cache, must-revalidate");
31 | header("Cache-Control: post-check=0, pre-check=0", false);
32 | header("Pragma: no-cache");
33 |
34 | header("Location: ../");
35 | exit;
--------------------------------------------------------------------------------
/views/templates/admin/_configure/helpers/form/index.php:
--------------------------------------------------------------------------------
1 |
22 | * @copyright 2007-2013 PrestaShop SA
23 | * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
24 | * International Registered Trademark & Property of PrestaShop SA
25 | */
26 |
27 | header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
28 | header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
29 |
30 | header("Cache-Control: no-store, no-cache, must-revalidate");
31 | header("Cache-Control: post-check=0, pre-check=0", false);
32 | header("Pragma: no-cache");
33 |
34 | header("Location: ../");
35 | exit;
--------------------------------------------------------------------------------
/controllers/admin/index.php:
--------------------------------------------------------------------------------
1 |
22 | * @copyright 2007-2014 PrestaShop SA
23 | * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
24 | * International Registered Trademark & Property of PrestaShop SA
25 | */
26 |
27 | header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
28 | header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT');
29 |
30 | header('Cache-Control: no-store, no-cache, must-revalidate');
31 | header('Cache-Control: post-check=0, pre-check=0', false);
32 | header('Pragma: no-cache');
33 |
34 | header('Location: ../../../../');
35 | exit;
--------------------------------------------------------------------------------
/views/templates/admin/versioncheck.tpl:
--------------------------------------------------------------------------------
1 | {*
2 | * 2016 Michael Dekker
3 | *
4 | * NOTICE OF LICENSE
5 | *
6 | * This source file is subject to the Academic Free License (AFL 3.0)
7 | * that is bundled with this package in the file LICENSE.txt.
8 | * It is also available through the world-wide-web at this URL:
9 | * http://opensource.org/licenses/afl-3.0.php
10 | * If you did not receive a copy of the license and are unable to
11 | * obtain it through the world-wide-web, please send an email
12 | * to license@michaeldekker.com so we can send you a copy immediately.
13 | *
14 | * @author Michael Dekker
15 | * @copyright 2016 Michael Dekker
16 | * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
17 | *}
18 |
19 |
{l s='Check for updates' mod='phalgoliaplaces'}
20 |
21 | {l s='Check if this module needs updates' mod='phalgoliaplaces'}
22 |
23 | {if $needsUpdate}
24 |
25 | {l s='This module needs to be updated to version %s' mod='phalgoliaplaces' sprintf=[$latestVersion]}
26 |
27 | {else}
28 |
29 | {l s='This module is up to date.' mod='phalgoliaplaces'}
30 |