Mega Filter Pro results disappear when using ajax refresh.

ThemeBurn SupportForumsOpenCart ThemesShoppica 2 OpenCart ThemeMega Filter Pro results disappear when using ajax refresh.

This topic has been marked as resolved.

Hi,

We have the latest version of Mega Filter Pro installed on a Shoppica themed site. We have followed your configuration options that are in the forum, but when we try and filter, the results come back hidden.

Opencart 2.3.0.2
BurnEngine (Shoppica) 1.2.7
Mega Filter Pro 2.0.5.6

Could you take a look and let me know what I am doing wrong?

April 20, 2018 at 2:17 pm #64032

Hi,

There is a missing braket in the Custom Javascript code block. You should put this at the very end:

};

BR,
ThemeBurn team

April 20, 2018 at 4:51 pm #64035

Hi ThemeBurn support,

would you mind posting the whole, correct custom js code? I am not sure, if I implemented the correct one.

Thanks

 axanne
April 23, 2018 at 12:47 pm #64051

Hi,

This is the correct code:

MegaFilter.prototype.beforeRequest = function() {
    var self = this;
};

MegaFilter.prototype.beforeRender = function( htmlResponse, htmlContent, json ) {
    var self = this;
};

MegaFilter.prototype.afterRender = function( htmlResponse, htmlContent, json ) {
    tbUtils.globalEval($("#productsGlobalEval").val());
    element_query('.tb_listing_options', '1000,650,350,0');
};

BR,
ThemeBurn team

April 30, 2018 at 11:29 am #64122

great, thank you!

 axanne
April 30, 2018 at 12:58 pm #64132

Glad we’ve helped!

BR,
ThemeBurn team

April 30, 2018 at 1:47 pm #64134
Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.