Mks_Storelocator - Version 8.1.2

Version Notes

Add New Feature :-
1. Module Configuration Setting (left menu)
2. Auto Data Load.
3. One Click Run Module
4. Radius Functionality.
5. user friendly admin.

Download this release

Release Info

Developer mukesh kumar saini
Extension Mks_Storelocator
Version 8.1.2
Comparing to
See all releases


Code changes from version 8.1.1 to 8.1.2

app/design/frontend/base/default/template/storelocator/config.phtml CHANGED
@@ -1,3 +1,4 @@
 
1
  <?php
2
  $prefix = Mage::getConfig()->getTablePrefix();
3
  $connection = Mage::getSingleton('core/resource')->getConnection('core_write');
@@ -49,5 +50,5 @@ var miles = 3;
49
  } google.maps.event.addDomListener(window, 'load', initialize);
50
  </script>
51
 
52
- <body onload="map_xxx('<?php echo $latitudex ?>','<?php echo $longitudex; ?>','<?php echo $addressx; ?>','<?php echo $radius; ?>');">
53
- <?php $sql = $connection->query("select * from $tblname where status='0'" ); ?>
1
+
2
  <?php
3
  $prefix = Mage::getConfig()->getTablePrefix();
4
  $connection = Mage::getSingleton('core/resource')->getConnection('core_write');
50
  } google.maps.event.addDomListener(window, 'load', initialize);
51
  </script>
52
 
53
+
54
+
app/design/frontend/base/default/template/storelocator/index.phtml CHANGED
@@ -13,7 +13,72 @@
13
  <?php $stireurl=$this->getStorelocatorStoreurl(); ?>
14
 
15
 
16
- <?php require_once 'app/design/frontend/base/default/template/storelocator/config.phtml'; ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
17
  <table id="map_xxx" style="width:900px; border:10px;">
18
  <tr><td style="height: 500px; overflow: auto; display:block;" >
19
  <?php
@@ -71,4 +136,11 @@ City : <?php echo $row['city']; ?>
71
  <td style="width:500px;">
72
  <div id="map" style="width:500px; height:500px;"></div>
73
  </td></tr></table>
 
 
 
 
 
 
 
74
 
13
  <?php $stireurl=$this->getStorelocatorStoreurl(); ?>
14
 
15
 
16
+
17
+
18
+
19
+ <?php if($enable==1) { ?>
20
+
21
+
22
+ <?php
23
+ $prefix = Mage::getConfig()->getTablePrefix();
24
+ $connection = Mage::getSingleton('core/resource')->getConnection('core_write');
25
+ $prefix = Mage::getConfig()->getTablePrefix();
26
+ $tblname=$prefix.'mksstorelocator';
27
+ $sql1 = $connection->query("select * from $tblname order by id limit 1" );
28
+ $row1 = $sql1->fetch();
29
+ $latitudex = $row1['lat'];
30
+ $longitudex = $row1['longt'];
31
+ $addressx = $row1['address'];
32
+ $radius = $row1['radius'];
33
+
34
+ ?>
35
+
36
+ <script src="http://code.jquery.com/jquery-1.10.2.min.js" type="text/javascript"></script>
37
+ <script src="https://maps.google.com/maps/api/js?sensor=false" type="text/javascript"></script>
38
+ <script type="text/javascript">
39
+
40
+ function map_xxx(x,y,z,a)
41
+ {
42
+
43
+ var miles = 3;
44
+ var latitude = x; // parseFloat("26.850883100000000000");
45
+ var longitude = y; // parseFloat("75.824783600000040000");
46
+ var address = z; // "Rohini, New Delhi, Delhi, India";
47
+ var radius = a; // "Rohini, New Delhi, Delhi, India";
48
+
49
+ var latlngPos = new google.maps.LatLng(latitude,longitude);
50
+
51
+ // Set up options for the Google map
52
+ var map = new google.maps.Map(document.getElementById("map"), {
53
+ zoom: 14,
54
+
55
+ center: latlngPos,
56
+ mapTypeId: google.maps.MapTypeId.ROADMAP
57
+ });
58
+ // draw circle
59
+
60
+ var circle = new google.maps.Circle({
61
+ center: latlngPos,
62
+ radius: miles *radius,
63
+ fillColor: "#ff69b4",
64
+ fillOpacity: 0.2,
65
+ strokeOpacity: 0.0,
66
+ strokeWeight: 0,
67
+ map: map
68
+ });
69
+
70
+ } google.maps.event.addDomListener(window, 'load', initialize);
71
+ </script>
72
+
73
+
74
+
75
+
76
+ <body onload="map_xxx('<?php echo $latitudex ?>','<?php echo $longitudex; ?>','<?php echo $addressx; ?>','<?php echo $radius; ?>');">
77
+ <?php $sql = $connection->query("select * from $tblname where status='0'" ); ?>
78
+
79
+
80
+ <?php //require_once 'app/design/frontend/base/default/template/storelocator/config.phtml'; ?>
81
+
82
  <table id="map_xxx" style="width:900px; border:10px;">
83
  <tr><td style="height: 500px; overflow: auto; display:block;" >
84
  <?php
136
  <td style="width:500px;">
137
  <div id="map" style="width:500px; height:500px;"></div>
138
  </td></tr></table>
139
+
140
+
141
+ <?php } else { ?>
142
+
143
+ <h1 style="color:red;">Enable ( MKS STORE LOCATOR ) Module via Admin = System -> Configuration-> General Setting </h1>
144
+
145
+ <?php } ?>
146
 
package.xml CHANGED
@@ -1,7 +1,7 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Mks_Storelocator</name>
4
- <version>8.1.1</version>
5
  <stability>stable</stability>
6
  <license>OSL</license>
7
  <channel>community</channel>
@@ -15,9 +15,9 @@
15
  4. Radius Functionality.&#xD;
16
  5. user friendly admin.</notes>
17
  <authors><author><name>mukesh kumar saini</name><user>mukeshbagri</user><email>in.mukeshsaini@gmail.com</email></author></authors>
18
- <date>2014-03-21</date>
19
- <time>11:42:44</time>
20
- <contents><target name="mageetc"><dir name="modules"><file name="Mks_Storelocator.xml" hash="5db52931092f06e184dc599fd0277229"/></dir></target><target name="magecommunity"><dir name="Mks"><dir name="Storelocator"><dir name="Block"><dir name="Adminhtml"><dir name="Storelocator"><dir name="Edit"><file name="Form.php" hash="00fed13f02e804d93bac7258689769ad"/><dir name="Tab"><file name="Form.php" hash="da3f13dd930a591372ad0c14796c1e54"/></dir><file name="Tabs.php" hash="8819f35cd4af4b61d14bf377c58432b6"/></dir><file name="Edit.php" hash="9be35d036a69cfb545d2f1c1649cb6ba"/><file name="Grid.php" hash="da9a9f1d7359078f7f388440020b2c3e"/></dir><file name="Storelocator.php" hash="81770ec5e092a177c22e188b8db38d7e"/><file name="Storelocatorbackend.php" hash="d600cb8ff797f008c7c652a299305c8d"/></dir><file name="Index.php" hash="4a9374eced7efc8e0dc9aafb9ff3cef4"/></dir><dir name="Helper"><file name="Data.php" hash="083521dd42bf734a864e06dceb37b5a0"/></dir><dir name="Model"><dir name="Mysql4"><dir name="Storelocator"><file name="Collection.php" hash="183c5eeeb2ef6b444bfc08a829b93cde"/></dir><file name="Storelocator.php" hash="29d65325bd746be070275726e309afdb"/></dir><file name="Storelocator.php" hash="e91d32a733f49d62d54c1335a57e2ee5"/></dir><dir name="controllers"><dir name="Adminhtml"><file name="StorelocatorController.php" hash="1c8564c74994999c3e5177450b64241b"/><file name="StorelocatorbackendController.php" hash="342691ea69bd91fed7db67032fa69e32"/></dir><file name="IndexController.php" hash="852566fcfe7bf18f80926d04af88821e"/></dir><dir name="etc"><file name="adminhtml.xml" hash="49f58436b0c5e5d0ff6ed5b2f7eb0b8a"/><file name="config.xml" hash="aa5b1df1e9cbf67ea541db01f5ccc23b"/><file name="system.xml" hash="e903fefb54e74e5db482baee62d46185"/></dir><dir name="sql"><dir name="storelocator_setup"><file name="mysql4-install-8.1.1.php" hash="a6c9e74024278161f3ed0653dfbc9eb0"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="storelocator.xml" hash="c5ce52ab3f3f3d71dbb902134642e2dc"/></dir><dir name="template"><dir name="storelocator"><file name="storelocatorbackend.phtml" hash="df18a76ac5d10cd61c8cd0b9fa2ee247"/></dir></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="storelocator.xml" hash="5f5622865dce575fa97450411d8ec442"/></dir><dir name="template"><dir name="storelocator"><file name="config.phtml" hash="06c55a32961c8fa4dfa5118803fe1f93"/><file name="index.phtml" hash="5f45649f707a68475ae8e4e513acd64e"/><file name="new_index.phtml" hash="29c6340d08453dffa1c599bad1aab994"/></dir></dir></dir></dir></dir></target><target name="magemedia"><dir name="storelocator"><dir name="storelocator"><file name="14948.jpg" hash="cf7b5d700a4d3ed77ddb842de67ac0bc"/><file name="apsara-non-dust.jpg" hash="643b2a73671d1e352265ff49412c8c72"/><file name="map1.jpg" hash="a27ada4df9c7106527e4db655c7d15ed"/><file name="map2.jpg" hash="d632084de7a0e99a8eeb4a3720be3066"/><file name="map3.jpg" hash="bd06793b455379880266505f5ea49b81"/></dir></dir></target></contents>
21
  <compatible/>
22
  <dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php></required></dependencies>
23
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Mks_Storelocator</name>
4
+ <version>8.1.2</version>
5
  <stability>stable</stability>
6
  <license>OSL</license>
7
  <channel>community</channel>
15
  4. Radius Functionality.&#xD;
16
  5. user friendly admin.</notes>
17
  <authors><author><name>mukesh kumar saini</name><user>mukeshbagri</user><email>in.mukeshsaini@gmail.com</email></author></authors>
18
+ <date>2014-03-25</date>
19
+ <time>13:00:26</time>
20
+ <contents><target name="mageetc"><dir name="modules"><file name="Mks_Storelocator.xml" hash="5db52931092f06e184dc599fd0277229"/></dir></target><target name="magecommunity"><dir name="Mks"><dir name="Storelocator"><dir name="Block"><dir name="Adminhtml"><dir name="Storelocator"><dir name="Edit"><file name="Form.php" hash="00fed13f02e804d93bac7258689769ad"/><dir name="Tab"><file name="Form.php" hash="da3f13dd930a591372ad0c14796c1e54"/></dir><file name="Tabs.php" hash="8819f35cd4af4b61d14bf377c58432b6"/></dir><file name="Edit.php" hash="9be35d036a69cfb545d2f1c1649cb6ba"/><file name="Grid.php" hash="da9a9f1d7359078f7f388440020b2c3e"/></dir><file name="Storelocator.php" hash="81770ec5e092a177c22e188b8db38d7e"/><file name="Storelocatorbackend.php" hash="d600cb8ff797f008c7c652a299305c8d"/></dir><file name="Index.php" hash="4a9374eced7efc8e0dc9aafb9ff3cef4"/></dir><dir name="Helper"><file name="Data.php" hash="083521dd42bf734a864e06dceb37b5a0"/></dir><dir name="Model"><dir name="Mysql4"><dir name="Storelocator"><file name="Collection.php" hash="183c5eeeb2ef6b444bfc08a829b93cde"/></dir><file name="Storelocator.php" hash="29d65325bd746be070275726e309afdb"/></dir><file name="Storelocator.php" hash="e91d32a733f49d62d54c1335a57e2ee5"/></dir><dir name="controllers"><dir name="Adminhtml"><file name="StorelocatorController.php" hash="1c8564c74994999c3e5177450b64241b"/><file name="StorelocatorbackendController.php" hash="342691ea69bd91fed7db67032fa69e32"/></dir><file name="IndexController.php" hash="852566fcfe7bf18f80926d04af88821e"/></dir><dir name="etc"><file name="adminhtml.xml" hash="49f58436b0c5e5d0ff6ed5b2f7eb0b8a"/><file name="config.xml" hash="aa5b1df1e9cbf67ea541db01f5ccc23b"/><file name="system.xml" hash="e903fefb54e74e5db482baee62d46185"/></dir><dir name="sql"><dir name="storelocator_setup"><file name="mysql4-install-8.1.1.php" hash="a6c9e74024278161f3ed0653dfbc9eb0"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="storelocator.xml" hash="c5ce52ab3f3f3d71dbb902134642e2dc"/></dir><dir name="template"><dir name="storelocator"><file name="storelocatorbackend.phtml" hash="df18a76ac5d10cd61c8cd0b9fa2ee247"/></dir></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="storelocator.xml" hash="5f5622865dce575fa97450411d8ec442"/></dir><dir name="template"><dir name="storelocator"><file name="config.phtml" hash="aec776af2155c512cba75ee93cd77cc7"/><file name="index.phtml" hash="c38e2df6f5bdca53fdddcc106699e271"/><file name="new_index.phtml" hash="29c6340d08453dffa1c599bad1aab994"/></dir></dir></dir></dir></dir></target><target name="magemedia"><dir name="storelocator"><dir name="storelocator"><file name="14948.jpg" hash="cf7b5d700a4d3ed77ddb842de67ac0bc"/><file name="apsara-non-dust.jpg" hash="643b2a73671d1e352265ff49412c8c72"/><file name="map1.jpg" hash="a27ada4df9c7106527e4db655c7d15ed"/><file name="map2.jpg" hash="d632084de7a0e99a8eeb4a3720be3066"/><file name="map3.jpg" hash="bd06793b455379880266505f5ea49b81"/></dir></dir></target></contents>
21
  <compatible/>
22
  <dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php></required></dependencies>
23
  </package>