Можете мне помочь с модулем? ?mfp=stock_status[7,5],manufacturers[8] при включении фильтра пропадают категории, и не показывают картинки, после обновления страницы все нормально. Если есть возможность, подсказать как правильно адаптировать под Journal2
JS
MegaFilter.prototype.beforeRequest = function() {
var self = this;
};
MegaFilter.prototype.beforeRender = function( htmlResponse, htmlContent, json ) {
var self = this;
};
MegaFilter.prototype.afterRender = function( htmlResponse, htmlContent, json ) {
var self = this;
Journal.applyView();
if(Journal.quickViewStatus){
Journal.enableQuickView();
}
$('img.lazy').each(function(){
$(this).attr('src', $(this).attr('data-src'));
});
};
CSS
#mfilter-opts-price-min,
#mfilter-opts-price-max {
width: 70px;
min-width: 70px;
max-width: 70px;
display: inline-block;
}
.mfilter-box .mfilter-opts-slider-min,
.mfilter-box .mfilter-opts-slider-max {
width: 70px;
min-width: 70px;
max-width: 70px;
display: inline-block;
}
.mfilter-free-container #mfilter-opts-price-min,
.mfilter-free-container #mfilter-opts-price-max {
width: 50px !important;
min-width: 50px !important;
max-width: 50px !important;
}
.mfilter-free-container .mfilter-opts-slider-min,
.mfilter-free-container .mfilter-opts-slider-max {
width: 50px !important;
min-width: 50px !important;
max-width: 50px !important;
}
First i want to THANK YOU for the module and
for those who dont wont to see "There is a conflict Mega Filter PRO with your template or other extension - please find a solution on our forum." error.
1. go to /public_html/system/library/mfilter_module.php
2. LINE 195
$this->a1GIogCcvADI1a("\124\150\145\162\145\40\x69\x73\40\141\40\x63\x6f\x6e
\x66\154\151\143\x74\x20\115\x65\147\141\40\x46\x69\x6c
\164\x65\x72\x20\120\122\117\40\x77\151\164\x68\x20\x79\x6f\165\162\x20\x74\x65\155\x70\x6c
\x61\164\145\x20\157\162\40\x6f\x74\150\x65\162\x20\x65\170\x74\x65\x6e\x73\x69\x6f\x6e
\x20\55\40\74\x61\x20\150\162\x65\x66\x3d\x22\150\x74\164\160\x3a\57\x2f\x66\157\x72\x75\155\x2e\x6f
\143\x64\x65\x6d\157\x2e\145\x75\57\42\x20\x74\x61\x72\x67\145\164\x3d\42\x5f\142\x6c
\141\156\153\x22\x20\x73\x74\x79\x6c\x65\75\x22\164\145\170\x74\55\144\145\x63\x6f
\162\141\164\x69\157\156\72\165\156\x64\x65\162\154\151\156\145\x22\x3e\160\154\x65\141\163\145\40\x66\x69\x6e
\x64\40\x61\x20\x73\157\x6c\x75\x74\151\x6f\x6e\40\157\x6e\x20\x6f\x75\x72\40\146\157\162\165\x6d\x3c\57\141\x3e
\x2e");
3. Change to this
$this->a1GIogCcvADI1a("Search");
4. Go to extensions/modules edit Megafilter pro/plus than Go About and press rebuld index
DONE!!!
It tooks me 6 hours to find and decrypt this because was hex encrypted all the file. I share my work only to your forum.:hat:
JS
MegaFilter.prototype.beforeRequest = function() {
var self = this;
};
MegaFilter.prototype.beforeRender = function( htmlResponse, htmlContent, json ) {
var self = this;
};
MegaFilter.prototype.afterRender = function( htmlResponse, htmlContent, json ) {
var self = this;
Journal.applyView();
if(Journal.quickViewStatus){
Journal.enableQuickView();
}
$('img.lazy').each(function(){
$(this).attr('src', $(this).attr('data-src'));
});
};
CSS
#mfilter-opts-price-min,
#mfilter-opts-price-max {
width: 70px;
min-width: 70px;
max-width: 70px;
display: inline-block;
}
.mfilter-box .mfilter-opts-slider-min,
.mfilter-box .mfilter-opts-slider-max {
width: 70px;
min-width: 70px;
max-width: 70px;
display: inline-block;
}
.mfilter-free-container #mfilter-opts-price-min,
.mfilter-free-container #mfilter-opts-price-max {
width: 50px !important;
min-width: 50px !important;
max-width: 50px !important;
}
.mfilter-free-container .mfilter-opts-slider-min,
.mfilter-free-container .mfilter-opts-slider-max {
width: 50px !important;
min-width: 50px !important;
max-width: 50px !important;
}
First i want to THANK YOU for the module and
for those who dont wont to see "There is a conflict Mega Filter PRO with your template or other extension - please find a solution on our forum." error.
1. go to /public_html/system/library/mfilter_module.php
2. LINE 195
$this->a1GIogCcvADI1a("\124\150\145\162\145\40\x69\x73\40\141\40\x63\x6f\x6e
\x66\154\151\143\x74\x20\115\x65\147\141\40\x46\x69\x6c
\164\x65\x72\x20\120\122\117\40\x77\151\164\x68\x20\x79\x6f\165\162\x20\x74\x65\155\x70\x6c
\x61\164\145\x20\157\162\40\x6f\x74\150\x65\162\x20\x65\170\x74\x65\x6e\x73\x69\x6f\x6e
\x20\55\40\74\x61\x20\150\162\x65\x66\x3d\x22\150\x74\164\160\x3a\57\x2f\x66\157\x72\x75\155\x2e\x6f
\143\x64\x65\x6d\157\x2e\145\x75\57\42\x20\x74\x61\x72\x67\145\164\x3d\42\x5f\142\x6c
\141\156\153\x22\x20\x73\x74\x79\x6c\x65\75\x22\164\145\170\x74\55\144\145\x63\x6f
\162\141\164\x69\157\156\72\165\156\x64\x65\162\154\151\156\145\x22\x3e\160\154\x65\141\163\145\40\x66\x69\x6e
\x64\40\x61\x20\x73\157\x6c\x75\x74\151\x6f\x6e\40\157\x6e\x20\x6f\x75\x72\40\146\157\162\165\x6d\x3c\57\141\x3e
\x2e");
3. Change to this
$this->a1GIogCcvADI1a("Search");
4. Go to extensions/modules edit Megafilter pro/plus than Go About and press rebuld index
DONE!!!
It tooks me 6 hours to find and decrypt this because was hex encrypted all the file. I share my work only to your forum.:hat:
Последнее редактирование модератором: