Vinagento_Vpager - Version 0.1.7

Version Notes

- Fix search error
- Fix cache eror
- Support Full Page Cache for EE version

Download this release

Release Info

Developer Magento Core Team
Extension Vinagento_Vpager
Version 0.1.7
Comparing to
See all releases


Code changes from version 0.1.6 to 0.1.7

app/code/community/Vinagento/Vpager/controllers/AdvancedController.php ADDED
@@ -0,0 +1,43 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ require_once BP.'/app/code/core/Mage/CatalogSearch/controllers/AdvancedController.php';
3
+ class Vinagento_Vpager_AdvancedController extends Mage_CatalogSearch_AdvancedController
4
+ {
5
+ public function resultAction()
6
+ {
7
+ if($this->getRequest()->isXmlHttpRequest()){
8
+ $this->getResponse()->setBody($this->_getAdvancedSearchResult());
9
+ }else{
10
+ $this->loadLayout();
11
+ try {
12
+ Mage::getSingleton('catalogsearch/advanced')->addFilters($this->getRequest()->getQuery());
13
+ } catch (Mage_Core_Exception $e) {
14
+ Mage::getSingleton('catalogsearch/session')->addError($e->getMessage());
15
+ $this->_redirectError(
16
+ Mage::getModel('core/url')
17
+ ->setQueryParams($this->getRequest()->getQuery())
18
+ ->getUrl('*/*/')
19
+ );
20
+ }
21
+ $this->_initLayoutMessages('catalog/session');
22
+ $this->renderLayout();
23
+ }
24
+ }
25
+ protected function _getAdvancedSearchResult(){
26
+ $layout = $this->getLayout();
27
+ $layout->getUpdate()->load('catalogsearch_advanced_result_ajax');
28
+ try {
29
+ Mage::getSingleton('catalogsearch/advanced')->addFilters($this->getRequest()->getQuery());
30
+ } catch (Mage_Core_Exception $e) {
31
+ Mage::getSingleton('catalogsearch/session')->addError($e->getMessage());
32
+ $this->_redirectError(
33
+ Mage::getModel('core/url')
34
+ ->setQueryParams($this->getRequest()->getQuery())
35
+ ->getUrl('*/*/')
36
+ );
37
+ }
38
+ $layout->generateXml()->generateBlocks();
39
+ $output = $layout->getOutput();
40
+ Mage::log($output);
41
+ return $output;
42
+ }
43
+ }
app/design/frontend/base/default/layout/vpager.xml CHANGED
@@ -65,4 +65,28 @@
65
  </block>
66
  </block>
67
  </catalogsearch_result_ajax>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
68
  </layout>
65
  </block>
66
  </block>
67
  </catalogsearch_result_ajax>
68
+ <catalogsearch_advanced_result_ajax translate="label">
69
+ <block type="core/template" name="root" output="toHtml" template="page/html/wrapper.phtml">
70
+ <action method="setId"><id>layered-container</id></action>
71
+ <block type="core/template" name="ajax-list-container" template="page/html/wrapper.phtml">
72
+ <action method="setId"><id>ajax-list-container</id></action>
73
+ <block type="catalogsearch/advanced_result" name="catalogsearch_advanced_result" template="vpager/advanced_result.phtml">
74
+ <block type="catalog/product_list" name="search_result_list" template="catalog/product/list.phtml">
75
+ <block type="catalog/product_list_toolbar" name="product_list_toolbar" template="catalog/product/list/toolbar.phtml">
76
+ <block type="page/html_pager" name="product_list_toolbar_pager"/>
77
+ </block>
78
+ <action method="addColumnCountLayoutDepend"><layout>empty</layout><count>6</count></action>
79
+ <action method="addColumnCountLayoutDepend"><layout>one_column</layout><count>5</count></action>
80
+ <action method="addColumnCountLayoutDepend"><layout>two_columns_left</layout><count>4</count></action>
81
+ <action method="addColumnCountLayoutDepend"><layout>two_columns_right</layout><count>4</count></action>
82
+ <action method="addColumnCountLayoutDepend"><layout>three_columns</layout><count>3</count></action>
83
+ <action method="setToolbarBlockName"><name>product_list_toolbar</name></action>
84
+ </block>
85
+ <action method="setListOrders"/>
86
+ <action method="setListModes"/>
87
+ <action method="setListCollection"/>
88
+ </block>
89
+ </block>
90
+ </block>
91
+ </catalogsearch_advanced_result_ajax>
92
  </layout>
app/design/frontend/base/default/template/vpager/advanced_result.phtml ADDED
@@ -0,0 +1,4 @@
 
 
 
 
1
+ <?php if($this->getResultCount()): ?>
2
+ <?php echo $this->getProductListHtml() ?>
3
+ <?php endif; ?>
4
+ <?php $this->getSearchCriterias(); ?>
package.xml CHANGED
@@ -1,7 +1,7 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Vinagento_Vpager</name>
4
- <version>0.1.6</version>
5
  <stability>stable</stability>
6
  <license>GPL</license>
7
  <channel>community</channel>
@@ -11,10 +11,10 @@
11
  <notes>- Fix search error&#xD;
12
  - Fix cache eror&#xD;
13
  - Support Full Page Cache for EE version</notes>
14
- <authors><author><name>Vinagento</name><user>vinagento</user><email>vinagento@gmail.com</email></author></authors>
15
  <date>2013-07-23</date>
16
- <time>07:48:57</time>
17
- <contents><target name="magecommunity"><dir name="Vinagento"><dir name="Vpager"><dir name="Block"><dir name="CatalogSearch"><file name="Result.php" hash="461f3712b78004a3491fb1a4c3602984"/></dir></dir><dir name="Helper"><file name="Data.php" hash="26d3ed48ef6e74c34646ba120d5173cc"/></dir><dir name="controllers"><file name="CategoryController.php" hash="47f3a9e070cda7a7d9ce71ab26321887"/><file name="ResultController.php" hash="cb2bce594eeb872e03185b0b590aa795"/></dir><dir name="etc"><file name="adminhtml.xml" hash="1c0980903f8f84ccd205a5d56dcdeadf"/><file name="config.xml" hash="23534b54ec71133f85e62bc47be6cd81"/><file name="system.xml" hash="224537930f3931ddad1339f0832cc3a2"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Vinagento_Vpager.xml" hash="8c2343c234e6b7a53f3c5efb3407a508"/><file name="Vinagento_All.xml" hash="c7cc1f2ff35e2715b7c1705b7c02752f"/></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="vpager.xml" hash="b9e52555faa91af93845f76c76c5771d"/></dir><dir name="template"><dir name="vpager"><file name="search_result.phtml" hash="4005b55c055fb9711332d0565ae7c9aa"/></dir></dir></dir></dir></dir></target><target name="mageskin"><dir name="frontend"><dir name="base"><dir name="default"><dir name="js"><file name="vpager.js" hash="7fb0aa64a6df245bfbe991cb525dc847"/></dir><dir name="css"><file name="vpager.css" hash="3286d0e04f149edb3df22cf322b83d2d"/></dir></dir></dir></dir></target><target name="magelocal"><dir name="Vinagento"><dir name="All"><dir name="Helper"><file name="Config.php" hash="21d13777d955e4e952357f188da6e117"/><file name="Data.php" hash="4085e9b76a48f8a27c4a84cff1a5e043"/></dir><dir name="Model"><dir name="Feed"><file name="Abstract.php" hash="01029311caffdc31a9d828c94802fd11"/><file name="Updates.php" hash="9867bd672d7df5c373fe19cefdc99fc0"/></dir></dir><dir name="etc"><file name="adminhtml.xml" hash="60ecc4909183b214f2ea955ee728d248"/><file name="config.xml" hash="87222fbc8ce24253d50294ccf6c65dc0"/><file name="system.xml" hash="93caad8f7183536148872a7bb9be28c8"/></dir></dir></dir></target></contents>
18
  <compatible/>
19
- <dependencies><required><php><min>5.1.0</min><max>6.2.0</max></php></required></dependencies>
20
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Vinagento_Vpager</name>
4
+ <version>0.1.7</version>
5
  <stability>stable</stability>
6
  <license>GPL</license>
7
  <channel>community</channel>
11
  <notes>- Fix search error&#xD;
12
  - Fix cache eror&#xD;
13
  - Support Full Page Cache for EE version</notes>
14
+ <authors><author><name>Vinagento</name><user>auto-converted</user><email>vinagento@gmail.com</email></author></authors>
15
  <date>2013-07-23</date>
16
+ <time>08:48:15</time>
17
+ <contents><target name="magecommunity"><dir name="Vinagento"><dir name="Vpager"><dir name="Block"><dir name="CatalogSearch"><file name="Result.php" hash="461f3712b78004a3491fb1a4c3602984"/></dir></dir><dir name="Helper"><file name="Data.php" hash="26d3ed48ef6e74c34646ba120d5173cc"/></dir><dir name="controllers"><file name="AdvancedController.php" hash="380e5b3bc90dd1c257d0d80d3e8a33e2"/><file name="CategoryController.php" hash="47f3a9e070cda7a7d9ce71ab26321887"/><file name="ResultController.php" hash="cb2bce594eeb872e03185b0b590aa795"/></dir><dir name="etc"><file name="adminhtml.xml" hash="1c0980903f8f84ccd205a5d56dcdeadf"/><file name="config.xml" hash="23534b54ec71133f85e62bc47be6cd81"/><file name="system.xml" hash="224537930f3931ddad1339f0832cc3a2"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Vinagento_Vpager.xml" hash="8c2343c234e6b7a53f3c5efb3407a508"/><file name="Vinagento_All.xml" hash="c7cc1f2ff35e2715b7c1705b7c02752f"/></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="vpager.xml" hash="fa963986e2c6a31b4584336203c8396f"/></dir><dir name="template"><dir name="vpager"><file name="advanced_result.phtml" hash="5505afb147ce4ede6125d0a6d9053a18"/><file name="search_result.phtml" hash="4005b55c055fb9711332d0565ae7c9aa"/></dir></dir></dir></dir></dir></target><target name="mageskin"><dir name="frontend"><dir name="base"><dir name="default"><dir name="js"><file name="vpager.js" hash="7fb0aa64a6df245bfbe991cb525dc847"/></dir><dir name="css"><file name="vpager.css" hash="3286d0e04f149edb3df22cf322b83d2d"/></dir></dir></dir></dir></target><target name="magelocal"><dir name="Vinagento"><dir name="All"><dir name="Helper"><file name="Config.php" hash="21d13777d955e4e952357f188da6e117"/><file name="Data.php" hash="4085e9b76a48f8a27c4a84cff1a5e043"/></dir><dir name="Model"><dir name="Feed"><file name="Abstract.php" hash="01029311caffdc31a9d828c94802fd11"/><file name="Updates.php" hash="9867bd672d7df5c373fe19cefdc99fc0"/></dir></dir><dir name="etc"><file name="adminhtml.xml" hash="60ecc4909183b214f2ea955ee728d248"/><file name="config.xml" hash="87222fbc8ce24253d50294ccf6c65dc0"/><file name="system.xml" hash="93caad8f7183536148872a7bb9be28c8"/></dir></dir></dir></target></contents>
18
  <compatible/>
19
+ <dependencies/>
20
  </package>