Jump to content

Another Iframe Problem


mhu100

Recommended Posts

Please can someone help me with the all known iframe problem. I have read all about it (many hours!) in this forum but it's still not working on particular pages.

 

On the productpage it's working just fine.

 

Click on zzgl. Versand

 

but on the other pages like p.a. New Products or in Leftcolumnblocks it's not. Click on zzgl. Versand

 

 

What am I doing wrong? Really need this to work.

 

 

Thanks in advance!

Edited by mhu100 (see edit history)
Link to comment
Share on other sites

Please can someone help me with the all known iframe problem. I have read all about it (many hours!) in this forum but it's still not working on particular pages.

 

On the productpage it's working just fine.

 

Click on zzgl. Versand

 

but on the other pages like p.a. New Products or in Leftcolumnblocks it's not. Click on zzgl. Versand

 

 

What am I doing wrong? Really need this to work.

 

 

Thanks in advance!

 

It seems on page http://www.reitshopcuxland.de/shop/neue-Produkte the all scripts/css dont load. And the files that load are different.

 

 

On page that fancybox works is loaded:

<script type="text/javascript" src="http://www.reitshopcuxland.de/shop/themes/default-bootstrap/cache/v_57_89f069e0aac5d0449c51e705f8132f94.js">

 

On site that fancybox dont work is loaded:

<script type="text/javascript" src="http://www.reitshopcuxland.de/shop/themes/default-bootstrap/cache/v_57_ca72c1726d52aa0d6f67cfc942bee4ae.js">

Edited by c64girl (see edit history)
Link to comment
Share on other sites

c64Girl Thanks for your answer.

 

I know about the script problems but I don't know how to solve this or wich files to edit.

 

Go to using ftp ../themes/yourtheme/new-products.tpl

Edit it and add a line:

<script type="text/javascript" src="http://www.reitshopcuxland.de/shop/themes/default-bootstrap/cache/v_57_89f069e0aac5d0449c51e705f8132f94.js">

And check if something change. If nothing cahnge try to disable cache on Your PS.

Edited by c64girl (see edit history)
Link to comment
Share on other sites

Go to using ftp ../themes/yourtheme/new-products.tpl

Edit it and add a line:

<script type="text/javascript" src="http://www.reitshopcuxland.de/shop/themes/default-bootstrap/cache/v_57_89f069e0aac5d0449c51e705f8132f94.js">

And check if something change. If nothing cahnge try to disable cache on Your PS.

 

What is the original filename of the .js file that should be loaded?

Link to comment
Share on other sites

Go to using ftp ../themes/yourtheme/new-products.tpl

Edit it and add a line:

<script type="text/javascript" src="http://www.reitshopcuxland.de/shop/themes/default-bootstrap/cache/v_57_89f069e0aac5d0449c51e705f8132f94.js">

And check if something change. If nothing cahnge try to disable cache on Your PS.

 I have tried it with

 

<script type="text/javascript" src="/js/jquery/plugins/fancybox/jquery.fancybox.js">

<link rel="stylesheet" href="/js/jquery/plugins/fancybox/jquery.fancybox-1.3.4.css" type="text/css" media="screen" />

 

It returns a new-products page with no products in the right column.

 

In the left column block New Products the iframe is loading only not the way I want. I not sure but I think that's a css matter.

Link to comment
Share on other sites

Yes, I've tried disabled cache. No results.

 

When You disabled cache it still loads http://www.reitshopcuxland.de/shop/themes/default-bootstrap/cache/v_57_89f069e0aac5d0449c51e705f8132f94.js ?

Or seperated files of .js ?

 

If it loads same cache file You need to delete cache and clear temp files in PS back office.

 

Edited by c64girl (see edit history)
Link to comment
Share on other sites

When You disabled cache it still loads http://www.reitshopcuxland.de/shop/themes/default-bootstrap/cache/v_57_89f069e0aac5d0449c51e705f8132f94.js ?

Or seperated files of .js ?

 

If it loads same cache file You need to delete cache and clear temp files in PS back office.

 

It loaded seperated files after I cleared the cach and temp dirs.

 

I don't understand why this is still a major problem to a lot of people :mellow: 

Link to comment
Share on other sites

It loaded seperated files after I cleared the cach and temp dirs.

 

I don't understand why this is still a major problem to a lot of people :mellow:

 

Well it seems on some pages the files are loaded different thats why fancy not working on product page. It seems to be a bug because it should not happen. You need to find the right php and check why the files are loaded differently. Or just copy missing stuff from the css or js to css and js files that are loaded to product page.

 

controllers/front/CategoryController.php

controllers/front/ProductController.php

controllers/front/NewProductsController.php

 

I think but not 100% sure those file are responsible for loading the js and css. Check what files are loaded oin page that is ok and try to load them using php to those that script is not working. Remember to turn off cache and clean temp files etc before You make changes.

Edited by c64girl (see edit history)
Link to comment
Share on other sites

Well it seems on some pages the files are loaded different thats why fancy not working on product page. It seems to be a bug because it should not happen. You need to find the right php and check why the files are loaded differently. Or just copy missing stuff from the css or js to css and js files that are loaded to product page.

 

controllers/front/CategoryController.php

controllers/front/ProductController.php

controllers/front/NewProductsController.php

 

I think but not 100% sure those file are responsible for loading the js and css. Check what files are loaded oin page that is ok and try to load them using php to those that script is not working. Remember to turn off cache and clean temp files etc before You make changes.

My search continues.

 

Thank you very much for your input! If I find the solution I will tell you.

Link to comment
Share on other sites

I have found it!

 

On both files (controllers/front/NewProductsController.php) and (controllers/front/CategoryController.php) change the code from

    public function setMedia()
    {
        parent::setMedia();
        $this->addCSS(_THEME_CSS_DIR_.'product_list.css');
    }

to

public function setMedia()
    {
        parent::setMedia();
        $this->addCSS(_THEME_CSS_DIR_.'product_list.css');
        $this->addJqueryPlugin(array('fancybox', 'idTabs', 'scrollTo', 'serialScroll', 'bxslider'));
    }

To make it work on Startpage you have to edit the file controllers/front/IndexController.php too.

 

Change

        parent::initContent();
        $this->addJS(_THEME_JS_DIR_.'index.js');

to

        parent::initContent();
        $this->addJS(_THEME_JS_DIR_.'index.js');
        $this->addJqueryPlugin(array('fancybox', 'idTabs', 'scrollTo', 'serialScroll', 'bxslider'));

That will do the job!

Edited by mhu100 (see edit history)
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...