How to re load category.tpl scripts after using mega filter pro

ThemeBurn SupportForumsOpenCart ThemesPavilion OpenCart ThemeHow to re load category.tpl scripts after using mega filter pro

This topic has been marked as resolved.

Hi, I’ve been trying to solve this problem by my self before to bother you but I have’t been able to find any real solution. There is an issue using mega filter pro, after any option is hit, the new results do not have the scripts working (hover effects, zoom etc..). It seems a small problem , but is important for my site, because I play a video on hover for each product. Losing this feature make the search a bit useless.

Is there any easy solution or tips you could give me to try to find a solution to this problem? Y tried to code a few ideas to run the scripts again after the filters are rendered but the closer I could get was a timer that reloads the scripts every n time or reloading the entire page. Both solutions are quite bad to be honest.

oc version: 2.0.1.1
Pavilion version: 1.2.5
Mega filter pro version: 2.0.2.6

Thanks in advance.

May 13, 2015 at 10:29 pm #40822

I found a solution:

I created a custom JS function in the category.tpl with a copy of all scripts in it and then I’m calling this function from Mega Filter Pro JavaScript custom code afterRender. It seems to work fine, but I’m not sure if this is the best approach. Please let me know if this is OK or if I should do it in any other way.

Thanks a lot.

May 14, 2015 at 11:10 pm #40839

You can try the following solution:

1. Replace your catalog/view/theme/pavilion/template/tb/header.tpl with the attached one.

2. Open the megafilter pro module administration panel and go to Settings -> Javascript. Replace the ‘JavaScript custom code’ text area with the following:

MegaFilter.prototype.afterRender = function( htmlResponse, htmlContent, json ) {
    var self = this;
    typeof tbApp != "undefined" && $.each($.merge(tbApp.sciprtLoadFunctions, tbApp.windowLoadFunctions), function(index, value) {value()});
};

It should look like this image

Does this work for you ?

BR,
ThemeBurn team

May 19, 2015 at 2:20 pm #40943

Hi,

To include the following line of javascript custom code and filter module header doubled sections and products, overlaps content. When I comment the javascript line “typeof tbApp != “u…” all work fine but no hover effects on filtered pages.

The rest of uploaded files work ok.

Thanks in advanced for your help!!!

Best Regards,

Toni
Maskezapatos.com

July 10, 2015 at 8:40 pm #42041

Hi,

we actually have the same issue.
We would like to download the attachements, but its impossible.
How can we get on to the solution?

Cheers, Daniel

October 6, 2015 at 1:25 pm #43374

Is this solution (header file and piece of code) is applicable for BurnEngine theme?
I’ve got the same issue with broken hover and MFP.

December 4, 2016 at 10:14 am #53946

@ostashenkods

Have you applied all the steps described here:

http://support.themeburn.com/topic/mega-filter-pro-plus

BR,
ThemeBurn team

December 7, 2016 at 12:59 am #54055
Viewing 7 posts - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.