Version Notes
This module was tested in Magento Commerce version 1.4.0.1, 1.5.0.1and 1.6.2.0, and work in this version smoothly.
Download this release
Release Info
Developer | Magento Core Team |
Extension | PSystem_CatalogAjax |
Version | 1.0.1 |
Comparing to | |
See all releases |
Code changes from version 1.0.0 to 1.0.1
- app/code/community/PSystem/CatalogAjax/Block/Config.php +18 -5
- app/code/community/PSystem/CatalogAjax/etc/adminhtml.xml +1 -1
- app/code/community/PSystem/CatalogAjax/etc/config.xml +2 -2
- app/code/community/PSystem/CatalogAjax/etc/system.xml +37 -1
- app/etc/modules/PSystem_CatalogAjax.xml +1 -1
- package.xml +6 -6
app/code/community/PSystem/CatalogAjax/Block/Config.php
CHANGED
@@ -1,9 +1,9 @@
|
|
1 |
-
<?
|
2 |
/**
|
3 |
* @category PSystem
|
4 |
* @package PSystem_CatalogAjax
|
5 |
* @author Pascal System <info@pascalsystem.pl>
|
6 |
-
* @version 1.0.
|
7 |
*/
|
8 |
|
9 |
/**
|
@@ -12,7 +12,7 @@
|
|
12 |
* @category PSystem
|
13 |
* @package PSystem_CatalogAjax
|
14 |
* @author Pascal System <info@pascalsystem.pl>
|
15 |
-
* @version 1.0.
|
16 |
*/
|
17 |
class PSystem_CatalogAjax_Block_Config extends Mage_Core_Block_Abstract {
|
18 |
/**
|
@@ -60,7 +60,6 @@ class PSystem_CatalogAjax_Block_Config extends Mage_Core_Block_Abstract {
|
|
60 |
}
|
61 |
|
62 |
if (count($newConfig)) {
|
63 |
-
$content.= "<script type=\"text/javascript\">\n";
|
64 |
foreach ($newConfig as $key => $data) {
|
65 |
switch ($key) {
|
66 |
case 'selector' :
|
@@ -82,7 +81,21 @@ class PSystem_CatalogAjax_Block_Config extends Mage_Core_Block_Abstract {
|
|
82 |
continue;
|
83 |
}
|
84 |
}
|
85 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
86 |
}
|
87 |
|
88 |
return $content;
|
1 |
+
<?php
|
2 |
/**
|
3 |
* @category PSystem
|
4 |
* @package PSystem_CatalogAjax
|
5 |
* @author Pascal System <info@pascalsystem.pl>
|
6 |
+
* @version 1.0.1
|
7 |
*/
|
8 |
|
9 |
/**
|
12 |
* @category PSystem
|
13 |
* @package PSystem_CatalogAjax
|
14 |
* @author Pascal System <info@pascalsystem.pl>
|
15 |
+
* @version 1.0.1
|
16 |
*/
|
17 |
class PSystem_CatalogAjax_Block_Config extends Mage_Core_Block_Abstract {
|
18 |
/**
|
60 |
}
|
61 |
|
62 |
if (count($newConfig)) {
|
|
|
63 |
foreach ($newConfig as $key => $data) {
|
64 |
switch ($key) {
|
65 |
case 'selector' :
|
81 |
continue;
|
82 |
}
|
83 |
}
|
84 |
+
}
|
85 |
+
if (Mage::app()->getFrontController()->getAction()->getFullActionName() == 'catalogsearch_result_index') {
|
86 |
+
$searchBlockName = Mage::getStoreConfig('pscatalogajax/blocksearchlayer/name');
|
87 |
+
$content.= 'PS.catalogajax.config.blocks.layer.name = \''.(($searchBlockName)?$searchBlockName:'catalogsearch.leftnav').'\';'."\n";
|
88 |
+
$temp = Mage::getStoreConfig('pscatalogajax/blocksearchlayer/selector');
|
89 |
+
if ($temp) {
|
90 |
+
$content.= 'PS.catalogajax.config.blocks.layer.selector = \''.$temp.'\''."\n";
|
91 |
+
}
|
92 |
+
$temp = Mage::getStoreConfig('pscatalogajax/blocksearchlayer/replace');
|
93 |
+
if ($temp) {
|
94 |
+
$content.= 'PS.catalogajax.config.blocks.layer.replace = \''.$temp.'\''."\n";
|
95 |
+
}
|
96 |
+
}
|
97 |
+
if ($content) {
|
98 |
+
$content = "<script type=\"text/javascript\">\n".$content."\n</script>\n";
|
99 |
}
|
100 |
|
101 |
return $content;
|
app/code/community/PSystem/CatalogAjax/etc/adminhtml.xml
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
* @category PSystem
|
5 |
* @package PSystem_CatalogAjax
|
6 |
* @author Pascal System <info@pascalsystem.pl>
|
7 |
-
* @version 1.0.
|
8 |
*/
|
9 |
-->
|
10 |
<config>
|
4 |
* @category PSystem
|
5 |
* @package PSystem_CatalogAjax
|
6 |
* @author Pascal System <info@pascalsystem.pl>
|
7 |
+
* @version 1.0.1
|
8 |
*/
|
9 |
-->
|
10 |
<config>
|
app/code/community/PSystem/CatalogAjax/etc/config.xml
CHANGED
@@ -4,13 +4,13 @@
|
|
4 |
* @category PSystem
|
5 |
* @package PSystem_CatalogAjax
|
6 |
* @author Pascal System <info@pascalsystem.pl>
|
7 |
-
* @version 1.0.
|
8 |
*/
|
9 |
-->
|
10 |
<config>
|
11 |
<modules>
|
12 |
<PSystem_CatalogAjax>
|
13 |
-
<version>1.0.
|
14 |
</PSystem_CatalogAjax>
|
15 |
</modules>
|
16 |
<global>
|
4 |
* @category PSystem
|
5 |
* @package PSystem_CatalogAjax
|
6 |
* @author Pascal System <info@pascalsystem.pl>
|
7 |
+
* @version 1.0.1
|
8 |
*/
|
9 |
-->
|
10 |
<config>
|
11 |
<modules>
|
12 |
<PSystem_CatalogAjax>
|
13 |
+
<version>1.0.1</version>
|
14 |
</PSystem_CatalogAjax>
|
15 |
</modules>
|
16 |
<global>
|
app/code/community/PSystem/CatalogAjax/etc/system.xml
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
* @category PSystem
|
5 |
* @package PSystem_CatalogAjax
|
6 |
* @author Pascal System <info@pascalsystem.pl>
|
7 |
-
* @version 1.0.
|
8 |
*/
|
9 |
-->
|
10 |
<config>
|
@@ -171,6 +171,42 @@
|
|
171 |
</replace>
|
172 |
</fields>
|
173 |
</blocklayer>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
174 |
</groups>
|
175 |
</pscatalogajax>
|
176 |
</sections>
|
4 |
* @category PSystem
|
5 |
* @package PSystem_CatalogAjax
|
6 |
* @author Pascal System <info@pascalsystem.pl>
|
7 |
+
* @version 1.0.1
|
8 |
*/
|
9 |
-->
|
10 |
<config>
|
171 |
</replace>
|
172 |
</fields>
|
173 |
</blocklayer>
|
174 |
+
<blocksearchlayer>
|
175 |
+
<label>Block Search Layer Navigation</label>
|
176 |
+
<show_in_default>1</show_in_default>
|
177 |
+
<show_in_website>1</show_in_website>
|
178 |
+
<show_in_store>0</show_in_store>
|
179 |
+
<sort_order>20</sort_order>
|
180 |
+
<fields>
|
181 |
+
<name translate="label,comment">
|
182 |
+
<label>Name</label>
|
183 |
+
<comment><![CDATA[default: catalogsearch.leftnav]]></comment>
|
184 |
+
<frontend_type>text</frontend_type>
|
185 |
+
<sort_order>5</sort_order>
|
186 |
+
<show_in_default>1</show_in_default>
|
187 |
+
<show_in_website>1</show_in_website>
|
188 |
+
<show_in_store>0</show_in_store>
|
189 |
+
</name>
|
190 |
+
<selector translate="label,comment">
|
191 |
+
<label>Selector for block</label>
|
192 |
+
<comment><![CDATA[default: .page .main .col-left]]></comment>
|
193 |
+
<frontend_type>text</frontend_type>
|
194 |
+
<sort_order>10</sort_order>
|
195 |
+
<show_in_default>1</show_in_default>
|
196 |
+
<show_in_website>1</show_in_website>
|
197 |
+
<show_in_store>0</show_in_store>
|
198 |
+
</selector>
|
199 |
+
<replace translate="label,comment">
|
200 |
+
<label>Replace selector</label>
|
201 |
+
<comment><![CDATA[default: .block-layered-nav]]></comment>
|
202 |
+
<frontend_type>text</frontend_type>
|
203 |
+
<sort_order>15</sort_order>
|
204 |
+
<show_in_default>1</show_in_default>
|
205 |
+
<show_in_website>1</show_in_website>
|
206 |
+
<show_in_store>0</show_in_store>
|
207 |
+
</replace>
|
208 |
+
</fields>
|
209 |
+
</blocksearchlayer>
|
210 |
</groups>
|
211 |
</pscatalogajax>
|
212 |
</sections>
|
app/etc/modules/PSystem_CatalogAjax.xml
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
* @category PSystem
|
5 |
* @package PSystem_CatalogAjax
|
6 |
* @author Pascal System <info@pascalsystem.pl>
|
7 |
-
* @version 1.0.
|
8 |
*/
|
9 |
-->
|
10 |
<config>
|
4 |
* @category PSystem
|
5 |
* @package PSystem_CatalogAjax
|
6 |
* @author Pascal System <info@pascalsystem.pl>
|
7 |
+
* @version 1.0.1
|
8 |
*/
|
9 |
-->
|
10 |
<config>
|
package.xml
CHANGED
@@ -1,18 +1,18 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>PSystem_CatalogAjax</name>
|
4 |
-
<version>1.0.
|
5 |
<stability>stable</stability>
|
6 |
<license>OSL v3.0</license>
|
7 |
<channel>community</channel>
|
8 |
<extends/>
|
9 |
-
<summary>
|
10 |
<description>This module load product list by ajax.You can use filter in left navigation, page limiter, page browser and switch list mode by ajax.You can define your own css selector for reloading content in Admin Panel.</description>
|
11 |
-
<notes>This module was tested in Magento Commerce version 1.4.0.1
|
12 |
<authors><author><name>Pascal System</name><user>auto-converted</user><email>info@pascalsystem.pl</email></author></authors>
|
13 |
-
<date>
|
14 |
-
<time>22:
|
15 |
-
<contents><target name="magedesign"><dir name="frontend"><dir name="default"><dir name="default"><dir name="layout"><file name="ps_catalogajax.xml" hash="bda5effb4895e7e5f6cb5e2f24f5e224"/></dir></dir></dir></dir></target><target name="mage"><dir name="js"><dir name="pascalsystem"><file name="catalogajax.js" hash="a9da925bab5f68ad5c31026f709ba94c"/></dir></dir></target><target name="mageetc"><dir name="modules"><file name="PSystem_CatalogAjax.xml" hash="
|
16 |
<compatible/>
|
17 |
<dependencies><required><package><name>PSystem_Base</name><channel>community</channel><min></min><max></max></package></required></dependencies>
|
18 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>PSystem_CatalogAjax</name>
|
4 |
+
<version>1.0.1</version>
|
5 |
<stability>stable</stability>
|
6 |
<license>OSL v3.0</license>
|
7 |
<channel>community</channel>
|
8 |
<extends/>
|
9 |
+
<summary>This module use ajax for catalog product list and layer navigation.</summary>
|
10 |
<description>This module load product list by ajax.You can use filter in left navigation, page limiter, page browser and switch list mode by ajax.You can define your own css selector for reloading content in Admin Panel.</description>
|
11 |
+
<notes>This module was tested in Magento Commerce version 1.4.0.1, 1.5.0.1and 1.6.2.0, and work in this version smoothly.</notes>
|
12 |
<authors><author><name>Pascal System</name><user>auto-converted</user><email>info@pascalsystem.pl</email></author></authors>
|
13 |
+
<date>2012-02-12</date>
|
14 |
+
<time>22:18:43</time>
|
15 |
+
<contents><target name="magedesign"><dir name="frontend"><dir name="default"><dir name="default"><dir name="layout"><file name="ps_catalogajax.xml" hash="bda5effb4895e7e5f6cb5e2f24f5e224"/></dir></dir></dir></dir></target><target name="mage"><dir name="js"><dir name="pascalsystem"><file name="catalogajax.js" hash="a9da925bab5f68ad5c31026f709ba94c"/></dir></dir></target><target name="mageetc"><dir name="modules"><file name="PSystem_CatalogAjax.xml" hash="0433aaebcae372eac3390df27034ee16"/></dir></target><target name="magecommunity"><dir name="PSystem"><dir name="CatalogAjax"><dir name="Block"><file name="Config.php" hash="a726d0419fb33ff2eb330df8f7fb2c10"/></dir><dir name="etc"><file name="adminhtml.xml" hash="f2ccfd6813e8772a96609e71095e6576"/><file name="config.xml" hash="eebfd4e84b395a59a745f97d1fe475e1"/><file name="system.xml" hash="43d2677605122493976af3e64f5e771d"/></dir></dir></dir></target></contents>
|
16 |
<compatible/>
|
17 |
<dependencies><required><package><name>PSystem_Base</name><channel>community</channel><min></min><max></max></package></required></dependencies>
|
18 |
</package>
|