Morningtime_TextfieldLayeredNav - Version 1.3.2.1.2

Version Notes

Stable version

Download this release

Release Info

Developer Magento Core Team
Extension Morningtime_TextfieldLayeredNav
Version 1.3.2.1.2
Comparing to
See all releases


Code changes from version 1.3.2.1 to 1.3.2.1.2

app/code/community/Morningtime/TextfieldLayeredNav/Model/Catalog/Resource/Eav/Mysql4/Product.php CHANGED
@@ -87,6 +87,8 @@ class Morningtime_TextfieldLayeredNav_Model_Catalog_Resource_Eav_Mysql4_Product
87
 
88
  protected function _mtGetValue($attribute, $value)
89
  {
 
 
90
 
91
  $writeFilter = Mage::getSingleton('core/resource')->getConnection('core_write');
92
  $eav_attribute = Mage::getSingleton('core/resource')->getTableName('eav_attribute');
87
 
88
  protected function _mtGetValue($attribute, $value)
89
  {
90
+
91
+ $value = addslashes($value);
92
 
93
  $writeFilter = Mage::getSingleton('core/resource')->getConnection('core_write');
94
  $eav_attribute = Mage::getSingleton('core/resource')->getTableName('eav_attribute');
package.xml CHANGED
@@ -1,18 +1,16 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Morningtime_TextfieldLayeredNav</name>
4
- <version>1.3.2.1</version>
5
  <stability>stable</stability>
6
  <license uri="http://opensource.org/licenses/osl-3.0.php">Open Software License (OSL 3.0)</license>
7
  <channel>community</channel>
8
  <extends/>
9
- <summary>Until now, you could only use Dropdown and Multiselect attributes for layered navigation. This extension adds a new texfield element, called textfilter.</summary>
10
  <description>== WHAT DOES IT DO? ==
11
- This is an admin module only. You can setup an attribute with "Textfield for Filter" as type. Now you can enter text on the product edit page (textfield). The entered data can be used for Layered Navigation, because it functions like a Magento Dropdown.
12
 
13
- The advantage is, you don't need to go back to the attribute option page to add a new option every t ime. You can add options directly on the fly when creating products.
14
-
15
- See screenshots for better understanding.
16
 
17
  == INSTALLATION ==
18
  - Get key from Magento Connect
@@ -24,17 +22,17 @@ See screenshots for better understanding.
24
  No config settings.
25
 
26
  == USAGE ==
27
- Add a new product attribute and choose "Textfield for Filter" instead of Dropdown or Multiselect. "Textfilter" is a textfield that can be used for layered navigation!
28
 
29
- Rebuild your search indexes (cache).
30
 
31
  == CUSTOMIZATION ==
32
  No options available.</description>
33
- <notes>Stable Release</notes>
34
  <authors><author><name>Mathijs Koenraadt (MSc)</name><user>auto-converted</user><email>info@morningtime.com</email></author></authors>
35
- <date>2009-06-24</date>
36
- <time>14:12:12</time>
37
- <contents><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="template"><dir name="morningtime"><dir name="textfieldlayerednav"><dir name="catalog"><dir name="product"><dir name="attribute"><file name="js.phtml" hash="e28eb1c566381048b000c16f63fcb8d9"/></dir></dir></dir></dir></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Morningtime_TextfieldLayeredNav.xml" hash="04d99f1c93b4ea0598a2651ac01785e2"/></dir></target><target name="magecommunity"><dir name="Morningtime"><dir name="TextfieldLayeredNav"><dir name="Block"><dir name="Adminhtml"><dir name="Catalog"><dir name="Product"><dir name="Attribute"><dir name="Edit"><dir name="Tab"><file name="Main.php" hash="b2bae8c5e2d77927cc923a0e82c57635"/><file name="Options.php" hash="df916a987b2647e3009f8553051f3142"/></dir></dir></dir><dir name="Edit"><dir name="Tab"><file name="Attributes.php" hash="2fed5f68e944cf2a00278c6f9c1bd181"/></dir></dir></dir></dir></dir><dir name="CatalogSearch"><dir name="Advanced"><file name="Form.php" hash="98ec46f050d5bcb19baa39881fe8362d"/></dir></dir><dir name="Catalog"><dir name="Product"><dir name="Compare"><file name="List.php" hash="986c1e5a9a39860575f12fa89a471db8"/></dir></dir></dir></dir><dir name="controllers"><dir name="Adminhtml"><dir name="Catalog"><dir name="Product"><file name="AttributeController.php" hash="ce84c2d2499ca04f367aee4a44dde0c1"/></dir></dir></dir></dir><dir name="etc"><file name="config.xml" hash="edc196e2001b0bba18fc627dcfdbd39b"/></dir><dir name="Model"><dir name="CatalogIndex"><dir name="Indexer"><file name="Eav.php" hash="b6a2cebae4472f6a7d8fc454108d0b0c"/></dir></dir><dir name="CatalogRule"><dir name="Rule"><dir name="Condition"><file name="Product.php" hash="59c56dcea83bedbcfdea86098f95589c"/></dir></dir></dir><dir name="CatalogSearch"><file name="Advanced.php" hash="11ead71aa5f7fc84c458f2300ef7339b"/><dir name="Mysql4"><dir name="Search"><file name="Collection.php" hash="192ff7e112757cb4546b72d3fc032f66"/></dir></dir></dir><dir name="Catalog"><dir name="Entity"><file name="Attribute.php" hash="983198e589726391c2ffbc7688e9cf0e"/></dir><dir name="Resource"><dir name="Eav"><file name="Attribute.php" hash="50116c0d286f468c02a18a9399b242b2"/><dir name="Mysql4"><file name="Product.php" hash="ae44a7dc154263469b540b371fd2e3fa"/></dir></dir></dir></dir><dir name="Eav"><dir name="Entity"><file name="Attribute.php" hash="3283d0d1246180d566999050ffded866"/><dir name="Attribute"><dir name="Frontend"><file name="Default.php" hash="1e9448a83ab954d77b4c701bae48df7c"/></dir></dir></dir><dir name="Mysql4"><dir name="Entity"><file name="Attribute.php" hash="98d9dc4622ed297fa9597f96e5057922"/></dir></dir></dir></dir></dir></dir></target><target name="magelib"><dir name="Varien"><dir name="Data"><dir name="Form"><dir name="Element"><file name="Textfilter.php" hash="34f421cec04b6ed4b011238fdffa3ffb"/></dir></dir></dir></dir></target></contents>
38
  <compatible/>
39
  <dependencies/>
40
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Morningtime_TextfieldLayeredNav</name>
4
+ <version>1.3.2.1.2</version>
5
  <stability>stable</stability>
6
  <license uri="http://opensource.org/licenses/osl-3.0.php">Open Software License (OSL 3.0)</license>
7
  <channel>community</channel>
8
  <extends/>
9
+ <summary>Until now, you could only use Dropdown and Multiselect attributes for layered navigation. This extension adds the regular textfield.</summary>
10
  <description>== WHAT DOES IT DO? ==
11
+ This is an admin module only. You can setup an attribute with "Textfield for Filter" as type. On the product page, this looks like a textfield. Data entered can be used in Layered Navigation, just like a Dropdown or Multiselect.
12
 
13
+ I used this module to add geographic regions for hundreds of wine bottles. We wanted the regions to be filterable, but we could not use a Dropdown attribute. See screenshot for better understanding.
 
 
14
 
15
  == INSTALLATION ==
16
  - Get key from Magento Connect
22
  No config settings.
23
 
24
  == USAGE ==
25
+ Add a new product attribute and choose "Textfield for Filter" instead of Dropdown or Multiselect. Add the attribute to a set, and go to the product edit page. You will see a regular textfield, but the data is stored as a Dropdown and can be used for layered navigation.
26
 
27
+ Don't forget to rebuil search index (cache) after adding a new attribute!
28
 
29
  == CUSTOMIZATION ==
30
  No options available.</description>
31
+ <notes>Stable version</notes>
32
  <authors><author><name>Mathijs Koenraadt (MSc)</name><user>auto-converted</user><email>info@morningtime.com</email></author></authors>
33
+ <date>2009-07-01</date>
34
+ <time>05:13:41</time>
35
+ <contents><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="template"><dir name="morningtime"><dir name="textfieldlayerednav"><dir name="catalog"><dir name="product"><dir name="attribute"><file name="js.phtml" hash="e28eb1c566381048b000c16f63fcb8d9"/></dir></dir></dir></dir></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Morningtime_TextfieldLayeredNav.xml" hash="04d99f1c93b4ea0598a2651ac01785e2"/></dir></target><target name="magecommunity"><dir name="Morningtime"><dir name="TextfieldLayeredNav"><dir name="Block"><dir name="Adminhtml"><dir name="Catalog"><dir name="Product"><dir name="Attribute"><dir name="Edit"><dir name="Tab"><file name="Main.php" hash="b2bae8c5e2d77927cc923a0e82c57635"/><file name="Options.php" hash="df916a987b2647e3009f8553051f3142"/></dir></dir></dir><dir name="Edit"><dir name="Tab"><file name="Attributes.php" hash="2fed5f68e944cf2a00278c6f9c1bd181"/></dir></dir></dir></dir></dir><dir name="Catalog"><dir name="Product"><dir name="Compare"><file name="List.php" hash="986c1e5a9a39860575f12fa89a471db8"/></dir></dir></dir><dir name="CatalogSearch"><dir name="Advanced"><file name="Form.php" hash="98ec46f050d5bcb19baa39881fe8362d"/></dir></dir></dir><dir name="controllers"><dir name="Adminhtml"><dir name="Catalog"><dir name="Product"><file name="AttributeController.php" hash="ce84c2d2499ca04f367aee4a44dde0c1"/></dir></dir></dir></dir><dir name="etc"><file name="config.xml" hash="edc196e2001b0bba18fc627dcfdbd39b"/></dir><dir name="Model"><dir name="Catalog"><dir name="Entity"><file name="Attribute.php" hash="983198e589726391c2ffbc7688e9cf0e"/></dir><dir name="Resource"><dir name="Eav"><dir name="Mysql4"><file name="Product.php" hash="81ab81790beac3a3ec3c9432d97d5b84"/></dir><file name="Attribute.php" hash="50116c0d286f468c02a18a9399b242b2"/></dir></dir></dir><dir name="CatalogIndex"><dir name="Indexer"><file name="Eav.php" hash="b6a2cebae4472f6a7d8fc454108d0b0c"/></dir></dir><dir name="CatalogRule"><dir name="Rule"><dir name="Condition"><file name="Product.php" hash="59c56dcea83bedbcfdea86098f95589c"/></dir></dir></dir><dir name="CatalogSearch"><dir name="Mysql4"><dir name="Search"><file name="Collection.php" hash="192ff7e112757cb4546b72d3fc032f66"/></dir></dir><file name="Advanced.php" hash="11ead71aa5f7fc84c458f2300ef7339b"/></dir><dir name="Eav"><dir name="Entity"><dir name="Attribute"><dir name="Frontend"><file name="Default.php" hash="1e9448a83ab954d77b4c701bae48df7c"/></dir></dir><file name="Attribute.php" hash="3283d0d1246180d566999050ffded866"/></dir><dir name="Mysql4"><dir name="Entity"><file name="Attribute.php" hash="98d9dc4622ed297fa9597f96e5057922"/></dir></dir></dir></dir></dir></dir></target><target name="magelib"><dir name="Varien"><dir name="Data"><dir name="Form"><dir name="Element"><file name="Textfilter.php" hash="34f421cec04b6ed4b011238fdffa3ffb"/></dir></dir></dir></dir></target></contents>
36
  <compatible/>
37
  <dependencies/>
38
  </package>