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.6 |
Comparing to | |
See all releases |
Code changes from version 1.1.5 to 1.1.6
- app/code/community/Manv/Storelocator/etc/config.xml +5 -1
- app/code/community/Manv/Storelocator/etc/my-config.xml +132 -0
- app/design/adminhtml/default/default/template/storelocator/storelocatorbackend.phtml +159 -0
- app/design/frontend/base/default/template/storelocator/index.phtml +62 -4
- media/storelocator/csvformat/storelocator.csv.zip +0 -0
- media/storelocator/storelocator.csv +11 -0
- media/storelocator/storelocator/14948.jpg +0 -0
- media/storelocator/storelocator/map1.jpg +0 -0
- media/storelocator/storelocator/map2.jpg +0 -0
- media/storelocator/storelocator/map3.jpg +0 -0
- package.xml +5 -5
- skin/frontend/base/default/storelocatore/img/csvimg.jpg +0 -0
app/code/community/Manv/Storelocator/etc/config.xml
CHANGED
@@ -86,7 +86,11 @@
|
|
86 |
<title>Storelocator</title>
|
87 |
<sort_order>100</sort_order>
|
88 |
<children>
|
89 |
-
|
|
|
|
|
|
|
|
|
90 |
<storelocator module="storelocator">
|
91 |
<title>Manage Storelocator</title>
|
92 |
<sort_order>0</sort_order>
|
86 |
<title>Storelocator</title>
|
87 |
<sort_order>100</sort_order>
|
88 |
<children>
|
89 |
+
<storelocatorbackend module="storelocator">
|
90 |
+
<title> CSV Import / Export </title>
|
91 |
+
<sort_order>0</sort_order>
|
92 |
+
<action>storelocator/adminhtml_storelocatorbackend</action>
|
93 |
+
</storelocatorbackend>
|
94 |
<storelocator module="storelocator">
|
95 |
<title>Manage Storelocator</title>
|
96 |
<sort_order>0</sort_order>
|
app/code/community/Manv/Storelocator/etc/my-config.xml
ADDED
@@ -0,0 +1,132 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<config>
|
3 |
+
<modules>
|
4 |
+
<Manv_Storelocator>
|
5 |
+
<version>1.1.5</version>
|
6 |
+
</Manv_Storelocator>
|
7 |
+
</modules>
|
8 |
+
<frontend>
|
9 |
+
<routers>
|
10 |
+
<storelocator>
|
11 |
+
<use>standard</use>
|
12 |
+
<args>
|
13 |
+
<module>Manv_Storelocator</module>
|
14 |
+
<frontName>storelocator</frontName>
|
15 |
+
</args>
|
16 |
+
</storelocator>
|
17 |
+
</routers>
|
18 |
+
<layout>
|
19 |
+
<updates>
|
20 |
+
<storelocator>
|
21 |
+
<file>storelocator.xml</file>
|
22 |
+
</storelocator>
|
23 |
+
</updates>
|
24 |
+
</layout>
|
25 |
+
</frontend>
|
26 |
+
<global>
|
27 |
+
<helpers>
|
28 |
+
<storelocator>
|
29 |
+
<class>Manv_Storelocator_Helper</class>
|
30 |
+
</storelocator>
|
31 |
+
</helpers>
|
32 |
+
<blocks>
|
33 |
+
<storelocator>
|
34 |
+
<class>Manv_Storelocator_Block</class>
|
35 |
+
</storelocator>
|
36 |
+
</blocks>
|
37 |
+
<models>
|
38 |
+
<storelocator>
|
39 |
+
<class>Manv_Storelocator_Model</class>
|
40 |
+
<resourceModel>storelocator_mysql4</resourceModel>
|
41 |
+
</storelocator>
|
42 |
+
<storelocator_mysql4>
|
43 |
+
<class>Manv_Storelocator_Model_Mysql4</class>
|
44 |
+
<entities>
|
45 |
+
<storelocator>
|
46 |
+
<table>manvstorelocator</table>
|
47 |
+
</storelocator>
|
48 |
+
</entities>
|
49 |
+
</storelocator_mysql4>
|
50 |
+
</models>
|
51 |
+
<resources>
|
52 |
+
<storelocator_setup>
|
53 |
+
<setup>
|
54 |
+
<module>Manv_Storelocator</module>
|
55 |
+
</setup>
|
56 |
+
<connection>
|
57 |
+
<use>core_setup</use>
|
58 |
+
</connection>
|
59 |
+
</storelocator_setup>
|
60 |
+
<storelocator_write>
|
61 |
+
<connection>
|
62 |
+
<use>core_write</use>
|
63 |
+
</connection>
|
64 |
+
</storelocator_write>
|
65 |
+
<storelocator_read>
|
66 |
+
<connection>
|
67 |
+
<use>core_read</use>
|
68 |
+
</connection>
|
69 |
+
</storelocator_read>
|
70 |
+
</resources>
|
71 |
+
</global>
|
72 |
+
<admin>
|
73 |
+
<routers>
|
74 |
+
<storelocator>
|
75 |
+
<use>admin</use>
|
76 |
+
<args>
|
77 |
+
<module>Manv_Storelocator</module>
|
78 |
+
<frontName>storelocator</frontName>
|
79 |
+
</args>
|
80 |
+
</storelocator>
|
81 |
+
</routers>
|
82 |
+
</admin>
|
83 |
+
<adminhtml>
|
84 |
+
<menu>
|
85 |
+
<storelocator module="storelocator">
|
86 |
+
<title>Storelocator</title>
|
87 |
+
<sort_order>100</sort_order>
|
88 |
+
<children>
|
89 |
+
<storelocatorbackend translate="title">
|
90 |
+
<title>About Us</title>
|
91 |
+
</storelocatorbackend>
|
92 |
+
<storelocator module="storelocator">
|
93 |
+
<title>Manage Storelocator</title>
|
94 |
+
<sort_order>0</sort_order>
|
95 |
+
<action>storelocator/adminhtml_storelocator</action>
|
96 |
+
</storelocator>
|
97 |
+
</children>
|
98 |
+
</storelocator>
|
99 |
+
</menu>
|
100 |
+
<acl>
|
101 |
+
<resources>
|
102 |
+
<all>
|
103 |
+
<title>Allow Everything</title>
|
104 |
+
</all>
|
105 |
+
<admin>
|
106 |
+
<children>
|
107 |
+
<storelocator translate="title" module="storelocator">
|
108 |
+
<title>Storelocator</title>
|
109 |
+
<sort_order>1000</sort_order>
|
110 |
+
<children>
|
111 |
+
<storelocatorbackend translate="title">
|
112 |
+
<title>About Us</title>
|
113 |
+
</storelocatorbackend>
|
114 |
+
<storelocator translate="title">
|
115 |
+
<title>Manage Storelocator</title>
|
116 |
+
<sort_order>0</sort_order>
|
117 |
+
</storelocator>
|
118 |
+
</children>
|
119 |
+
</storelocator>
|
120 |
+
</children>
|
121 |
+
</admin>
|
122 |
+
</resources>
|
123 |
+
</acl>
|
124 |
+
<layout>
|
125 |
+
<updates>
|
126 |
+
<storelocator>
|
127 |
+
<file>storelocator.xml</file>
|
128 |
+
</storelocator>
|
129 |
+
</updates>
|
130 |
+
</layout>
|
131 |
+
</adminhtml>
|
132 |
+
</config>
|
app/design/adminhtml/default/default/template/storelocator/storelocatorbackend.phtml
ADDED
@@ -0,0 +1,159 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<script type="text/javascript">
|
2 |
+
function validatestorelocator()
|
3 |
+
{
|
4 |
+
|
5 |
+
if( document.getElementById('mkscsv').value == "no" )
|
6 |
+
{
|
7 |
+
document.getElementById("mkscsv").style.borderColor="red";
|
8 |
+
document.getElementById('mkscsv').focus() ;
|
9 |
+
document.getElementById("mksmessage").style.display="block";
|
10 |
+
|
11 |
+
|
12 |
+
return false;
|
13 |
+
}
|
14 |
+
|
15 |
+
}
|
16 |
+
|
17 |
+
|
18 |
+
function mksabout()
|
19 |
+
{
|
20 |
+
if(document.getElementById("mksabout").style.display=="block")
|
21 |
+
{
|
22 |
+
document.getElementById("mksabout").style.display="none";
|
23 |
+
}else{
|
24 |
+
document.getElementById("mksabout").style.display="block";
|
25 |
+
}
|
26 |
+
}
|
27 |
+
</script>
|
28 |
+
|
29 |
+
<?php $cssurl = str_replace('index.php/','',$this->getBaseUrl());
|
30 |
+
if($_REQUEST['mkscsv']=='storelocator')
|
31 |
+
{
|
32 |
+
|
33 |
+
$connection = Mage::getSingleton('core/resource')->getConnection('core_write');
|
34 |
+
$path_info = pathinfo($file);
|
35 |
+
$ex=$path_info['extension'];
|
36 |
+
$file=$_FILES['file']['tmp_name'];
|
37 |
+
//$handle = fopen("$file", "r");
|
38 |
+
$handle1 = fopen($cssurl."media/storelocator/storelocator.csv", "r");
|
39 |
+
$sucessrecord=0;
|
40 |
+
$totalrecords=0;
|
41 |
+
while (($data = fgetcsv($handle1,1000, ',')) !== FALSE)
|
42 |
+
{
|
43 |
+
if($sucessrecord>100)
|
44 |
+
{ break; }
|
45 |
+
$val1 = mysql_real_escape_string($data[0]);
|
46 |
+
$val2 = mysql_real_escape_string($data[1]);
|
47 |
+
$val3 = mysql_real_escape_string($data[2]);
|
48 |
+
$val4 = mysql_real_escape_string($data[3]);
|
49 |
+
$val5 = mysql_real_escape_string($data[4]);
|
50 |
+
$val6 = mysql_real_escape_string($data[5]);
|
51 |
+
$val7 = mysql_real_escape_string($data[6]);
|
52 |
+
$val8 = mysql_real_escape_string($data[7]);
|
53 |
+
$val9 = mysql_real_escape_string($data[8]);
|
54 |
+
$val10 = mysql_real_escape_string($data[9]);
|
55 |
+
$val11 = mysql_real_escape_string($data[10]);
|
56 |
+
$val12 = mysql_real_escape_string($data[11]);
|
57 |
+
$val13 = mysql_real_escape_string($data[12]);
|
58 |
+
$val14 = mysql_real_escape_string($data[13]);
|
59 |
+
$val15 = mysql_real_escape_string($data[14]);
|
60 |
+
$val16 = mysql_real_escape_string($data[15]);
|
61 |
+
|
62 |
+
|
63 |
+
|
64 |
+
if($totalrecords!=0){
|
65 |
+
if($val1!=''){
|
66 |
+
|
67 |
+
|
68 |
+
$sqlmks = $connection->query("SELECT * FROM `manvstorelocator` WHERE `lat`='$val14'");
|
69 |
+
$rows1=$sqlmks->fetch();
|
70 |
+
if($rows1['lat']=='')
|
71 |
+
{
|
72 |
+
|
73 |
+
$sql = $connection->query("INSERT INTO `manvstorelocator` (`name`, `address`, `zipcode`, `city`, `country_id`, `phone`, `fax`, `description`, `store_url`, `image`, `tradinghours`,`Email`, `radius`, `lat`, `longt`, `status`) VALUES ('{$val1}','{$val2}','{$val3}','{$val4}','{$val5}','{$val6}','{$val7}','{$val8}','{$val9}','{$val10}','{$val11}','{$val12}','{$val13}','{$val14}','{$val15}','{$val16}' )" );
|
74 |
+
|
75 |
+
$sucessrecord++;
|
76 |
+
}
|
77 |
+
|
78 |
+
|
79 |
+
}}
|
80 |
+
|
81 |
+
$totalrecords++;
|
82 |
+
}
|
83 |
+
|
84 |
+
|
85 |
+
if($sql)
|
86 |
+
{ ?>
|
87 |
+
<table style="margin:auto; width:500px; padding:10px;">
|
88 |
+
<tr><td align="center" style="color:green; pedding:10px; font-size:16px;" colspan="2"> CSV Record Uploaded Successfully </td></tr>
|
89 |
+
<tr>
|
90 |
+
<td align="left" style="pedding-right:100px; font-size:12px;"> <?php echo 'Total Records = '.$totalrecords; ?> </td>
|
91 |
+
<td align="right" style="color:green; pedding-right:10px; font-size:12px;"> <?php echo 'Success Records = '.$sucessrecord; ?> </td>
|
92 |
+
</tr></table>
|
93 |
+
<?php } else { ?>
|
94 |
+
<table style="margin:auto; width:500px; padding:10px;">
|
95 |
+
<tr><td align="center" style="color:red; pedding:10px; font-size:16px;" colspan="2"> CSV Record not unique </td></tr>
|
96 |
+
<tr>
|
97 |
+
<td align="left" style="pedding-right:100px; font-size:12px;"> <?php echo 'Total Records = '.$totalrecords; ?> </td>
|
98 |
+
<td align="right" style="color:green; pedding-right:10px; font-size:12px;"> <?php echo 'Success Records = '.$sucessrecord; ?> </td>
|
99 |
+
</tr>
|
100 |
+
</table>
|
101 |
+
<?php } } ?>
|
102 |
+
|
103 |
+
|
104 |
+
<table style="border:5px #EB5E00 solid; margin:auto; width:500px; padding:10px;">
|
105 |
+
<tr><td align="center"><b>One Time Uploding only 100 Record's</b> <a href="mailto:in.mukeshsaini@gmail.com?subject=Store locator Bulk Record Uploading&body=Website URL : <?php echo $cssurl; ?>" style="color:#EB5E00;"> More </a></td></tr>
|
106 |
+
<tr><td align="center">
|
107 |
+
<form method="get" enctype="multipart/form-data">
|
108 |
+
<select name="mkscsv" id="mkscsv">
|
109 |
+
<option value="no"> -Select- </option>
|
110 |
+
<option value="storelocator"> media/storelocator/storelocator.csv </option>
|
111 |
+
</select>
|
112 |
+
<input type="submit" name="submit" value=" Start Uploding " onclick="return validatestorelocator();">
|
113 |
+
</form>
|
114 |
+
<div align="center" style="display:none; color:red; pedding:2px;" id="mksmessage"> Select " media/storelocator/storelocator.csv " File </div>
|
115 |
+
</td></tr>
|
116 |
+
</table>
|
117 |
+
|
118 |
+
|
119 |
+
|
120 |
+
<table border="0" align="center" style="margin-top:20px;">
|
121 |
+
<tr><td style="padding-bottom:10px;">
|
122 |
+
<div style="float:left; font-size:18px; padding-right:10px;">How to Upload CSV </div>
|
123 |
+
<div style="float:left; font-size:15px; color:#EB5E00;"> ( <a href="<?php echo $cssurl; ?>media/storelocator/csvformat/storelocator.csv.zip"> Download storelocator.csv format </a> ) </div>
|
124 |
+
|
125 |
+
</td></tr>
|
126 |
+
<tr><td>
|
127 |
+
<h3>If you want to ulpoad your Store informatiom CSV Then Follow the following instrunctions : <h3>
|
128 |
+
</td></tr>
|
129 |
+
<tr><td>
|
130 |
+
</td></tr>
|
131 |
+
<tr><td>
|
132 |
+
<b>
|
133 |
+
1. upolad a CSV in "/media/storelocator" directory with the filename "storelocator.csv". With the required fileds. </b>
|
134 |
+
</td></tr>
|
135 |
+
<tr><td>
|
136 |
+
<b>
|
137 |
+
2. Then "CSV Import / Export " below the store loctore tab in main menu. and then select the file in drop down and then clik on uploading button. </b>
|
138 |
+
</td></tr>
|
139 |
+
<tr><td>
|
140 |
+
</td></tr>
|
141 |
+
|
142 |
+
<tr><td>
|
143 |
+
<b>3. Upload new Store images in this directory "media/storelocator/storelocator". (Name Should not be repeated) </b>
|
144 |
+
</td></tr>
|
145 |
+
<tr><td>
|
146 |
+
</td></tr>
|
147 |
+
<tr><td>
|
148 |
+
<b>Note: You can download Example CSV from the backend "CSV Import / Export " below the store loctore tab in main menu. </b>
|
149 |
+
</td></tr>
|
150 |
+
|
151 |
+
|
152 |
+
<tr><td>
|
153 |
+
<img src="<?php echo $cssurl; ?>skin/frontend/base/default/storelocatore/img/csvimg.jpg" width="100%"/>
|
154 |
+
</td></tr>
|
155 |
+
</table>
|
156 |
+
|
157 |
+
|
158 |
+
|
159 |
+
|
app/design/frontend/base/default/template/storelocator/index.phtml
CHANGED
@@ -13,16 +13,74 @@
|
|
13 |
<?php $stireurl=$this->getStorelocatorStoreurl(); ?>
|
14 |
|
15 |
|
16 |
-
<?php
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
17 |
<?php if($enable==1) { ?>
|
18 |
|
19 |
-
<body onload="map_xxx('<?php echo $latitudex ?>','<?php echo $longitudex; ?>','<?php echo $
|
20 |
<?php $sql = $connection->query("select * from $tblname where status='0'" ); ?>
|
21 |
<table id="map_xxx" style="width:900px; border:10px;">
|
22 |
<tr><td style="height: 500px; overflow: auto; display:block;" >
|
23 |
<?php
|
24 |
while($row = $sql->fetch())
|
25 |
-
{
|
|
|
|
|
|
|
26 |
<table id="store-table" class="store-table" style="margin-bottom:10px;">
|
27 |
<tr>
|
28 |
<?php if($image==1) { ?>
|
@@ -35,7 +93,7 @@ while($row = $sql->fetch())
|
|
35 |
<tr>
|
36 |
<?php if($name==1) { ?>
|
37 |
<td>
|
38 |
-
<h3 class="store_name" onclick="map_xxx('<?php echo $row['lat']; ?>','<?php echo $row['longt']; ?>','<?php echo $
|
39 |
</td>
|
40 |
<?php } ?>
|
41 |
</tr>
|
13 |
<?php $stireurl=$this->getStorelocatorStoreurl(); ?>
|
14 |
|
15 |
|
16 |
+
<?php
|
17 |
+
$prefix = Mage::getConfig()->getTablePrefix();
|
18 |
+
$connection = Mage::getSingleton('core/resource')->getConnection('core_write');
|
19 |
+
$prefix = Mage::getConfig()->getTablePrefix();
|
20 |
+
$tblname=$prefix.'manvstorelocator';
|
21 |
+
$sql1 = $connection->query("select * from $tblname order by id limit 1" );
|
22 |
+
$row1 = $sql1->fetch();
|
23 |
+
$latitudex = $row1['lat'];
|
24 |
+
$longitudex = $row1['longt'];
|
25 |
+
$addressx = $row1['address'];
|
26 |
+
|
27 |
+
if($row1['radius']=='')
|
28 |
+
{
|
29 |
+
$radius = 250;
|
30 |
+
}
|
31 |
+
else {
|
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,a)
|
41 |
+
{
|
42 |
+
|
43 |
+
var miles = 3;
|
44 |
+
var latitude = x; // parseFloat("26.850883100000000000");
|
45 |
+
var longitude = y; // parseFloat("75.824783600000040000");
|
46 |
+
var radius = a; // "Rohini, New Delhi, Delhi, India";
|
47 |
+
|
48 |
+
var latlngPos = new google.maps.LatLng(latitude,longitude);
|
49 |
+
|
50 |
+
// Set up options for the Google map
|
51 |
+
var map = new google.maps.Map(document.getElementById("map"), {
|
52 |
+
zoom: 14,
|
53 |
+
|
54 |
+
center: latlngPos,
|
55 |
+
mapTypeId: google.maps.MapTypeId.ROADMAP
|
56 |
+
});
|
57 |
+
// draw circle
|
58 |
+
|
59 |
+
var circle = new google.maps.Circle({
|
60 |
+
center: latlngPos,
|
61 |
+
radius: miles *radius,
|
62 |
+
fillColor: "#ff69b4",
|
63 |
+
fillOpacity: 0.2,
|
64 |
+
strokeOpacity: 0.0,
|
65 |
+
strokeWeight: 0,
|
66 |
+
map: map
|
67 |
+
});
|
68 |
+
|
69 |
+
} google.maps.event.addDomListener(window, 'load', initialize);
|
70 |
+
</script>
|
71 |
+
|
72 |
<?php if($enable==1) { ?>
|
73 |
|
74 |
+
<body onload="map_xxx('<?php echo $latitudex ?>','<?php echo $longitudex; ?>','<?php echo $radius; ?>');">
|
75 |
<?php $sql = $connection->query("select * from $tblname where status='0'" ); ?>
|
76 |
<table id="map_xxx" style="width:900px; border:10px;">
|
77 |
<tr><td style="height: 500px; overflow: auto; display:block;" >
|
78 |
<?php
|
79 |
while($row = $sql->fetch())
|
80 |
+
{
|
81 |
+
if($row['radius']=='') { $radius1 = 250; } else { $radius1 = $row['radius']; }
|
82 |
+
|
83 |
+
?>
|
84 |
<table id="store-table" class="store-table" style="margin-bottom:10px;">
|
85 |
<tr>
|
86 |
<?php if($image==1) { ?>
|
93 |
<tr>
|
94 |
<?php if($name==1) { ?>
|
95 |
<td>
|
96 |
+
<h3 class="store_name" onclick="map_xxx('<?php echo $row['lat']; ?>','<?php echo $row['longt']; ?>','<?php echo $radius1; ?>');"><?php echo $row['name']; ?></h3>
|
97 |
</td>
|
98 |
<?php } ?>
|
99 |
</tr>
|
media/storelocator/csvformat/storelocator.csv.zip
ADDED
Binary file
|
media/storelocator/storelocator.csv
ADDED
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
Name,address,Zipcode,City,Country,Phone,Fax,description,Store Url,images,Email,Trading Hours,Radius,Latitude,Longitude,status
|
2 |
+
New York NY,123,302018,New York,United States,8764226568,xxxxx1,Malviya Nagar Rajasthan (India),http://www.magentocommerce.com/magento-connect/developer/mukeshsaini,storelocator/storelocator/map1.jpg,mukesh@ptiwebtech.com,7:00 To 8:00PM,250,40.7143528,-74.0059731,0
|
3 |
+
Karachi Sindh,124,302018,Karachi,Pakistan,8764226568,xxxxx2,Malviya Nagar Rajasthan (India),http://www.magentocommerce.com/magento-connect/developer/mukeshsaini,storelocator/storelocator/map1.jpg,mukesh@ptiwebtech.com,7:00 To 8:00PM,200,24.8933791,67.0280609,0
|
4 |
+
Malviya Nagar,125,302018,jaipur,india,8764226568,xxxxx3,Malviya Nagar Rajasthan (India),http://www.magentocommerce.com/magento-connect/developer/mukeshsaini,storelocator/storelocator/map1.jpg,mukesh@ptiwebtech.com,7:00 To 8:00PM,200,26.8571264,75.8127199,0
|
5 |
+
Malviya Nagar,126,302018,jaipur,india,8764226568,xxxxx4,Malviya Nagar Rajasthan (India),http://www.magentocommerce.com/magento-connect/developer/mukeshsaini,storelocator/storelocator/map1.jpg,mukesh@ptiwebtech.com,7:00 To 8:00PM,200,26.8571264,75.8127199,0
|
6 |
+
Malviya Nagar,127,302018,jaipur,india,8764226568,xxxxx5,Malviya Nagar Rajasthan (India),http://www.magentocommerce.com/magento-connect/developer/mukeshsaini,storelocator/storelocator/map1.jpg,mukesh@ptiwebtech.com,7:00 To 8:00PM,200,27.8571264,75.8127199,0
|
7 |
+
Malviya Nagar,128,302018,jaipur,india,8764226568,xxxxx6,Malviya Nagar Rajasthan (India),http://www.magentocommerce.com/magento-connect/developer/mukeshsaini,storelocator/storelocator/map1.jpg,mukesh@ptiwebtech.com,7:00 To 8:00PM,200,28.8571264,75.8127199,0
|
8 |
+
Malviya Nagar,129,302018,jaipur,india,8764226568,xxxxx7,Malviya Nagar Rajasthan (India),http://www.magentocommerce.com/magento-connect/developer/mukeshsaini,storelocator/storelocator/map1.jpg,mukesh@ptiwebtech.com,7:00 To 8:00PM,200,29.8571264,75.8127199,0
|
9 |
+
Malviya Nagar,130,302018,jaipur,india,8764226568,xxxxx8,Malviya Nagar Rajasthan (India),http://www.magentocommerce.com/magento-connect/developer/mukeshsaini,storelocator/storelocator/map1.jpg,mukesh@ptiwebtech.com,7:00 To 8:00PM,200,30.8571264,75.8127199,0
|
10 |
+
Malviya Nagar,131,302018,jaipur,india,8764226568,xxxxx9,Malviya Nagar Rajasthan (India),http://www.magentocommerce.com/magento-connect/developer/mukeshsaini,storelocator/storelocator/map1.jpg,mukesh@ptiwebtech.com,7:00 To 8:00PM,200,26.8571264,75.8127199,0
|
11 |
+
Malviya Nagar,132,302018,jaipur,india,8764226568,xxxxx10,Malviya Nagar Rajasthan (India),http://www.magentocommerce.com/magento-connect/developer/mukeshsaini,storelocator/storelocator/map1.jpg,mukesh@ptiwebtech.com,7:00 To 8:00PM,200,26.85712641,75.8127199,0
|
media/storelocator/storelocator/14948.jpg
CHANGED
Binary file
|
media/storelocator/storelocator/map1.jpg
CHANGED
Binary file
|
media/storelocator/storelocator/map2.jpg
CHANGED
Binary file
|
media/storelocator/storelocator/map3.jpg
CHANGED
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.
|
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
|
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-
|
14 |
-
<time>06:
|
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="e88bd2d64a2cd37cbf87afec138f7829"/></dir><file name="Tabs.php" hash="69cab78ea0631d5248ca3a5a412846a4"/></dir><file name="Edit.php" hash="1c1812b4a0e11bc1344f7ec2b910100d"/><file name="Grid.php" hash="5ff7392321d54d15bf7fdaa14bb67422"/></dir><file name="Storelocator.php" hash="0a2ce63f7097ab8372707538a69842a7"/><file name="Storelocatorbackend.php" hash="325dc329365cad3c0612aae1b8afb7c2"/></dir><file name="Index.php" hash="797b96a0f52db552b5e56d9206e3a162"/></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"/><file name="StorelocatorbackendController.php" hash="3dc6f6b3715900c949ee070d217e2516"/></dir><file name="IndexController.php" hash="178ddafe05235e4dfdb170b6523616a5"/></dir><dir name="etc"><file name="adminhtml.xml" hash="49f58436b0c5e5d0ff6ed5b2f7eb0b8a"/><file name="config.xml" hash="
|
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.6</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-04-10</date>
|
14 |
+
<time>06:18:44</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="e88bd2d64a2cd37cbf87afec138f7829"/></dir><file name="Tabs.php" hash="69cab78ea0631d5248ca3a5a412846a4"/></dir><file name="Edit.php" hash="1c1812b4a0e11bc1344f7ec2b910100d"/><file name="Grid.php" hash="5ff7392321d54d15bf7fdaa14bb67422"/></dir><file name="Storelocator.php" hash="0a2ce63f7097ab8372707538a69842a7"/><file name="Storelocatorbackend.php" hash="325dc329365cad3c0612aae1b8afb7c2"/></dir><file name="Index.php" hash="797b96a0f52db552b5e56d9206e3a162"/></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"/><file name="StorelocatorbackendController.php" hash="3dc6f6b3715900c949ee070d217e2516"/></dir><file name="IndexController.php" hash="178ddafe05235e4dfdb170b6523616a5"/></dir><dir name="etc"><file name="adminhtml.xml" hash="49f58436b0c5e5d0ff6ed5b2f7eb0b8a"/><file name="config.xml" hash="ebcda9cd6a038959ed7138b120a9da34"/><file name="my-config.xml" hash="daadfb9abee91f770cabc09e844ffb33"/><file name="system.xml" hash="fbeeb07e9a12d3f1d5f91f9ddc4c6154"/></dir><dir name="sql"><dir name="storelocator_setup"><file name="mysql4-install-1.1.5.php" hash="22824df31d2e25c369c40b327844d430"/></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="eb30f0648882aadcba31244cf12edc0d"/></dir></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="storelocator.xml" hash="6d894b77e9e4b06803c89dd5be69fca6"/></dir><dir name="template"><dir name="storelocator"><file name="config.phtml" hash="ac35816881ab2be61f82d8cf69bfd18a"/><file name="copy index.phtml" hash="43a6a14202610863c8be650f9ed3a523"/><file name="index.phtml" hash="7cc09e10da018997c5290b1077a10171"/></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Manv_Storelocator.xml" hash="c53d2f9df2e488626ad72dfe09463eaa"/></dir></target><target name="magemedia"><dir name="storelocator"><dir name="csvformat"><file name="storelocator.csv.zip" hash="7e0cbdf41a41ddd35677bdd393031326"/></dir><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><file name="storelocator.csv" hash="6449c28acc1d5525f8badfaecc3ee2bb"/></dir></target><target name="mageskin"><dir name="frontend"><dir name="base"><dir name="default"><dir name="storelocatore"><dir name="img"><file name="csvimg.jpg" hash="35e04257829baebf70dd10172bef0487"/></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>
|
skin/frontend/base/default/storelocatore/img/csvimg.jpg
ADDED
Binary file
|