Version Notes
First Release
Features:
- Customization of slider theme from backend.
- Can use both Images and background color for the slider.
- Can specify whether to include the jQuery or not.
Relase Notes 1.0.2
- Fixed bug : jQuery & jQuery UI not getting included.
Relase Notes 1.0.3
- Fixed bug : Do not Use Images has no effect on frontend.
Relase Notes 1.0.4
- Added : Special Price in filtering
Relase Notes 1.0.5
Bugs Solved :
- Currency symbol do not change - Solved
Improvements:
- Removed theme file dependency
Relase Notes 2.0.0
Bugs Solved :
- Catalog search not working - Solved
Improvements:
- Price Slider now available on search page also
Relase Notes 2.1.0
Improvements:
- AJAX price slider on both category and search pages
- AJAX layered navigation can also be enabled
- AJAX Toolbar can also be enabled
Relase Notes 2.1.1
Bug Fixes : sliderAjax Not found
Relase Notes 2.2.0
Bug Fixes :
- Left blocks disappearing after ajax
- Multicurrency not working
- Overlay height not proper
- Special price not being displayed in the min and max ranges
- Loading screen not disappearing in IE
New Features:
- Multi Currency support
- Text box filtering
- Callback for on slide method
- More theming options
V2.2.1
FIX: error for min and max price
FIX: JS not getting added in frontend
Release Info
Developer | Mrugesh Mistry |
Extension | Magehouse_Slider |
Version | 2.2.1 |
Comparing to | |
See all releases |
Code changes from version 2.2.0 to 2.2.1
@@ -85,8 +85,82 @@ class Magehouse_Slider_Block_Catalog_Layer_Filter_Price extends Mage_Catalog_Blo
|
|
85 |
return $this->getConfig('price_slider/price_slider_conf/textbox');
|
86 |
}
|
87 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
88 |
|
89 |
public function getPriceDisplayType(){
|
|
|
|
|
90 |
$textBoxStyle = $this->getPriceBoxStyle();
|
91 |
$goBtnStyle = $this->getGoBtnStyle();
|
92 |
if($this->isTextBoxEnabled()){
|
@@ -117,6 +191,7 @@ class Magehouse_Slider_Block_Catalog_Layer_Filter_Price extends Mage_Catalog_Blo
|
|
117 |
public function getHtml(){
|
118 |
|
119 |
if($this->getSliderStatus()){
|
|
|
120 |
$text='
|
121 |
<div class="price">
|
122 |
'.$this->getPriceDisplayType().'
|
@@ -410,11 +485,20 @@ class Magehouse_Slider_Block_Catalog_Layer_Filter_Price extends Mage_Catalog_Blo
|
|
410 |
*/
|
411 |
public function setMinPrice(){
|
412 |
if( (isset($_GET['q']) && !isset($_GET['min'])) || !isset($_GET['q'])){
|
413 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
414 |
$this->_searchSession->setMinPrice($this->_minPrice);
|
415 |
}else{
|
416 |
$this->_minPrice = $this->_searchSession->getMinPrice();
|
417 |
}
|
|
|
418 |
}
|
419 |
|
420 |
/*
|
@@ -424,11 +508,21 @@ class Magehouse_Slider_Block_Catalog_Layer_Filter_Price extends Mage_Catalog_Blo
|
|
424 |
*/
|
425 |
public function setMaxPrice(){
|
426 |
if( (isset($_GET['q']) && !isset($_GET['max'])) || !isset($_GET['q'])){
|
427 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
428 |
$this->_searchSession->setMaxPrice($this->_maxPrice);
|
429 |
}else{
|
430 |
$this->_maxPrice = $this->_searchSession->getMaxPrice();
|
431 |
}
|
|
|
|
|
432 |
}
|
433 |
|
434 |
/*
|
@@ -465,7 +559,7 @@ class Magehouse_Slider_Block_Catalog_Layer_Filter_Price extends Mage_Catalog_Blo
|
|
465 |
public function setCurrentPrices(){
|
466 |
|
467 |
$this->_currMinPrice = $this->getRequest()->getParam('min');
|
468 |
-
$this->_currMaxPrice = $this->getRequest()->getParam('max');
|
469 |
}
|
470 |
|
471 |
/*
|
@@ -479,6 +573,16 @@ class Magehouse_Slider_Block_Catalog_Layer_Filter_Price extends Mage_Catalog_Blo
|
|
479 |
}
|
480 |
|
481 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
482 |
/*
|
483 |
* Retrive store object
|
484 |
*
|
85 |
return $this->getConfig('price_slider/price_slider_conf/textbox');
|
86 |
}
|
87 |
|
88 |
+
public function setNewPrices(){
|
89 |
+
$this->setInSession('_newCurrMinPrice', $this->_currMinPrice);
|
90 |
+
$this->setInSession('_newCurrMaxPrice', $this->_currMaxPrice);
|
91 |
+
if(!is_numeric($this->_currMinPrice)){
|
92 |
+
$this->_currMinPrice = 0;
|
93 |
+
$this->setInSession('_currMinPrice', 0);
|
94 |
+
}
|
95 |
+
|
96 |
+
if(!is_numeric($this->_currMaxPrice)){
|
97 |
+
$this->_currMaxPrice = 0;
|
98 |
+
$this->setInSession('_currMaxPrice', 0);
|
99 |
+
}
|
100 |
+
|
101 |
+
$sMin = $this->getFromSession('_minPrice');
|
102 |
+
$sMax = $this->getFromSession('_maxPrice');
|
103 |
+
$csMin = $this->getFromSession('_currMinPrice');
|
104 |
+
$csMax = $this->getFromSession('_currMaxPrice');
|
105 |
+
$ncsMin = $this->getFromSession('_newCurrMinPrice');
|
106 |
+
$ncsMax = $this->getFromSession('_newCurrMaxPrice');
|
107 |
+
|
108 |
+
|
109 |
+
// if Filters are called
|
110 |
+
|
111 |
+
$a[0][] = 'price_index.min_price';
|
112 |
+
$a[0][] = 'ASC';
|
113 |
+
$loadedCollection = $this->getLayout()->getBlockSingleton('catalog/product_list')->getLoadedProductCollection()->setOrder('min_price','DESC')->getSelect()->setPart('order',$a)->query()->fetchAll();
|
114 |
+
//print_r(get_class_methods($loadedCollection));exit;
|
115 |
+
//echo '<pre>';
|
116 |
+
$tot = count($loadedCollection);
|
117 |
+
|
118 |
+
//echo $loadedCollection;exit;
|
119 |
+
|
120 |
+
if(count($loadedCollection) > 0){
|
121 |
+
$loadedMin = $loadedCollection[0]['min_price'];
|
122 |
+
$loadedMax = $loadedCollection[$tot-1]['min_price'];
|
123 |
+
}
|
124 |
+
|
125 |
+
|
126 |
+
|
127 |
+
|
128 |
+
if($this->_currMinPrice == $csMin && $this->_currMaxPrice == $csMax){
|
129 |
+
|
130 |
+
if($this->_minPrice != $ncsMin){
|
131 |
+
$this->setInSession('_minPrice', $loadedMin);
|
132 |
+
$this->_minPrice = $loadedMin;
|
133 |
+
}
|
134 |
+
if($loadedMin >= $csMin){
|
135 |
+
$this->_currMinPrice = $loadedMin;
|
136 |
+
$this->setInSession('_currMinPrice', $loadedMin);
|
137 |
+
}
|
138 |
+
if($this->_maxPrice != $ncsMax){
|
139 |
+
$this->setInSession('_maxPrice', $loadedMin);
|
140 |
+
$this->_maxPrice = $loadedMax;
|
141 |
+
}
|
142 |
+
if($loadedMax <= $csMax){
|
143 |
+
$this->_currMaxPrice = $loadedMax;
|
144 |
+
$this->setInSession('_currMaxPrice', $loadedMax);
|
145 |
+
}
|
146 |
+
}else{
|
147 |
+
if($ncsMin == $loadedMin){
|
148 |
+
$this->setInSession('_minPrice', $loadedMin);
|
149 |
+
$this->_minPrice = $loadedMin;
|
150 |
+
}
|
151 |
+
if($ncsMax == $loadedMax){
|
152 |
+
$this->setInSession('_maxPrice', $loadedMin);
|
153 |
+
$this->_maxPrice = $loadedMax;
|
154 |
+
}
|
155 |
+
|
156 |
+
|
157 |
+
|
158 |
+
}
|
159 |
+
}
|
160 |
|
161 |
public function getPriceDisplayType(){
|
162 |
+
|
163 |
+
|
164 |
$textBoxStyle = $this->getPriceBoxStyle();
|
165 |
$goBtnStyle = $this->getGoBtnStyle();
|
166 |
if($this->isTextBoxEnabled()){
|
191 |
public function getHtml(){
|
192 |
|
193 |
if($this->getSliderStatus()){
|
194 |
+
$this->setNewPrices();
|
195 |
$text='
|
196 |
<div class="price">
|
197 |
'.$this->getPriceDisplayType().'
|
485 |
*/
|
486 |
public function setMinPrice(){
|
487 |
if( (isset($_GET['q']) && !isset($_GET['min'])) || !isset($_GET['q'])){
|
488 |
+
|
489 |
+
if(Mage::getVersion() < '1.7.0.2'){
|
490 |
+
$this->_productCollection->getSelect()->reset('order');
|
491 |
+
$this->_productCollection->getSelect()->order('final_price','asc');
|
492 |
+
$this->_minPrice = round($this->_productCollection->getFirstItem()->getFinalPrice());
|
493 |
+
}else{
|
494 |
+
$this->_minPrice = floor($this->_productCollection->getMinPrice());
|
495 |
+
}
|
496 |
+
|
497 |
$this->_searchSession->setMinPrice($this->_minPrice);
|
498 |
}else{
|
499 |
$this->_minPrice = $this->_searchSession->getMinPrice();
|
500 |
}
|
501 |
+
|
502 |
}
|
503 |
|
504 |
/*
|
508 |
*/
|
509 |
public function setMaxPrice(){
|
510 |
if( (isset($_GET['q']) && !isset($_GET['max'])) || !isset($_GET['q'])){
|
511 |
+
|
512 |
+
if(Mage::getVersion() < '1.7.0.2'){
|
513 |
+
$this->_productCollection->getSelect()->reset('order');
|
514 |
+
$this->_productCollection->getSelect()->order('final_price','asc');
|
515 |
+
$this->_maxPrice = round($this->_productCollection->getLastItem()->getFinalPrice());
|
516 |
+
}else{
|
517 |
+
$this->_maxPrice = ceil($this->_productCollection->getMaxPrice());
|
518 |
+
}
|
519 |
+
|
520 |
$this->_searchSession->setMaxPrice($this->_maxPrice);
|
521 |
}else{
|
522 |
$this->_maxPrice = $this->_searchSession->getMaxPrice();
|
523 |
}
|
524 |
+
|
525 |
+
|
526 |
}
|
527 |
|
528 |
/*
|
559 |
public function setCurrentPrices(){
|
560 |
|
561 |
$this->_currMinPrice = $this->getRequest()->getParam('min');
|
562 |
+
$this->_currMaxPrice = $this->getRequest()->getParam('max');
|
563 |
}
|
564 |
|
565 |
/*
|
573 |
}
|
574 |
|
575 |
|
576 |
+
public function setInSession($var, $value){
|
577 |
+
$set = "set".$var;
|
578 |
+
Mage::getSingleton('catalog/session')->$set($value);
|
579 |
+
}
|
580 |
+
|
581 |
+
public function getFromSession($var){
|
582 |
+
$get = "get".$var;
|
583 |
+
return Mage::getSingleton('catalog/session')->$get();
|
584 |
+
}
|
585 |
+
|
586 |
/*
|
587 |
* Retrive store object
|
588 |
*
|
@@ -26,7 +26,7 @@ class Magehouse_Slider_Model_Catalog_Layer extends Mage_Catalog_Model_Layer
|
|
26 |
$this->_productCollections[$this->getCurrentCategory()->getId()] = $collection;
|
27 |
}
|
28 |
|
29 |
-
$this->currentRate =
|
30 |
$max=$this->getMaxPriceFilter();
|
31 |
$min=$this->getMinPriceFilter();
|
32 |
|
26 |
$this->_productCollections[$this->getCurrentCategory()->getId()] = $collection;
|
27 |
}
|
28 |
|
29 |
+
$this->currentRate = Mage::app()->getStore()->getCurrentCurrencyRate();;
|
30 |
$max=$this->getMaxPriceFilter();
|
31 |
$min=$this->getMinPriceFilter();
|
32 |
|
@@ -47,7 +47,7 @@ class Magehouse_Slider_Model_Catalogsearch_Layer extends Mage_CatalogSearch_Mode
|
|
47 |
Mage::getSingleton('catalog/product_status')->addVisibleFilterToCollection($collection);
|
48 |
Mage::getSingleton('catalog/product_visibility')->addVisibleInSearchFilterToCollection($collection);
|
49 |
|
50 |
-
$this->currentRate =
|
51 |
$max=$this->getMaxPriceFilter();
|
52 |
$min=$this->getMinPriceFilter();
|
53 |
|
47 |
Mage::getSingleton('catalog/product_status')->addVisibleFilterToCollection($collection);
|
48 |
Mage::getSingleton('catalog/product_visibility')->addVisibleInSearchFilterToCollection($collection);
|
49 |
|
50 |
+
$this->currentRate = Mage::app()->getStore()->getCurrentCurrencyRate();;
|
51 |
$max=$this->getMaxPriceFilter();
|
52 |
$min=$this->getMinPriceFilter();
|
53 |
|
@@ -106,6 +106,7 @@
|
|
106 |
<overlay_opacity>0.7</overlay_opacity>
|
107 |
<loading_text>Fetching Results... Please wait...</loading_text>
|
108 |
<loading_text_color>#ffffff</loading_text_color>
|
|
|
109 |
</ajax_conf>
|
110 |
</price_slider>
|
111 |
</default>
|
106 |
<overlay_opacity>0.7</overlay_opacity>
|
107 |
<loading_text>Fetching Results... Please wait...</loading_text>
|
108 |
<loading_text_color>#ffffff</loading_text_color>
|
109 |
+
<loading_image />
|
110 |
</ajax_conf>
|
111 |
</price_slider>
|
112 |
</default>
|
@@ -1,7 +1,7 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Magehouse_Slider</name>
|
4 |
-
<version>2.2.
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://www.opensource.org/licenses/osl-3.0.php">OSL v3.0</license>
|
7 |
<channel>community</channel>
|
@@ -74,11 +74,15 @@ New Features:
|
|
74 |
- Text box filtering
|
75 |
- Callback for on slide method 
|
76 |
- More theming options
|
77 |
-
|
|
|
|
|
|
|
|
|
78 |
<authors><author><name>Mrugesh Mistry</name><user>mrugeshrocks</user><email>mrugesh.rocks@gmail.com</email></author></authors>
|
79 |
-
<date>2013-
|
80 |
-
<time>
|
81 |
-
<contents><target name="magecommunity"><dir name="Magehouse"><dir name="Slider"><dir name="Block"><file name="Ajax.php" hash="0d2a44176cc2a0646a8d47f97061fb02"/><dir name="Catalog"><dir name="Layer"><dir name="Filter"><file name="Price.php" hash="
|
82 |
<compatible/>
|
83 |
<dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
|
84 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Magehouse_Slider</name>
|
4 |
+
<version>2.2.1</version>
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://www.opensource.org/licenses/osl-3.0.php">OSL v3.0</license>
|
7 |
<channel>community</channel>
|
74 |
- Text box filtering
|
75 |
- Callback for on slide method 
|
76 |
- More theming options
|
77 |
+

|
78 |
+
V2.2.1
|
79 |
+

|
80 |
+
FIX: error for min and max price
|
81 |
+
FIX: JS not getting added in frontend</notes>
|
82 |
<authors><author><name>Mrugesh Mistry</name><user>mrugeshrocks</user><email>mrugesh.rocks@gmail.com</email></author></authors>
|
83 |
+
<date>2013-10-29</date>
|
84 |
+
<time>17:36:19</time>
|
85 |
+
<contents><target name="magecommunity"><dir name="Magehouse"><dir name="Slider"><dir name="Block"><file name="Ajax.php" hash="0d2a44176cc2a0646a8d47f97061fb02"/><dir name="Catalog"><dir name="Layer"><dir name="Filter"><file name="Price.php" hash="ac8fcd7033d6fa71c3a36e107c72569d"/></dir></dir></dir></dir><dir name="Helper"><file name="Data.php" hash="a065b8f56bbda2943734e76139883220"/></dir><dir name="Model"><dir name="Catalog"><file name="Layer.php" hash="bc991f782c77652d6be29e15444c9be8"/></dir><dir name="Catalogsearch"><file name="Layer.php" hash="45b64b4477415ec3f58f7fa1c22a3381"/></dir><dir name="Resource"><file name="Setup.php" hash="adf2aaa164649ba2a335545303ee1600"/></dir></dir><dir name="controllers"><dir name="Catalog"><file name="CategoryController.php" hash="c7dde356bb55b306484efac577573625"/></dir><dir name="CatalogSearch"><file name="ResultController.php" hash="55903199aa1e17657e9be4082e09a813"/></dir></dir><dir name="etc"><file name="adminhtml.xml" hash="c728cee82276d42e77808bf48fdd0cdf"/><file name="config.xml" hash="415eed3d77f327505f90d919e32a788c"/><file name="system.xml" hash="66f4384a51f7c568fdbf439471056ea4"/></dir><dir name="sql"><dir name="slider_setup"><file name="mysql4-install-2.1.0.php" hash="12d0c01013cbeadce8d5b6d3e7b148d2"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Magehouse_Slider.xml" hash="43112ba587c13efb57d3b9471498a814"/></dir></target><target name="mageskin"><dir name="frontend"><dir name="base"><dir name="default"><dir name="css"><dir name="slider"><dir name="images"><file name="Thumbs.db" hash="c192da3c422ad168eecbe155887757f4"/><file name="ui-bg_diagonals-thick_18_b81900_40x40.png" hash="95f9cceeb9d742dd3e917ec16ed754f8"/><file name="ui-bg_diagonals-thick_20_666666_40x40.png" hash="f040b255ca13e693da34ab33c7d6b554"/><file name="ui-bg_flat_10_000000_40x100.png" hash="c18cd01623c7fed23c80d53e2f5e7c78"/><file name="ui-bg_glass_100_f6f6f6_1x400.png" hash="4c494f261d76fd2c344853b64a09371b"/><file name="ui-bg_glass_100_fdf5ce_1x400.png" hash="4c494f261d76fd2c344853b64a09371b"/><file name="ui-bg_glass_65_ffffff_1x400.png" hash="4c494f261d76fd2c344853b64a09371b"/><file name="ui-bg_gloss-wave_35_f6a828_500x100.png" hash="8c06b9c15ea2bef5ff5f1c7468bdc106"/><file name="ui-bg_highlight-soft_100_eeeeee_1x100.png" hash="f00e2ff3af640da7ee8915791b947349"/><file name="ui-bg_highlight-soft_75_ffe45c_1x100.png" hash="b806658954cb4d16ade8977af737f486"/><file name="ui-icons_222222_256x240.png" hash="ebe6b6902a408fbf9cac6379a1477525"/><file name="ui-icons_228ef1_256x240.png" hash="79f41c0765e9ec18562b20b0801d748b"/><file name="ui-icons_ef8c08_256x240.png" hash="ef9a6ccfe3b14041928ddc708665b226"/><file name="ui-icons_ffd27a_256x240.png" hash="39c5a5f53ff0e6cebaec731706427bbb"/><file name="ui-icons_ffffff_256x240.png" hash="342bc03f6264c75d3f1d7f99e34295b9"/></dir><file name="jquery-ui-1.8.23.custom.css" hash="408147096939c6ddb0becced6cdc1197"/></dir></dir></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="slider.xml" hash="c0260a22c67db7fe792c1d9a3a3a03f5"/></dir><dir name="template"><dir name="slider"><file name="ajax.phtml" hash="3fa3e445ae83118a21e4e5f9d2f7f3a4"/></dir></dir></dir></dir></dir></target><target name="magemedia"><dir name="magehouse"><dir name="slider"><dir name="default"><file name="ajax-loader.gif" hash="f9b76dc9bba462ece85fc9d7f8f2c33e"/><file name="handle.png" hash="4c494f261d76fd2c344853b64a09371b"/><file name="handle_1.png" hash="4c494f261d76fd2c344853b64a09371b"/><file name="icon.png" hash="444001bf372dc691461224d21764d5d4"/><file name="icon_1.png" hash="444001bf372dc691461224d21764d5d4"/><file name="icon_cat_-_.png" hash="4f4303633e7b8d123d08df02d01c6a8e"/><file name="icon_order.png" hash="fb9baae9d79e0a7b894d958f83660ab7"/><file name="range-bg.jpg" hash="8c06b9c15ea2bef5ff5f1c7468bdc106"/><file name="slider-bg.jpg" hash="f00e2ff3af640da7ee8915791b947349"/></dir></dir></dir></target></contents>
|
86 |
<compatible/>
|
87 |
<dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
|
88 |
</package>
|