// blocklayered, up version number, fix bug on IE8, plus change filter category ordering
This commit is contained in:
@@ -235,7 +235,7 @@ function cancelFilter()
|
|||||||
{
|
{
|
||||||
$('#'+$(this).attr('rel')).attr('checked', false);
|
$('#'+$(this).attr('rel')).attr('checked', false);
|
||||||
$('.'+$(this).attr('rel')).attr('checked', false);
|
$('.'+$(this).attr('rel')).attr('checked', false);
|
||||||
$('#layered_form input[name='+$(this).attr('rel')+']:hidden').remove();
|
$('#layered_form input[name='+$(this).attr('rel')+']').remove();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
reloadContent();
|
reloadContent();
|
||||||
|
|||||||
@@ -39,7 +39,7 @@ class BlockLayered extends Module
|
|||||||
{
|
{
|
||||||
$this->name = 'blocklayered';
|
$this->name = 'blocklayered';
|
||||||
$this->tab = 'front_office_features';
|
$this->tab = 'front_office_features';
|
||||||
$this->version = '1.7.7';
|
$this->version = '1.7.8';
|
||||||
$this->author = 'PrestaShop';
|
$this->author = 'PrestaShop';
|
||||||
$this->need_instance = 0;
|
$this->need_instance = 0;
|
||||||
|
|
||||||
@@ -2505,7 +2505,7 @@ class BlockLayered extends Module
|
|||||||
WHERE c.nleft > '.(int)$parent->nleft.'
|
WHERE c.nleft > '.(int)$parent->nleft.'
|
||||||
AND c.nright < '.(int)$parent->nright.'
|
AND c.nright < '.(int)$parent->nright.'
|
||||||
'.($depth ? 'AND c.level_depth <= '.($parent->level_depth+(int)$depth) : '').'
|
'.($depth ? 'AND c.level_depth <= '.($parent->level_depth+(int)$depth) : '').'
|
||||||
GROUP BY c.id_category ORDER BY level_depth, c.position';
|
GROUP BY c.id_category ORDER BY c.nleft, c.position';
|
||||||
}
|
}
|
||||||
|
|
||||||
foreach ($filters as $filterTmp)
|
foreach ($filters as $filterTmp)
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
<module>
|
<module>
|
||||||
<name>blocklayered</name>
|
<name>blocklayered</name>
|
||||||
<displayName><![CDATA[Layered navigation block]]></displayName>
|
<displayName><![CDATA[Layered navigation block]]></displayName>
|
||||||
<version><![CDATA[1.7.7]]></version>
|
<version><![CDATA[1.7.8]]></version>
|
||||||
<description><![CDATA[Displays a block with layered navigation filters.]]></description>
|
<description><![CDATA[Displays a block with layered navigation filters.]]></description>
|
||||||
<author><![CDATA[PrestaShop]]></author>
|
<author><![CDATA[PrestaShop]]></author>
|
||||||
<tab><![CDATA[front_office_features]]></tab>
|
<tab><![CDATA[front_office_features]]></tab>
|
||||||
|
|||||||
Reference in New Issue
Block a user