Manv_storelocator - Version 1.1.4

Version Notes

Store Locator extension allows you to show store location. Store locator increses tour sales. Store locator.

Download this release

Release Info

Developer Manvendra Sharma
Extension Manv_storelocator
Version 1.1.4
Comparing to
See all releases


Code changes from version 1.1.3 to 1.1.4

app/code/community/Manv/Storelocator/sql/storelocator_setup/mysql4-install-1.1.3.php CHANGED
@@ -2,7 +2,11 @@
2
  $installer = $this;
3
  $installer->startSetup();
4
  $sql=<<<SQLTEXT
5
- create table manvstorelocator(id int not null auto_increment, name varchar(100), address varchar(255),zipcode varchar(100),city varchar(100),country_id varchar(100),phone varchar(100),fax varchar(100),description varchar(255),store_url varchar(100),email varchar(100),tradinghours varchar(100),radius varchar(100),image varchar(100),lat varchar(100),longt varchar(100),status varchar(100),primary key(id));
 
 
 
 
6
 
7
  SQLTEXT;
8
 
@@ -11,4 +15,4 @@ $installer->run($sql);
11
  Mage::getModel('core/url_rewrite')->setId(null);
12
  //demo
13
  $installer->endSetup();
14
-
2
  $installer = $this;
3
  $installer->startSetup();
4
  $sql=<<<SQLTEXT
5
+ create table {$this->getTable('manvstorelocator')} (id int not null auto_increment, name varchar(100), address varchar(255),zipcode varchar(100),city varchar(100),country_id varchar(100),phone varchar(100),fax varchar(100),description varchar(255),store_url varchar(100),email varchar(100),tradinghours varchar(100),radius varchar(100),image varchar(100),lat varchar(100),longt varchar(100),status varchar(100),primary key(id));
6
+
7
+ INSERT INTO {$this->getTable('manvstorelocator')} (`name`, `address`, `zipcode`, `city`, `country_id`, `phone`, `fax`, `description`, `store_url`, `email`, `tradinghours`, `radius`, `image`, `lat`, `longt`, `status`) VALUES ('Jaipur Store', 'Jaipur', '302018', 'Jaipur', 'India', '7792047479', NULL, 'Jaipur Store', 'http://www.magentocommerce.com/magento-connect/developer/sharmamanvendra', 'sharmamanvendra6@gmail.com', '7:00 To 8:00PM', '306', 'storelocator/storelocator/14948.jpg', '26.849542700000000000', '75.819621099999950000', '0');
8
+
9
+
10
 
11
  SQLTEXT;
12
 
15
  Mage::getModel('core/url_rewrite')->setId(null);
16
  //demo
17
  $installer->endSetup();
18
+
app/design/frontend/base/default/template/storelocator/index.phtml CHANGED
@@ -13,12 +13,15 @@ $radius = $row1['radius'];
13
  <script src="https://maps.google.com/maps/api/js?sensor=false" type="text/javascript"></script>
14
  <script type="text/javascript">
15
 
16
- function map_xxx(x,y,z)
17
  {
18
- var miles = 3;
 
19
  var latitude = x; // parseFloat("26.850883100000000000");
20
  var longitude = y; // parseFloat("75.824783600000040000");
21
  var address = z; // "Rohini, New Delhi, Delhi, India";
 
 
22
  var latlngPos = new google.maps.LatLng(latitude,longitude);
23
 
24
  // Set up options for the Google map
@@ -32,7 +35,7 @@ function map_xxx(x,y,z)
32
 
33
  var circle = new google.maps.Circle({
34
  center: latlngPos,
35
- radius: miles *<?php echo $radius; ?>,
36
  fillColor: "#ff69b4",
37
  fillOpacity: 0.2,
38
  strokeOpacity: 0.0,
@@ -43,7 +46,7 @@ function map_xxx(x,y,z)
43
  } google.maps.event.addDomListener(window, 'load', initialize);
44
  </script>
45
 
46
- <body onload="map_xxx('<?php echo $latitudex ?>','<?php echo $longitudex; ?>','<?php echo $addressx; ?>');">
47
 
48
  <table id="map_xxx" style="width:900px; border:10px;">
49
  <tr><td style="width:400px;">
@@ -54,12 +57,12 @@ while($row = $sql->fetch())
54
  <table id="store-table" class="store-table">
55
  <tr>
56
  <td rowspan="10" class="store-image">
57
- <img src="<?php echo Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_MEDIA).$row['image']; ?>" alt="Manvendra sharma" width="100">
58
  </td>
59
  </tr>
60
  <tr>
61
  <td>
62
- <h3 class="store_name" onclick="map_xxx('<?php echo $row['lat']; ?>','<?php echo $row['longt']; ?>','<?php echo $row['address']; ?>');"><?php echo $row['name']; ?></h3>
63
  </td>
64
  </tr>
65
  <tr>
13
  <script src="https://maps.google.com/maps/api/js?sensor=false" type="text/javascript"></script>
14
  <script type="text/javascript">
15
 
16
+ function map_xxx(x,y,z,r)
17
  {
18
+
19
+ var miles = 3;
20
  var latitude = x; // parseFloat("26.850883100000000000");
21
  var longitude = y; // parseFloat("75.824783600000040000");
22
  var address = z; // "Rohini, New Delhi, Delhi, India";
23
+ var radius = r; // "Rohini, New Delhi, Delhi, India";
24
+
25
  var latlngPos = new google.maps.LatLng(latitude,longitude);
26
 
27
  // Set up options for the Google map
35
 
36
  var circle = new google.maps.Circle({
37
  center: latlngPos,
38
+ radius: miles *radius,
39
  fillColor: "#ff69b4",
40
  fillOpacity: 0.2,
41
  strokeOpacity: 0.0,
46
  } google.maps.event.addDomListener(window, 'load', initialize);
47
  </script>
48
 
49
+ <body onload="map_xxx('<?php echo $latitudex ?>','<?php echo $longitudex; ?>','<?php echo $addressx; ?>','<?php echo $radius; ?>');">
50
 
51
  <table id="map_xxx" style="width:900px; border:10px;">
52
  <tr><td style="width:400px;">
57
  <table id="store-table" class="store-table">
58
  <tr>
59
  <td rowspan="10" class="store-image">
60
+ <img src="<?php echo Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_MEDIA).$row['image']; ?>" width="100">
61
  </td>
62
  </tr>
63
  <tr>
64
  <td>
65
+ <h3 class="store_name" onclick="map_xxx('<?php echo $row['lat']; ?>','<?php echo $row['longt']; ?>','<?php echo $row['address']; ?>','<?php echo $row['radius']; ?>');"><?php echo $row['name']; ?></h3>
66
  </td>
67
  </tr>
68
  <tr>
media/storelocator/storelocator/14948.jpg ADDED
Binary file
media/storelocator/storelocator/apsara-non-dust.jpg ADDED
Binary file
package.xml CHANGED
@@ -1,18 +1,18 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Manv_storelocator</name>
4
- <version>1.1.3</version>
5
  <stability>stable</stability>
6
  <license>OSL</license>
7
  <channel>community</channel>
8
  <extends/>
9
- <summary> Store Locator allows you to store location for dealer and retail store. user can show his store location </summary>
10
- <description> Store Locator allows you to store location for dealer and retail store. user can show his store location </description>
11
- <notes> Store Locator allows you to store location for dealer and retail store. user can show his store location </notes>
12
  <authors><author><name>Manvendra Sharma</name><user>sharmamanvendra</user><email>sharmamanvendra6@gmail.com</email></author></authors>
13
- <date>2014-01-21</date>
14
- <time>12:34:02</time>
15
- <contents><target name="mageetc"><dir name="modules"><file name="Manv_Storelocator.xml" hash="947a27ad084f8fea37e49ef7cd00687d"/></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="template"><dir name="storelocator"><file name="index.phtml" hash="8427a01d95402a87498bf7517514d945"/></dir></dir><dir name="layout"><file name="storelocator.xml" hash="21b00e9533ac60710e156ccfa904cbf6"/></dir></dir></dir></dir><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="storelocator.xml" hash="8ac2b36dff821225c86683dccabf65b7"/></dir></dir></dir></dir></target><target name="magecommunity"><dir name="Manv"><dir name="Storelocator"><dir><dir name="Block"><dir name="Adminhtml"><dir name="Storelocator"><dir name="Edit"><file name="Form.php" hash="183787af3dff1f49be0bb751b2d25ae6"/><dir name="Tab"><file name="Form.php" hash="03b036c5739cbcc2e452e4ed5886f422"/></dir><file name="Tabs.php" hash="69cab78ea0631d5248ca3a5a412846a4"/></dir><file name="Edit.php" hash="1c1812b4a0e11bc1344f7ec2b910100d"/><file name="Grid.php" hash="6d8238f9ad4c0b8ba5b2369da4d49005"/></dir><file name="Storelocator.php" hash="0a2ce63f7097ab8372707538a69842a7"/></dir><file name="Index.php" hash="e7a7da34011f86f293b3bb860613f2f4"/></dir><dir name="Helper"><file name="Data.php" hash="0b87ae1bb674b22df79067dc6c8fe2cd"/></dir><dir name="Model"><dir name="Mysql4"><dir name="Storelocator"><file name="Collection.php" hash="63eb3eef688561558300700d61d233a9"/></dir><file name="Storelocator.php" hash="8deb77c0bcad8e84fd0363578f971be7"/></dir><file name="Storelocator.php" hash="90b7ccbfdd3ba71e832c93384c62c7e0"/></dir><dir name="controllers"><dir name="Adminhtml"><file name="StorelocatorController.php" hash="7d9466bd31cce9a0650b82470b95bb82"/></dir><file name="IndexController.php" hash="779b79a350dcd2fa05b9331303f8ae89"/></dir><dir name="etc"><file name="config.xml" hash="13b8ab2368b3dbee5eb23d9fac882b65"/></dir><dir name="sql"><dir name="storelocator_setup"><file name="mysql4-install-1.1.3.php" hash="02ecb2f33c58b3e396625b2266b269fa"/></dir></dir></dir></dir></dir></target></contents>
16
  <compatible/>
17
  <dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php></required></dependencies>
18
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Manv_storelocator</name>
4
+ <version>1.1.4</version>
5
  <stability>stable</stability>
6
  <license>OSL</license>
7
  <channel>community</channel>
8
  <extends/>
9
+ <summary>Store Locator extension allows you to show store location. Store locator increses tour sales. Store locator. </summary>
10
+ <description>Store Locator extension allows you to show store location. Store locator increses tour sales. Store locator. </description>
11
+ <notes>Store Locator extension allows you to show store location. Store locator increses tour sales. Store locator. </notes>
12
  <authors><author><name>Manvendra Sharma</name><user>sharmamanvendra</user><email>sharmamanvendra6@gmail.com</email></author></authors>
13
+ <date>2014-03-11</date>
14
+ <time>10:12:16</time>
15
+ <contents><target name="magecommunity"><dir name="Manv"><dir name="Storelocator"><dir name="Block"><dir name="Adminhtml"><dir name="Storelocator"><dir name="Edit"><file name="Form.php" hash="183787af3dff1f49be0bb751b2d25ae6"/><dir name="Tab"><file name="Form.php" hash="03b036c5739cbcc2e452e4ed5886f422"/></dir><file name="Tabs.php" hash="69cab78ea0631d5248ca3a5a412846a4"/></dir><file name="Edit.php" hash="1c1812b4a0e11bc1344f7ec2b910100d"/><file name="Grid.php" hash="6d8238f9ad4c0b8ba5b2369da4d49005"/></dir><file name="Storelocator.php" hash="0a2ce63f7097ab8372707538a69842a7"/></dir><file name="Index.php" hash="e7a7da34011f86f293b3bb860613f2f4"/></dir><dir name="Helper"><file name="Data.php" hash="0b87ae1bb674b22df79067dc6c8fe2cd"/></dir><dir name="Model"><dir name="Mysql4"><dir name="Storelocator"><file name="Collection.php" hash="63eb3eef688561558300700d61d233a9"/></dir><file name="Storelocator.php" hash="8deb77c0bcad8e84fd0363578f971be7"/></dir><file name="Storelocator.php" hash="90b7ccbfdd3ba71e832c93384c62c7e0"/></dir><dir name="controllers"><dir name="Adminhtml"><file name="StorelocatorController.php" hash="7d9466bd31cce9a0650b82470b95bb82"/></dir><file name="IndexController.php" hash="779b79a350dcd2fa05b9331303f8ae89"/></dir><dir name="etc"><file name="config.xml" hash="13b8ab2368b3dbee5eb23d9fac882b65"/></dir><dir name="sql"><dir name="storelocator_setup"><file name="mysql4-install-1.1.3.php" hash="f8cbfc5c9cef539995311847ecb9a4fd"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="template"><dir name="storelocator"><file name="index.phtml" hash="e685fbeca27bd60add6a72d2e81d3553"/></dir></dir><dir name="layout"><file name="storelocator.xml" hash="21b00e9533ac60710e156ccfa904cbf6"/></dir></dir></dir></dir><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="storelocator.xml" hash="8ac2b36dff821225c86683dccabf65b7"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Manv_Storelocator.xml" hash="947a27ad084f8fea37e49ef7cd00687d"/></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"/></dir></dir></target></contents>
16
  <compatible/>
17
  <dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php></required></dependencies>
18
  </package>