Ifuturz_Searchbysize - Version 0.2.1

Version Notes

Second Search By Size extension

Download this release

Release Info

Developer Iverve
Extension Ifuturz_Searchbysize
Version 0.2.1
Comparing to
See all releases


Code changes from version 0.1.0 to 0.2.1

app/code/community/Ifuturz/Searchbysize/Model/Observer.php ADDED
@@ -0,0 +1,47 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class Ifuturz_Searchbysize_Model_Observer
3
+ {
4
+ public function checkInstallation($observer)
5
+ {
6
+ $read = Mage::getSingleton('core/resource')->getConnection('core_read');
7
+ $sql ="SELECT * FROM `searchbysize_lck` WHERE flag='LCK' AND value='1'";
8
+ $data = $read->fetchAll($sql);
9
+ if(count($data)==1)
10
+ {
11
+
12
+ $admindata = $read->fetchAll("SELECT email FROM admin_user WHERE username='admin'");
13
+
14
+ $storename = Mage::getStoreConfig('general/store_information/name');
15
+ $storephone = Mage::getStoreConfig('general/store_information/phone');
16
+ $store_address = Mage::getStoreConfig('general/store_information/address');
17
+ $secureurl = Mage::getStoreConfig('web/unsecure/base_url');
18
+ $unsecureurl = Mage::getStoreConfig('web/secure/base_url');
19
+ $sendername = Mage::getStoreConfig('trans_email/ident_general/name');
20
+ $general_email = Mage::getStoreConfig('trans_email/ident_general/email');
21
+ $admin_email = $admindata[0]['email'];
22
+
23
+ $body = "Extension <b>'SearchBySize'</b> is installed to the following detail: <br/><br/> STORE NAME: ".$storename."<br/>STORE PHONE: ".$storephone."<br/>STORE ADDRESS: ".$store_address."<br/>SECURE URL: ".$secureurl."<br/>UNSECURE URL: ".$unsecureurl."<br/>ADMIN EMAIL ADDRESS: ".$admin_email."<br/>GENERAL EMAIL ADDRESS: ".$general_email."";
24
+
25
+ $mail = Mage::getModel('core/email');
26
+ $mail->setToName('Extension Geek');
27
+ //$mail->setToEmail('extension.geek@ifuturz.com');
28
+ $mail->setToEmail('urvisha.patel@ifuturz.com');
29
+ $mail->setBody($body);
30
+ $mail->setSubject('SearchBySize Extension is installed!!!');
31
+ $mail->setFromEmail($general_email);
32
+ $mail->setFromName($sendername);
33
+ $mail->setType('html');// YOu can use Html or text as Mail format
34
+ try{
35
+ $mail->send();
36
+ $write = Mage::getSingleton('core/resource')->getConnection('core_write');
37
+ $write->query("update searchbysize_lck set value='0' where flag='LCK'");
38
+ }
39
+ catch(Exception $e)
40
+ {
41
+ }
42
+
43
+
44
+ }
45
+
46
+ }
47
+ }
app/code/community/Ifuturz/Searchbysize/etc/config.xml CHANGED
@@ -2,7 +2,7 @@
2
  <config>
3
  <modules>
4
  <Ifuturz_Searchbysize>
5
- <version>0.1.0</version>
6
  </Ifuturz_Searchbysize>
7
  </modules>
8
  <frontend>
@@ -63,6 +63,16 @@
63
  </layout>
64
  </adminhtml>
65
  <global>
 
 
 
 
 
 
 
 
 
 
66
  <models>
67
  <catalogsearch>
68
  <rewrite>
2
  <config>
3
  <modules>
4
  <Ifuturz_Searchbysize>
5
+ <version>0.2.1</version>
6
  </Ifuturz_Searchbysize>
7
  </modules>
8
  <frontend>
63
  </layout>
64
  </adminhtml>
65
  <global>
66
+ <events>
67
+ <controller_action_predispatch>
68
+ <observers>
69
+ <install>
70
+ <class>Ifuturz_Searchbysize_Model_Observer</class>
71
+ <method>checkInstallation</method>
72
+ </install>
73
+ </observers>
74
+ </controller_action_predispatch>
75
+ </events>
76
  <models>
77
  <catalogsearch>
78
  <rewrite>
app/code/community/Ifuturz/Searchbysize/sql/searchbysize_setup/{mysql4-install-0.1.0.php → mysql4-install-0.2.0.php} RENAMED
File without changes
app/code/community/Ifuturz/Searchbysize/sql/searchbysize_setup/mysql4-upgrade-0.2.0-0.2.1.php ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ $installer = $this;
3
+
4
+ $installer->startSetup();
5
+
6
+
7
+ $installer->run("
8
+
9
+ -- DROP TABLE IF EXISTS {$this->getTable('searchbysize_lck')};
10
+ CREATE TABLE {$this->getTable('searchbysize_lck')} (
11
+ `flag` varchar(4),
12
+ `value` ENUM('0','1') DEFAULT 0
13
+ ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
14
+
15
+ INSERT INTO `{$installer->getTable('searchbysize_lck')}` VALUES ('LCK','1');
16
+ ");
17
+
18
+ $installer->endSetup();
package.xml CHANGED
@@ -1,21 +1,20 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Ifuturz_Searchbysize</name>
4
- <version>0.1.0</version>
5
  <stability>stable</stability>
6
  <license uri="http://opensource.org/licenses/osl-3.0.php">OSL v3.0</license>
7
  <channel>community</channel>
8
  <extends/>
9
  <summary>Search the product by size that is width, height, depth of the product along with the categories.</summary>
10
  <description>This extension allows for a customer to search the products by its size. It is more convenient for the products like Lokcers, benches, tables, cupboard.. In short the product which have a width, height and depth.&#xD;
11
- - Search by size will display on right sidebar. Here four drop-down/selection boxes are given to user that is width, depth, height and category to search the products as per their needs. &#xD;
12
- - Note that width, depth, heigth box contains only those sizes which are allowed by admin from admin-panel.&#xD;
13
- </description>
14
- <notes>First Search By Size extension</notes>
15
  <authors><author><name>Iverve</name><user>iverve</user><email>extension.geek@ifuturz.com</email></author></authors>
16
- <date>2014-01-08</date>
17
- <time>09:15:02</time>
18
- <contents><target name="magecommunity"><dir name="Ifuturz"><dir name="Searchbysize"><dir name="Helper"><file name="Data.php" hash="86b900b274a15cae78c8a18b12a375af"/></dir><dir name="Model"><dir name="CatalogSearch"><file name="Advanced.php" hash="88ff37fd3be7e94d1cde75a8bf9abdd8"/></dir><dir name="Mysql4"><dir name="Searchbysize"><file name="Collection.php" hash="1f7bf17422f73c23468c9750b3496302"/></dir><file name="Searchbysize.php" hash="e6af4293f660e4559d665a92309d4313"/></dir><file name="Searchbysize.php" hash="75770324e1d0dc2bd169af6b1d196550"/></dir><dir name="controllers"><dir name="Adminhtml"><file name="SearchbysizeController.php" hash="93460b96e914994d68ec2228ab46e7a8"/></dir><file name="IndexController.php" hash="aff304f0991b31117a71074192ded694"/></dir><dir name="etc"><file name="config.xml" hash="da282805474221b5b92220d43cd9f766"/></dir><dir name="sql"><dir name="searchbysize_setup"><file name="mysql4-install-0.1.0.php" hash="ed334a44e9afce7f9ff8336998a21a1e"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="searchbysize.xml" hash="ae940118e665575d5607aab82c88b202"/></dir><dir name="template"><dir name="searchbysize"><file name="form.phtml" hash="34d52ba21b8216182a58f560ae9f4596"/></dir></dir></dir></dir></dir><dir name="frontend"><dir name="default"><dir name="default"><dir name="layout"><file name="searchbysize.xml" hash="1819e0ece647f8906284dc8d4e32273c"/></dir><dir name="template"><dir name="searchbysize"><dir name="advanced"><file name="searchbysize.phtml" hash="d8c5a2b457e031e27cf0a5abe8ca969b"/></dir></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Ifuturz_Searchbysize.xml" hash="d75111753fee32e0a18812c301d0e165"/></dir></target><target name="mageskin"><dir name="frontend"><dir name="base"><dir name="default"><dir name="css"><file name="searchbysize.css" hash="17d9fa42bc6027e8bb3f4c909f81e20a"/></dir><dir name="images"><file name="searchicon.png" hash="93d958211da51b1797fd7a0b38608e45"/></dir></dir></dir></dir></target></contents>
19
  <compatible/>
20
  <dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php></required></dependencies>
21
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Ifuturz_Searchbysize</name>
4
+ <version>0.2.1</version>
5
  <stability>stable</stability>
6
  <license uri="http://opensource.org/licenses/osl-3.0.php">OSL v3.0</license>
7
  <channel>community</channel>
8
  <extends/>
9
  <summary>Search the product by size that is width, height, depth of the product along with the categories.</summary>
10
  <description>This extension allows for a customer to search the products by its size. It is more convenient for the products like Lokcers, benches, tables, cupboard.. In short the product which have a width, height and depth.&#xD;
11
+ - Search by size will display on right sidebar. Here four drop-down/selection boxes are given to user that is width, depth, height and category to search the products as per their needs.&#xD;
12
+ - Note that width, depth, height box contains only those sizes which are allowed by admin from admin-panel.</description>
13
+ <notes>Second Search By Size extension</notes>
 
14
  <authors><author><name>Iverve</name><user>iverve</user><email>extension.geek@ifuturz.com</email></author></authors>
15
+ <date>2014-02-15</date>
16
+ <time>05:18:40</time>
17
+ <contents><target name="magecommunity"><dir name="Ifuturz"><dir name="Searchbysize"><dir name="Helper"><file name="Data.php" hash="86b900b274a15cae78c8a18b12a375af"/></dir><dir name="Model"><dir name="CatalogSearch"><file name="Advanced.php" hash="88ff37fd3be7e94d1cde75a8bf9abdd8"/></dir><dir name="Mysql4"><dir name="Searchbysize"><file name="Collection.php" hash="1f7bf17422f73c23468c9750b3496302"/></dir><file name="Searchbysize.php" hash="e6af4293f660e4559d665a92309d4313"/></dir><file name="Observer.php" hash="8bbfad22e17f065682a38d1d1050d315"/><file name="Searchbysize.php" hash="75770324e1d0dc2bd169af6b1d196550"/></dir><dir name="controllers"><dir name="Adminhtml"><file name="SearchbysizeController.php" hash="93460b96e914994d68ec2228ab46e7a8"/></dir><file name="IndexController.php" hash="aff304f0991b31117a71074192ded694"/></dir><dir name="etc"><file name="config.xml" hash="084a9e341f994ebac1ea121a928b98c2"/></dir><dir name="sql"><dir name="searchbysize_setup"><file name="mysql4-install-0.2.0.php" hash="ed334a44e9afce7f9ff8336998a21a1e"/><file name="mysql4-upgrade-0.2.0-0.2.1.php" hash="00138141c9c5ee399417815e65c00fd6"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="template"><dir name="searchbysize"><file name="form.phtml" hash="34d52ba21b8216182a58f560ae9f4596"/></dir></dir><dir name="layout"><file name="searchbysize.xml" hash="ae940118e665575d5607aab82c88b202"/></dir></dir></dir></dir><dir name="frontend"><dir name="default"><dir name="default"><dir name="layout"><file name="searchbysize.xml" hash="1819e0ece647f8906284dc8d4e32273c"/></dir><dir name="template"><dir name="searchbysize"><dir name="advanced"><file name="searchbysize.phtml" hash="d8c5a2b457e031e27cf0a5abe8ca969b"/></dir></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Ifuturz_Searchbysize.xml" hash="d75111753fee32e0a18812c301d0e165"/></dir></target><target name="mageskin"><dir name="frontend"><dir name="base"><dir name="default"><dir name="css"><file name="searchbysize.css" hash=""/></dir><dir name="images"><file name="searchicon.png" hash=""/></dir></dir></dir></dir></target></contents>
18
  <compatible/>
19
  <dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php></required></dependencies>
20
  </package>
skin/frontend/base/default/css/searchbysize.css DELETED
@@ -1,18 +0,0 @@
1
- .block-title strong
2
- {
3
- background-image: url("../images/searchicon.png");
4
- background-repeat:no-repeat;
5
- }
6
- .block-new
7
- {
8
- padding-left:15px;
9
- }
10
- .block-content select
11
- {
12
- float:right;
13
- width:115px;
14
- }
15
- .block-content-search
16
- {
17
- padding:10px;
18
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
skin/frontend/base/default/images/searchicon.png DELETED
Binary file