Version Notes
Stable release.
Download this release
Release Info
Developer | Magento Core Team |
Extension | Morningtime_TextfieldLayeredNav |
Version | 1.3.2.4.1 |
Comparing to | |
See all releases |
Code changes from version 1.3.2.2.3 to 1.3.2.4.1
- app/code/community/Morningtime/TextfieldLayeredNav/Block/Adminhtml/Catalog/Product/Attribute/Edit/Tab/Main.php +10 -3
- app/code/community/Morningtime/TextfieldLayeredNav/Block/Adminhtml/Catalog/Product/Attribute/Edit/Tab/Options.php +10 -3
- app/code/community/Morningtime/TextfieldLayeredNav/Block/Adminhtml/Catalog/Product/Edit/Tab/Attributes.php +11 -4
- app/code/community/Morningtime/TextfieldLayeredNav/Block/Catalog/Product/Compare/List.php +10 -3
- app/code/community/Morningtime/TextfieldLayeredNav/Block/CatalogSearch/Advanced/Form.php +11 -4
- app/code/community/Morningtime/TextfieldLayeredNav/Model/Catalog/Entity/Attribute.php +11 -4
- app/code/community/Morningtime/TextfieldLayeredNav/Model/Catalog/Product.php +144 -0
- app/code/community/Morningtime/TextfieldLayeredNav/Model/Catalog/Resource/Eav/Attribute.php +11 -4
- app/code/community/Morningtime/TextfieldLayeredNav/Model/Catalog/Resource/Eav/Mysql4/Product.php +10 -3
- app/code/community/Morningtime/TextfieldLayeredNav/Model/CatalogIndex/Indexer/Eav.php +11 -4
- app/code/community/Morningtime/TextfieldLayeredNav/Model/CatalogRule/Rule/Condition/Product.php +11 -4
- app/code/community/Morningtime/TextfieldLayeredNav/Model/CatalogSearch/Advanced.php +10 -3
- app/code/community/Morningtime/TextfieldLayeredNav/Model/CatalogSearch/Mysql4/Search/Collection.php +10 -3
- app/code/community/Morningtime/TextfieldLayeredNav/Model/Eav/Entity/Attribute.php +10 -3
- app/code/community/Morningtime/TextfieldLayeredNav/Model/Eav/Entity/Attribute/Frontend/Default.php +11 -4
- app/code/community/Morningtime/TextfieldLayeredNav/Model/Eav/Mysql4/Entity/Attribute.php +15 -8
- app/code/community/Morningtime/TextfieldLayeredNav/controllers/Adminhtml/Catalog/Product/AttributeController.php +11 -4
- app/code/community/Morningtime/TextfieldLayeredNav/etc/config.xml +13 -7
- app/design/adminhtml/default/default/template/morningtime/textfieldlayerednav/catalog/product/attribute/js.phtml +9 -18
- app/etc/modules/Morningtime_TextfieldLayeredNav.xml +12 -7
- package.xml +7 -7
app/code/community/Morningtime/TextfieldLayeredNav/Block/Adminhtml/Catalog/Product/Attribute/Edit/Tab/Main.php
CHANGED
@@ -1,11 +1,18 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
-
* Morningtime
|
4 |
-
*
|
|
|
|
|
|
|
|
|
|
|
|
|
5 |
*
|
6 |
* @category Morningtime
|
7 |
* @package Morningtime_TextfieldLayeredNav
|
8 |
-
* @
|
|
|
9 |
*/
|
10 |
|
11 |
class Morningtime_TextfieldLayeredNav_Block_Adminhtml_Catalog_Product_Attribute_Edit_Tab_Main extends Mage_Adminhtml_Block_Catalog_Product_Attribute_Edit_Tab_Main
|
1 |
<?php
|
2 |
/**
|
3 |
+
* Morningtime TextfieldLayeredNav extension
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Open Software License (OSL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/osl-3.0.php
|
11 |
*
|
12 |
* @category Morningtime
|
13 |
* @package Morningtime_TextfieldLayeredNav
|
14 |
+
* @copyright Copyright (c) 2009 Morningtime Internet, http://www.morningtime.com
|
15 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
16 |
*/
|
17 |
|
18 |
class Morningtime_TextfieldLayeredNav_Block_Adminhtml_Catalog_Product_Attribute_Edit_Tab_Main extends Mage_Adminhtml_Block_Catalog_Product_Attribute_Edit_Tab_Main
|
app/code/community/Morningtime/TextfieldLayeredNav/Block/Adminhtml/Catalog/Product/Attribute/Edit/Tab/Options.php
CHANGED
@@ -1,11 +1,18 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
-
* Morningtime
|
4 |
-
*
|
|
|
|
|
|
|
|
|
|
|
|
|
5 |
*
|
6 |
* @category Morningtime
|
7 |
* @package Morningtime_TextfieldLayeredNav
|
8 |
-
* @
|
|
|
9 |
*/
|
10 |
|
11 |
class Morningtime_TextfieldLayeredNav_Block_Adminhtml_Catalog_Product_Attribute_Edit_Tab_Options extends Mage_Adminhtml_Block_Catalog_Product_Attribute_Edit_Tab_Options
|
1 |
<?php
|
2 |
/**
|
3 |
+
* Morningtime TextfieldLayeredNav extension
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Open Software License (OSL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/osl-3.0.php
|
11 |
*
|
12 |
* @category Morningtime
|
13 |
* @package Morningtime_TextfieldLayeredNav
|
14 |
+
* @copyright Copyright (c) 2009 Morningtime Internet, http://www.morningtime.com
|
15 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
16 |
*/
|
17 |
|
18 |
class Morningtime_TextfieldLayeredNav_Block_Adminhtml_Catalog_Product_Attribute_Edit_Tab_Options extends Mage_Adminhtml_Block_Catalog_Product_Attribute_Edit_Tab_Options
|
app/code/community/Morningtime/TextfieldLayeredNav/Block/Adminhtml/Catalog/Product/Edit/Tab/Attributes.php
CHANGED
@@ -1,11 +1,18 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
-
* Morningtime
|
4 |
-
*
|
|
|
|
|
|
|
|
|
|
|
|
|
5 |
*
|
6 |
* @category Morningtime
|
7 |
* @package Morningtime_TextfieldLayeredNav
|
8 |
-
* @
|
|
|
9 |
*/
|
10 |
|
11 |
class Morningtime_TextfieldLayeredNav_Block_Adminhtml_Catalog_Product_Edit_Tab_Attributes extends Mage_Adminhtml_Block_Catalog_Product_Edit_Tab_Attributes
|
@@ -65,4 +72,4 @@ class Morningtime_TextfieldLayeredNav_Block_Adminhtml_Catalog_Product_Edit_Tab_A
|
|
65 |
}
|
66 |
}
|
67 |
|
68 |
-
}
|
1 |
<?php
|
2 |
/**
|
3 |
+
* Morningtime TextfieldLayeredNav extension
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Open Software License (OSL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/osl-3.0.php
|
11 |
*
|
12 |
* @category Morningtime
|
13 |
* @package Morningtime_TextfieldLayeredNav
|
14 |
+
* @copyright Copyright (c) 2009 Morningtime Internet, http://www.morningtime.com
|
15 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
16 |
*/
|
17 |
|
18 |
class Morningtime_TextfieldLayeredNav_Block_Adminhtml_Catalog_Product_Edit_Tab_Attributes extends Mage_Adminhtml_Block_Catalog_Product_Edit_Tab_Attributes
|
72 |
}
|
73 |
}
|
74 |
|
75 |
+
}
|
app/code/community/Morningtime/TextfieldLayeredNav/Block/Catalog/Product/Compare/List.php
CHANGED
@@ -1,11 +1,18 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
-
* Morningtime
|
4 |
-
*
|
|
|
|
|
|
|
|
|
|
|
|
|
5 |
*
|
6 |
* @category Morningtime
|
7 |
* @package Morningtime_TextfieldLayeredNav
|
8 |
-
* @
|
|
|
9 |
*/
|
10 |
|
11 |
class Morningtime_TextfieldLayeredNav_Block_Catalog_Product_Compare_List extends Mage_Catalog_Block_Product_Compare_List
|
1 |
<?php
|
2 |
/**
|
3 |
+
* Morningtime TextfieldLayeredNav extension
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Open Software License (OSL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/osl-3.0.php
|
11 |
*
|
12 |
* @category Morningtime
|
13 |
* @package Morningtime_TextfieldLayeredNav
|
14 |
+
* @copyright Copyright (c) 2009 Morningtime Internet, http://www.morningtime.com
|
15 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
16 |
*/
|
17 |
|
18 |
class Morningtime_TextfieldLayeredNav_Block_Catalog_Product_Compare_List extends Mage_Catalog_Block_Product_Compare_List
|
app/code/community/Morningtime/TextfieldLayeredNav/Block/CatalogSearch/Advanced/Form.php
CHANGED
@@ -1,11 +1,18 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
-
* Morningtime
|
4 |
-
*
|
|
|
|
|
|
|
|
|
|
|
|
|
5 |
*
|
6 |
* @category Morningtime
|
7 |
* @package Morningtime_TextfieldLayeredNav
|
8 |
-
* @
|
|
|
9 |
*/
|
10 |
|
11 |
class Morningtime_TextfieldLayeredNav_Block_CatalogSearch_Advanced_Form extends Mage_CatalogSearch_Block_Advanced_Form
|
@@ -48,4 +55,4 @@ class Morningtime_TextfieldLayeredNav_Block_CatalogSearch_Advanced_Form extends
|
|
48 |
return 'string';
|
49 |
}
|
50 |
|
51 |
-
}
|
1 |
<?php
|
2 |
/**
|
3 |
+
* Morningtime TextfieldLayeredNav extension
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Open Software License (OSL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/osl-3.0.php
|
11 |
*
|
12 |
* @category Morningtime
|
13 |
* @package Morningtime_TextfieldLayeredNav
|
14 |
+
* @copyright Copyright (c) 2009 Morningtime Internet, http://www.morningtime.com
|
15 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
16 |
*/
|
17 |
|
18 |
class Morningtime_TextfieldLayeredNav_Block_CatalogSearch_Advanced_Form extends Mage_CatalogSearch_Block_Advanced_Form
|
55 |
return 'string';
|
56 |
}
|
57 |
|
58 |
+
}
|
app/code/community/Morningtime/TextfieldLayeredNav/Model/Catalog/Entity/Attribute.php
CHANGED
@@ -1,11 +1,18 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
-
* Morningtime
|
4 |
-
*
|
|
|
|
|
|
|
|
|
|
|
|
|
5 |
*
|
6 |
* @category Morningtime
|
7 |
* @package Morningtime_TextfieldLayeredNav
|
8 |
-
* @
|
|
|
9 |
*/
|
10 |
|
11 |
class Morningtime_TextfieldLayeredNav_Model_Catalog_Entity_Attribute extends Mage_Catalog_Model_Entity_Attribute
|
@@ -101,4 +108,4 @@ class Morningtime_TextfieldLayeredNav_Model_Catalog_Entity_Attribute extends Mag
|
|
101 |
|
102 |
return $field;
|
103 |
}
|
104 |
-
}
|
1 |
<?php
|
2 |
/**
|
3 |
+
* Morningtime TextfieldLayeredNav extension
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Open Software License (OSL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/osl-3.0.php
|
11 |
*
|
12 |
* @category Morningtime
|
13 |
* @package Morningtime_TextfieldLayeredNav
|
14 |
+
* @copyright Copyright (c) 2009 Morningtime Internet, http://www.morningtime.com
|
15 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
16 |
*/
|
17 |
|
18 |
class Morningtime_TextfieldLayeredNav_Model_Catalog_Entity_Attribute extends Mage_Catalog_Model_Entity_Attribute
|
108 |
|
109 |
return $field;
|
110 |
}
|
111 |
+
}
|
app/code/community/Morningtime/TextfieldLayeredNav/Model/Catalog/Product.php
ADDED
@@ -0,0 +1,144 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Morningtime TextfieldLayeredNav extension
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Open Software License (OSL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/osl-3.0.php
|
11 |
+
*
|
12 |
+
* @category Morningtime
|
13 |
+
* @package Morningtime_TextfieldLayeredNav
|
14 |
+
* @copyright Copyright (c) 2009 Morningtime Internet, http://www.morningtime.com
|
15 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
16 |
+
*/
|
17 |
+
|
18 |
+
class Morningtime_TextfieldLayeredNav_Model_Catalog_Product extends Mage_Catalog_Model_Product
|
19 |
+
{
|
20 |
+
/**
|
21 |
+
* Create duplicate
|
22 |
+
*
|
23 |
+
* @return Mage_Catalog_Model_Product
|
24 |
+
*/
|
25 |
+
public function duplicate()
|
26 |
+
{
|
27 |
+
$this->getWebsiteIds();
|
28 |
+
$this->getCategoryIds();
|
29 |
+
|
30 |
+
$newProduct = Mage::getModel('catalog/product')
|
31 |
+
->setData($this->getData())
|
32 |
+
->setIsDuplicate(true)
|
33 |
+
->setOriginalId($this->getId())
|
34 |
+
->setSku(null)
|
35 |
+
->setStatus(Mage_Catalog_Model_Product_Status::STATUS_DISABLED)
|
36 |
+
->setCreatedAt(null)
|
37 |
+
->setUpdatedAt(null)
|
38 |
+
->setId(null)
|
39 |
+
->setStoreId(Mage::app()->getStore()->getId());
|
40 |
+
|
41 |
+
// MT: override for textfilter
|
42 |
+
$data = $this->getData();
|
43 |
+
$db = Mage::getSingleton('core/resource')->getConnection('core_write');
|
44 |
+
$eav_attribute = Mage::getSingleton('core/resource')->getTableName('eav_attribute');
|
45 |
+
$eav_attribute_option = Mage::getSingleton('core/resource')->getTableName('eav_attribute_option');
|
46 |
+
$eav_attribute_option_value = Mage::getSingleton('core/resource')->getTableName('eav_attribute_option_value');
|
47 |
+
foreach ($this->getData() as $attr) {
|
48 |
+
$result = $db->query('select a.attribute_code, v.value from '.$eav_attribute.' a, '.$eav_attribute_option_value.' v, '.$eav_attribute_option.' o where a.frontend_input = "textfilter" and a.attribute_id = o.attribute_id and o.option_id = v.option_id and v.store_id = '.Mage::app()->getStore()->getId());
|
49 |
+
while ($row = $result->fetch(PDO::FETCH_ASSOC)) {
|
50 |
+
$setVar = 'set'.ucfirst($row['attribute_code']);
|
51 |
+
$newProduct->$setVar($row['value']);
|
52 |
+
}
|
53 |
+
}
|
54 |
+
// MT: end
|
55 |
+
|
56 |
+
Mage::dispatchEvent('catalog_model_product_duplicate', array('current_product'=>$this, 'new_product'=>$newProduct));
|
57 |
+
|
58 |
+
/* @var $newProduct Mage_Catalog_Model_Product */
|
59 |
+
|
60 |
+
// $newOptionsArray = array();
|
61 |
+
// $newProduct->setCanSaveCustomOptions(true);
|
62 |
+
// foreach ($this->getOptions() as $_option) {
|
63 |
+
// /* @var $_option Mage_Catalog_Model_Product_Option */
|
64 |
+
// $newOptionsArray[] = $_option->prepareOptionForDuplicate();
|
65 |
+
// }
|
66 |
+
// $newProduct->setProductOptions($newOptionsArray);
|
67 |
+
|
68 |
+
/* Prepare Related*/
|
69 |
+
$data = array();
|
70 |
+
$this->getLinkInstance()->useRelatedLinks();
|
71 |
+
$attributes = array();
|
72 |
+
foreach ($this->getLinkInstance()->getAttributes() as $_attribute) {
|
73 |
+
if (isset($_attribute['code'])) {
|
74 |
+
$attributes[]=$_attribute['code'];
|
75 |
+
}
|
76 |
+
}
|
77 |
+
foreach ($this->getRelatedLinkCollection() as $_link) {
|
78 |
+
$data[$_link->getLinkedProductId()] = $_link->toArray($attributes);
|
79 |
+
}
|
80 |
+
$newProduct->setRelatedLinkData($data);
|
81 |
+
|
82 |
+
/* Prepare UpSell*/
|
83 |
+
$data = array();
|
84 |
+
$this->getLinkInstance()->useUpSellLinks();
|
85 |
+
$attributes = array();
|
86 |
+
foreach ($this->getLinkInstance()->getAttributes() as $_attribute) {
|
87 |
+
if (isset($_attribute['code'])) {
|
88 |
+
$attributes[]=$_attribute['code'];
|
89 |
+
}
|
90 |
+
}
|
91 |
+
foreach ($this->getUpSellLinkCollection() as $_link) {
|
92 |
+
$data[$_link->getLinkedProductId()] = $_link->toArray($attributes);
|
93 |
+
}
|
94 |
+
$newProduct->setUpSellLinkData($data);
|
95 |
+
|
96 |
+
/* Prepare Cross Sell */
|
97 |
+
$data = array();
|
98 |
+
$this->getLinkInstance()->useCrossSellLinks();
|
99 |
+
$attributes = array();
|
100 |
+
foreach ($this->getLinkInstance()->getAttributes() as $_attribute) {
|
101 |
+
if (isset($_attribute['code'])) {
|
102 |
+
$attributes[]=$_attribute['code'];
|
103 |
+
}
|
104 |
+
}
|
105 |
+
foreach ($this->getCrossSellLinkCollection() as $_link) {
|
106 |
+
$data[$_link->getLinkedProductId()] = $_link->toArray($attributes);
|
107 |
+
}
|
108 |
+
$newProduct->setCrossSellLinkData($data);
|
109 |
+
|
110 |
+
/* Prepare Grouped */
|
111 |
+
$data = array();
|
112 |
+
$this->getLinkInstance()->useGroupedLinks();
|
113 |
+
$attributes = array();
|
114 |
+
foreach ($this->getLinkInstance()->getAttributes() as $_attribute) {
|
115 |
+
if (isset($_attribute['code'])) {
|
116 |
+
$attributes[]=$_attribute['code'];
|
117 |
+
}
|
118 |
+
}
|
119 |
+
foreach ($this->getGroupedLinkCollection() as $_link) {
|
120 |
+
$data[$_link->getLinkedProductId()] = $_link->toArray($attributes);
|
121 |
+
}
|
122 |
+
$newProduct->setGroupedLinkData($data);
|
123 |
+
|
124 |
+
$newProduct->save();
|
125 |
+
|
126 |
+
$this->getOptionInstance()->duplicate($this->getId(), $newProduct->getId());
|
127 |
+
$this->getResource()->duplicate($this->getId(), $newProduct->getId());
|
128 |
+
|
129 |
+
// TODO - duplicate product on all stores of the websites it is associated with
|
130 |
+
/*if ($storeIds = $this->getWebsiteIds()) {
|
131 |
+
foreach ($storeIds as $storeId) {
|
132 |
+
$this->setStoreId($storeId)
|
133 |
+
->load($this->getId());
|
134 |
+
|
135 |
+
$newProduct->setData($this->getData())
|
136 |
+
->setSku(null)
|
137 |
+
->setStatus(Mage_Catalog_Model_Product_Status::STATUS_DISABLED)
|
138 |
+
->setId($newId)
|
139 |
+
->save();
|
140 |
+
}
|
141 |
+
}*/
|
142 |
+
return $newProduct;
|
143 |
+
}
|
144 |
+
}
|
app/code/community/Morningtime/TextfieldLayeredNav/Model/Catalog/Resource/Eav/Attribute.php
CHANGED
@@ -1,11 +1,18 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
-
* Morningtime
|
4 |
-
*
|
|
|
|
|
|
|
|
|
|
|
|
|
5 |
*
|
6 |
* @category Morningtime
|
7 |
* @package Morningtime_TextfieldLayeredNav
|
8 |
-
* @
|
|
|
9 |
*/
|
10 |
|
11 |
class Morningtime_TextfieldLayeredNav_Model_Catalog_Resource_Eav_Attribute extends Mage_Catalog_Model_Resource_Eav_Attribute
|
@@ -46,4 +53,4 @@ class Morningtime_TextfieldLayeredNav_Model_Catalog_Resource_Eav_Attribute exten
|
|
46 |
return $this->getIsVisible() && in_array($this->getFrontendInput(), $allowedInputTypes);
|
47 |
}
|
48 |
|
49 |
-
}
|
1 |
<?php
|
2 |
/**
|
3 |
+
* Morningtime TextfieldLayeredNav extension
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Open Software License (OSL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/osl-3.0.php
|
11 |
*
|
12 |
* @category Morningtime
|
13 |
* @package Morningtime_TextfieldLayeredNav
|
14 |
+
* @copyright Copyright (c) 2009 Morningtime Internet, http://www.morningtime.com
|
15 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
16 |
*/
|
17 |
|
18 |
class Morningtime_TextfieldLayeredNav_Model_Catalog_Resource_Eav_Attribute extends Mage_Catalog_Model_Resource_Eav_Attribute
|
53 |
return $this->getIsVisible() && in_array($this->getFrontendInput(), $allowedInputTypes);
|
54 |
}
|
55 |
|
56 |
+
}
|
app/code/community/Morningtime/TextfieldLayeredNav/Model/Catalog/Resource/Eav/Mysql4/Product.php
CHANGED
@@ -1,11 +1,18 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
-
* Morningtime
|
4 |
-
*
|
|
|
|
|
|
|
|
|
|
|
|
|
5 |
*
|
6 |
* @category Morningtime
|
7 |
* @package Morningtime_TextfieldLayeredNav
|
8 |
-
* @
|
|
|
9 |
*/
|
10 |
|
11 |
class Morningtime_TextfieldLayeredNav_Model_Catalog_Resource_Eav_Mysql4_Product extends Mage_Catalog_Model_Resource_Eav_Mysql4_Product
|
1 |
<?php
|
2 |
/**
|
3 |
+
* Morningtime TextfieldLayeredNav extension
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Open Software License (OSL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/osl-3.0.php
|
11 |
*
|
12 |
* @category Morningtime
|
13 |
* @package Morningtime_TextfieldLayeredNav
|
14 |
+
* @copyright Copyright (c) 2009 Morningtime Internet, http://www.morningtime.com
|
15 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
16 |
*/
|
17 |
|
18 |
class Morningtime_TextfieldLayeredNav_Model_Catalog_Resource_Eav_Mysql4_Product extends Mage_Catalog_Model_Resource_Eav_Mysql4_Product
|
app/code/community/Morningtime/TextfieldLayeredNav/Model/CatalogIndex/Indexer/Eav.php
CHANGED
@@ -1,11 +1,18 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
-
* Morningtime
|
4 |
-
*
|
|
|
|
|
|
|
|
|
|
|
|
|
5 |
*
|
6 |
* @category Morningtime
|
7 |
* @package Morningtime_TextfieldLayeredNav
|
8 |
-
* @
|
|
|
9 |
*/
|
10 |
|
11 |
class Morningtime_TextfieldLayeredNav_Model_CatalogIndex_Indexer_Eav extends Mage_CatalogIndex_Model_Indexer_Eav
|
@@ -45,4 +52,4 @@ class Morningtime_TextfieldLayeredNav_Model_CatalogIndex_Indexer_Eav extends Mag
|
|
45 |
$conditions['or']['is_filterable'] = array(1, 2);
|
46 |
$conditions['or']['is_visible_in_advanced_search'] = 1;
|
47 |
}
|
48 |
-
}
|
1 |
<?php
|
2 |
/**
|
3 |
+
* Morningtime TextfieldLayeredNav extension
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Open Software License (OSL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/osl-3.0.php
|
11 |
*
|
12 |
* @category Morningtime
|
13 |
* @package Morningtime_TextfieldLayeredNav
|
14 |
+
* @copyright Copyright (c) 2009 Morningtime Internet, http://www.morningtime.com
|
15 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
16 |
*/
|
17 |
|
18 |
class Morningtime_TextfieldLayeredNav_Model_CatalogIndex_Indexer_Eav extends Mage_CatalogIndex_Model_Indexer_Eav
|
52 |
$conditions['or']['is_filterable'] = array(1, 2);
|
53 |
$conditions['or']['is_visible_in_advanced_search'] = 1;
|
54 |
}
|
55 |
+
}
|
app/code/community/Morningtime/TextfieldLayeredNav/Model/CatalogRule/Rule/Condition/Product.php
CHANGED
@@ -1,11 +1,18 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
-
* Morningtime
|
4 |
-
*
|
|
|
|
|
|
|
|
|
|
|
|
|
5 |
*
|
6 |
* @category Morningtime
|
7 |
* @package Morningtime_TextfieldLayeredNav
|
8 |
-
* @
|
|
|
9 |
*/
|
10 |
|
11 |
class Morningtime_TextfieldLayeredNav_Model_CatalogRule_Rule_Condition_Product extends Mage_CatalogRule_Model_Rule_Condition_Product
|
@@ -44,4 +51,4 @@ class Morningtime_TextfieldLayeredNav_Model_CatalogRule_Rule_Condition_Product e
|
|
44 |
}
|
45 |
}
|
46 |
|
47 |
-
}
|
1 |
<?php
|
2 |
/**
|
3 |
+
* Morningtime TextfieldLayeredNav extension
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Open Software License (OSL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/osl-3.0.php
|
11 |
*
|
12 |
* @category Morningtime
|
13 |
* @package Morningtime_TextfieldLayeredNav
|
14 |
+
* @copyright Copyright (c) 2009 Morningtime Internet, http://www.morningtime.com
|
15 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
16 |
*/
|
17 |
|
18 |
class Morningtime_TextfieldLayeredNav_Model_CatalogRule_Rule_Condition_Product extends Mage_CatalogRule_Model_Rule_Condition_Product
|
51 |
}
|
52 |
}
|
53 |
|
54 |
+
}
|
app/code/community/Morningtime/TextfieldLayeredNav/Model/CatalogSearch/Advanced.php
CHANGED
@@ -1,11 +1,18 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
-
* Morningtime
|
4 |
-
*
|
|
|
|
|
|
|
|
|
|
|
|
|
5 |
*
|
6 |
* @category Morningtime
|
7 |
* @package Morningtime_TextfieldLayeredNav
|
8 |
-
* @
|
|
|
9 |
*/
|
10 |
|
11 |
class Morningtime_TextfieldLayeredNav_Model_CatalogSearch_Advanced extends Mage_CatalogSearch_Model_Advanced
|
1 |
<?php
|
2 |
/**
|
3 |
+
* Morningtime TextfieldLayeredNav extension
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Open Software License (OSL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/osl-3.0.php
|
11 |
*
|
12 |
* @category Morningtime
|
13 |
* @package Morningtime_TextfieldLayeredNav
|
14 |
+
* @copyright Copyright (c) 2009 Morningtime Internet, http://www.morningtime.com
|
15 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
16 |
*/
|
17 |
|
18 |
class Morningtime_TextfieldLayeredNav_Model_CatalogSearch_Advanced extends Mage_CatalogSearch_Model_Advanced
|
app/code/community/Morningtime/TextfieldLayeredNav/Model/CatalogSearch/Mysql4/Search/Collection.php
CHANGED
@@ -1,11 +1,18 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
-
* Morningtime
|
4 |
-
*
|
|
|
|
|
|
|
|
|
|
|
|
|
5 |
*
|
6 |
* @category Morningtime
|
7 |
* @package Morningtime_TextfieldLayeredNav
|
8 |
-
* @
|
|
|
9 |
*/
|
10 |
|
11 |
class Morningtime_TextfieldLayeredNav_Model_CatalogSearch_Mysql4_Search_Collection
|
1 |
<?php
|
2 |
/**
|
3 |
+
* Morningtime TextfieldLayeredNav extension
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Open Software License (OSL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/osl-3.0.php
|
11 |
*
|
12 |
* @category Morningtime
|
13 |
* @package Morningtime_TextfieldLayeredNav
|
14 |
+
* @copyright Copyright (c) 2009 Morningtime Internet, http://www.morningtime.com
|
15 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
16 |
*/
|
17 |
|
18 |
class Morningtime_TextfieldLayeredNav_Model_CatalogSearch_Mysql4_Search_Collection
|
app/code/community/Morningtime/TextfieldLayeredNav/Model/Eav/Entity/Attribute.php
CHANGED
@@ -1,11 +1,18 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
-
* Morningtime
|
4 |
-
*
|
|
|
|
|
|
|
|
|
|
|
|
|
5 |
*
|
6 |
* @category Morningtime
|
7 |
* @package Morningtime_TextfieldLayeredNav
|
8 |
-
* @
|
|
|
9 |
*/
|
10 |
|
11 |
class Morningtime_TextfieldLayeredNav_Model_Eav_Entity_Attribute extends Mage_Eav_Model_Entity_Attribute
|
1 |
<?php
|
2 |
/**
|
3 |
+
* Morningtime TextfieldLayeredNav extension
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Open Software License (OSL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/osl-3.0.php
|
11 |
*
|
12 |
* @category Morningtime
|
13 |
* @package Morningtime_TextfieldLayeredNav
|
14 |
+
* @copyright Copyright (c) 2009 Morningtime Internet, http://www.morningtime.com
|
15 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
16 |
*/
|
17 |
|
18 |
class Morningtime_TextfieldLayeredNav_Model_Eav_Entity_Attribute extends Mage_Eav_Model_Entity_Attribute
|
app/code/community/Morningtime/TextfieldLayeredNav/Model/Eav/Entity/Attribute/Frontend/Default.php
CHANGED
@@ -1,11 +1,18 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
-
* Morningtime
|
4 |
-
*
|
|
|
|
|
|
|
|
|
|
|
|
|
5 |
*
|
6 |
* @category Morningtime
|
7 |
* @package Morningtime_TextfieldLayeredNav
|
8 |
-
* @
|
|
|
9 |
*/
|
10 |
|
11 |
class Morningtime_TextfieldLayeredNav_Model_Eav_Entity_Attribute_Frontend_Default extends Mage_Eav_Model_Entity_Attribute_Frontend_Default
|
@@ -41,4 +48,4 @@ class Morningtime_TextfieldLayeredNav_Model_Eav_Entity_Attribute_Frontend_Defaul
|
|
41 |
return $value;
|
42 |
}
|
43 |
|
44 |
-
}
|
1 |
<?php
|
2 |
/**
|
3 |
+
* Morningtime TextfieldLayeredNav extension
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Open Software License (OSL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/osl-3.0.php
|
11 |
*
|
12 |
* @category Morningtime
|
13 |
* @package Morningtime_TextfieldLayeredNav
|
14 |
+
* @copyright Copyright (c) 2009 Morningtime Internet, http://www.morningtime.com
|
15 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
16 |
*/
|
17 |
|
18 |
class Morningtime_TextfieldLayeredNav_Model_Eav_Entity_Attribute_Frontend_Default extends Mage_Eav_Model_Entity_Attribute_Frontend_Default
|
48 |
return $value;
|
49 |
}
|
50 |
|
51 |
+
}
|
app/code/community/Morningtime/TextfieldLayeredNav/Model/Eav/Mysql4/Entity/Attribute.php
CHANGED
@@ -1,11 +1,18 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
-
* Morningtime
|
4 |
-
*
|
|
|
|
|
|
|
|
|
|
|
|
|
5 |
*
|
6 |
* @category Morningtime
|
7 |
* @package Morningtime_TextfieldLayeredNav
|
8 |
-
* @
|
|
|
9 |
*/
|
10 |
|
11 |
class Morningtime_TextfieldLayeredNav_Model_Eav_Mysql4_Entity_Attribute extends Mage_Eav_Model_Mysql4_Entity_Attribute
|
@@ -109,7 +116,7 @@ class Morningtime_TextfieldLayeredNav_Model_Eav_Mysql4_Entity_Attribute extends
|
|
109 |
$data = array(
|
110 |
'sort_order' => isset($option['order'][$optionId]) ? $option['order'][$optionId] : 0,
|
111 |
);
|
112 |
-
$write->update($optionTable, $data, $write->quoteInto('option_id=?', $intOptionId));
|
113 |
}
|
114 |
|
115 |
if (in_array($optionId, $object->getDefault())) {
|
@@ -138,17 +145,17 @@ class Morningtime_TextfieldLayeredNav_Model_Eav_Mysql4_Entity_Attribute extends
|
|
138 |
'store_id' => $store->getId(),
|
139 |
'value' => $values[$store->getId()],
|
140 |
);
|
141 |
-
$write->insert($optionValueTable, $data);
|
142 |
}
|
143 |
}
|
144 |
}
|
145 |
|
146 |
-
|
147 |
'default_value' => implode(',', $attributeDefaultValue)
|
148 |
-
), $write->quoteInto($this->getIdFieldName() . '=?', $object->getId()));
|
149 |
}
|
150 |
}
|
151 |
return $this;
|
152 |
}
|
153 |
|
154 |
-
}
|
1 |
<?php
|
2 |
/**
|
3 |
+
* Morningtime TextfieldLayeredNav extension
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Open Software License (OSL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/osl-3.0.php
|
11 |
*
|
12 |
* @category Morningtime
|
13 |
* @package Morningtime_TextfieldLayeredNav
|
14 |
+
* @copyright Copyright (c) 2009 Morningtime Internet, http://www.morningtime.com
|
15 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
16 |
*/
|
17 |
|
18 |
class Morningtime_TextfieldLayeredNav_Model_Eav_Mysql4_Entity_Attribute extends Mage_Eav_Model_Mysql4_Entity_Attribute
|
116 |
$data = array(
|
117 |
'sort_order' => isset($option['order'][$optionId]) ? $option['order'][$optionId] : 0,
|
118 |
);
|
119 |
+
/* $write->update($optionTable, $data, $write->quoteInto('option_id=?', $intOptionId)); */
|
120 |
}
|
121 |
|
122 |
if (in_array($optionId, $object->getDefault())) {
|
145 |
'store_id' => $store->getId(),
|
146 |
'value' => $values[$store->getId()],
|
147 |
);
|
148 |
+
// $write->insert($optionValueTable, $data);
|
149 |
}
|
150 |
}
|
151 |
}
|
152 |
|
153 |
+
/*$write->update($this->getMainTable(), array(
|
154 |
'default_value' => implode(',', $attributeDefaultValue)
|
155 |
+
), $write->quoteInto($this->getIdFieldName() . '=?', $object->getId())); */
|
156 |
}
|
157 |
}
|
158 |
return $this;
|
159 |
}
|
160 |
|
161 |
+
}
|
app/code/community/Morningtime/TextfieldLayeredNav/controllers/Adminhtml/Catalog/Product/AttributeController.php
CHANGED
@@ -1,11 +1,18 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
-
* Morningtime
|
4 |
-
*
|
|
|
|
|
|
|
|
|
|
|
|
|
5 |
*
|
6 |
* @category Morningtime
|
7 |
* @package Morningtime_TextfieldLayeredNav
|
8 |
-
* @
|
|
|
9 |
*/
|
10 |
|
11 |
include_once("Mage/Adminhtml/controllers/Catalog/Product/AttributeController.php");
|
@@ -58,4 +65,4 @@ class Morningtime_TextfieldLayeredNav_Adminhtml_Catalog_Product_AttributeControl
|
|
58 |
->renderLayout();
|
59 |
}
|
60 |
|
61 |
-
}
|
1 |
<?php
|
2 |
/**
|
3 |
+
* Morningtime TextfieldLayeredNav extension
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Open Software License (OSL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/osl-3.0.php
|
11 |
*
|
12 |
* @category Morningtime
|
13 |
* @package Morningtime_TextfieldLayeredNav
|
14 |
+
* @copyright Copyright (c) 2009 Morningtime Internet, http://www.morningtime.com
|
15 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
16 |
*/
|
17 |
|
18 |
include_once("Mage/Adminhtml/controllers/Catalog/Product/AttributeController.php");
|
65 |
->renderLayout();
|
66 |
}
|
67 |
|
68 |
+
}
|
app/code/community/Morningtime/TextfieldLayeredNav/etc/config.xml
CHANGED
@@ -1,20 +1,25 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<!--
|
3 |
/**
|
4 |
-
* Morningtime
|
5 |
-
*
|
|
|
|
|
|
|
|
|
|
|
|
|
6 |
*
|
7 |
* @category Morningtime
|
8 |
* @package Morningtime_TextfieldLayeredNav
|
9 |
-
* @
|
10 |
-
* @
|
11 |
-
* @license http://www.opensource.org/licenses/gpl-3.0.html GNU General Public License version 3
|
12 |
*/
|
13 |
-->
|
14 |
<config>
|
15 |
<modules>
|
16 |
<Morningtime_TextfieldLayeredNav>
|
17 |
-
<version>1.3.2.
|
18 |
</Morningtime_TextfieldLayeredNav>
|
19 |
</modules>
|
20 |
<global>
|
@@ -42,6 +47,7 @@
|
|
42 |
<rewrite>
|
43 |
<resource_eav_attribute>Morningtime_TextfieldLayeredNav_Model_Catalog_Resource_Eav_Attribute</resource_eav_attribute>
|
44 |
<entity_attribute>Morningtime_TextfieldLayeredNav_Model_Catalog_Entity_Attribute</entity_attribute>
|
|
|
45 |
</rewrite>
|
46 |
</catalog>
|
47 |
<catalog_resource_eav_mysql4>
|
@@ -89,4 +95,4 @@
|
|
89 |
</adminhtml>
|
90 |
</routers>
|
91 |
</admin>
|
92 |
-
</config>
|
1 |
<?xml version="1.0"?>
|
2 |
<!--
|
3 |
/**
|
4 |
+
* Morningtime TextfieldLayeredNav extension
|
5 |
+
*
|
6 |
+
* NOTICE OF LICENSE
|
7 |
+
*
|
8 |
+
* This source file is subject to the Open Software License (OSL 3.0)
|
9 |
+
* that is bundled with this package in the file LICENSE.txt.
|
10 |
+
* It is also available through the world-wide-web at this URL:
|
11 |
+
* http://opensource.org/licenses/osl-3.0.php
|
12 |
*
|
13 |
* @category Morningtime
|
14 |
* @package Morningtime_TextfieldLayeredNav
|
15 |
+
* @copyright Copyright (c) 2009 Morningtime Internet, http://www.morningtime.com
|
16 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
|
|
17 |
*/
|
18 |
-->
|
19 |
<config>
|
20 |
<modules>
|
21 |
<Morningtime_TextfieldLayeredNav>
|
22 |
+
<version>1.3.2.4.1</version>
|
23 |
</Morningtime_TextfieldLayeredNav>
|
24 |
</modules>
|
25 |
<global>
|
47 |
<rewrite>
|
48 |
<resource_eav_attribute>Morningtime_TextfieldLayeredNav_Model_Catalog_Resource_Eav_Attribute</resource_eav_attribute>
|
49 |
<entity_attribute>Morningtime_TextfieldLayeredNav_Model_Catalog_Entity_Attribute</entity_attribute>
|
50 |
+
<product>Morningtime_TextfieldLayeredNav_Model_Catalog_Product</product>
|
51 |
</rewrite>
|
52 |
</catalog>
|
53 |
<catalog_resource_eav_mysql4>
|
95 |
</adminhtml>
|
96 |
</routers>
|
97 |
</admin>
|
98 |
+
</config>
|
app/design/adminhtml/default/default/template/morningtime/textfieldlayerednav/catalog/product/attribute/js.phtml
CHANGED
@@ -1,27 +1,18 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
-
*
|
4 |
*
|
5 |
* NOTICE OF LICENSE
|
6 |
*
|
7 |
-
* This source file is subject to the
|
8 |
-
* that is bundled with this package in the file
|
9 |
* It is also available through the world-wide-web at this URL:
|
10 |
-
* http://opensource.org/licenses/
|
11 |
-
* If you did not receive a copy of the license and are unable to
|
12 |
-
* obtain it through the world-wide-web, please send an email
|
13 |
-
* to license@magentocommerce.com so we can send you a copy immediately.
|
14 |
*
|
15 |
-
*
|
16 |
-
*
|
17 |
-
*
|
18 |
-
*
|
19 |
-
* needs please refer to http://www.magentocommerce.com for more information.
|
20 |
-
*
|
21 |
-
* @category design_default
|
22 |
-
* @package Mage
|
23 |
-
* @copyright Copyright (c) 2008 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
|
24 |
-
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
25 |
*/
|
26 |
?>
|
27 |
<script type="text/javascript">
|
@@ -319,4 +310,4 @@ if ($('is_required')) {
|
|
319 |
}
|
320 |
bindAttributeInputType();
|
321 |
|
322 |
-
</script>
|
1 |
<?php
|
2 |
/**
|
3 |
+
* Morningtime TextfieldLayeredNav extension
|
4 |
*
|
5 |
* NOTICE OF LICENSE
|
6 |
*
|
7 |
+
* This source file is subject to the Open Software License (OSL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE.txt.
|
9 |
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/osl-3.0.php
|
|
|
|
|
|
|
11 |
*
|
12 |
+
* @category Morningtime
|
13 |
+
* @package Morningtime_TextfieldLayeredNav
|
14 |
+
* @copyright Copyright (c) 2009 Morningtime Internet, http://www.morningtime.com
|
15 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
|
|
|
|
|
|
|
|
|
|
|
|
16 |
*/
|
17 |
?>
|
18 |
<script type="text/javascript">
|
310 |
}
|
311 |
bindAttributeInputType();
|
312 |
|
313 |
+
</script>
|
app/etc/modules/Morningtime_TextfieldLayeredNav.xml
CHANGED
@@ -1,14 +1,19 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<!--
|
3 |
/**
|
4 |
-
* Morningtime
|
5 |
-
*
|
|
|
|
|
|
|
|
|
|
|
|
|
6 |
*
|
7 |
* @category Morningtime
|
8 |
* @package Morningtime_TextfieldLayeredNav
|
9 |
-
* @
|
10 |
-
* @
|
11 |
-
* @license http://www.opensource.org/licenses/gpl-3.0.html GNU General Public License version 3
|
12 |
*/
|
13 |
-->
|
14 |
<config>
|
@@ -19,7 +24,7 @@
|
|
19 |
<depends>
|
20 |
<Mage_Catalog />
|
21 |
</depends>
|
22 |
-
<version>1.3.2.1</version>
|
23 |
</Morningtime_TextfieldLayeredNav>
|
24 |
</modules>
|
25 |
-
</config>
|
1 |
<?xml version="1.0"?>
|
2 |
<!--
|
3 |
/**
|
4 |
+
* Morningtime TextfieldLayeredNav extension
|
5 |
+
*
|
6 |
+
* NOTICE OF LICENSE
|
7 |
+
*
|
8 |
+
* This source file is subject to the Open Software License (OSL 3.0)
|
9 |
+
* that is bundled with this package in the file LICENSE.txt.
|
10 |
+
* It is also available through the world-wide-web at this URL:
|
11 |
+
* http://opensource.org/licenses/osl-3.0.php
|
12 |
*
|
13 |
* @category Morningtime
|
14 |
* @package Morningtime_TextfieldLayeredNav
|
15 |
+
* @copyright Copyright (c) 2009 Morningtime Internet, http://www.morningtime.com
|
16 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
|
|
17 |
*/
|
18 |
-->
|
19 |
<config>
|
24 |
<depends>
|
25 |
<Mage_Catalog />
|
26 |
</depends>
|
27 |
+
<version>1.3.2.4.1</version>
|
28 |
</Morningtime_TextfieldLayeredNav>
|
29 |
</modules>
|
30 |
+
</config>
|
package.xml
CHANGED
@@ -1,12 +1,12 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Morningtime_TextfieldLayeredNav</name>
|
4 |
-
<version>1.3.2.
|
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
|
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 |
|
@@ -28,11 +28,11 @@ Don't forget to rebuil search index (cache) after adding a new attribute!
|
|
28 |
|
29 |
== CUSTOMIZATION ==
|
30 |
No options available.</description>
|
31 |
-
<notes>Stable
|
32 |
-
<authors><author><name>Mathijs Koenraadt
|
33 |
-
<date>2009-10-
|
34 |
-
<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="
|
36 |
<compatible/>
|
37 |
<dependencies/>
|
38 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Morningtime_TextfieldLayeredNav</name>
|
4 |
+
<version>1.3.2.4.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 textfield for layered navigation.</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 |
|
28 |
|
29 |
== CUSTOMIZATION ==
|
30 |
No options available.</description>
|
31 |
+
<notes>Stable release.</notes>
|
32 |
+
<authors><author><name>Mathijs Koenraadt</name><user>auto-converted</user><email>info@morningtime.com</email></author></authors>
|
33 |
+
<date>2009-10-22</date>
|
34 |
+
<time>12:18:01</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="f4aa08606a852b36242d438b76edd0f9"/></dir></dir></dir></dir></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Morningtime_TextfieldLayeredNav.xml" hash="c98afcfe1ac288def1c3886683b9ff5f"/></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="6d81230b628beee5841cc4efab127907"/><file name="Options.php" hash="697f471d3cac1a8d964c6480353a228d"/></dir></dir></dir><dir name="Edit"><dir name="Tab"><file name="Attributes.php" hash="f0d6477f726252efb8276df1a5de8c7b"/></dir></dir></dir></dir></dir><dir name="CatalogSearch"><dir name="Advanced"><file name="Form.php" hash="2fa88b7ef0aed62706c30c72e1c88634"/></dir></dir><dir name="Catalog"><dir name="Product"><dir name="Compare"><file name="List.php" hash="f4c56171dc5904dc4991aad8a5052d28"/></dir></dir></dir></dir><dir name="controllers"><dir name="Adminhtml"><dir name="Catalog"><dir name="Product"><file name="AttributeController.php" hash="9473d71eee6078b948c2b3aae0d18872"/></dir></dir></dir></dir><dir name="etc"><file name="config.xml" hash="451ca647c2c5319372ea5e84231c099c"/></dir><dir name="Model"><dir name="Catalog"><file name="Product.php" hash="e0609562271fbe93de954d0f019478ef"/><dir name="Entity"><file name="Attribute.php" hash="5e71f3b65c4367fcfa17b44f1ab12952"/></dir><dir name="Resource"><dir name="Eav"><file name="Attribute.php" hash="b8c817065c14d15588115f38eff26b99"/><dir name="Mysql4"><file name="Product.php" hash="9b14de136d2981c8362f9bae23486267"/></dir></dir></dir></dir><dir name="CatalogIndex"><dir name="Indexer"><file name="Eav.php" hash="8fd2314cee485d8f61ff709710c219b7"/></dir></dir><dir name="CatalogRule"><dir name="Rule"><dir name="Condition"><file name="Product.php" hash="dd1dbddfdf5339d33bc72c50273ee897"/></dir></dir></dir><dir name="CatalogSearch"><file name="Advanced.php" hash="440941cde49df7f907e573e1cc40174d"/><dir name="Mysql4"><dir name="Search"><file name="Collection.php" hash="951464361defbde6a302bdd56d67dec1"/></dir></dir></dir><dir name="Eav"><dir name="Entity"><file name="Attribute.php" hash="dd0f38a76f974ca1ec47f5c06ac3c257"/><dir name="Attribute"><dir name="Frontend"><file name="Default.php" hash="2dc8cd4fc5592ba64cfea43f5fe523cc"/></dir></dir></dir><dir name="Mysql4"><dir name="Entity"><file name="Attribute.php" hash="ca1d51a3b6b87ffe50e2f88631aaaf0b"/></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>
|