mhu100 Posted April 24, 2017 Share Posted April 24, 2017 (edited) 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 April 24, 2017 by mhu100 (see edit history) Link to comment Share on other sites More sharing options...
c64girl Posted April 24, 2017 Share Posted April 24, 2017 (edited) 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 April 24, 2017 by c64girl (see edit history) Link to comment Share on other sites More sharing options...
mhu100 Posted April 24, 2017 Author Share Posted April 24, 2017 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. Link to comment Share on other sites More sharing options...
c64girl Posted April 24, 2017 Share Posted April 24, 2017 (edited) 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 April 24, 2017 by c64girl (see edit history) Link to comment Share on other sites More sharing options...
mhu100 Posted April 24, 2017 Author Share Posted April 24, 2017 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 More sharing options...
c64girl Posted April 24, 2017 Share Posted April 24, 2017 What ps version You using and do You use some template or default ? Link to comment Share on other sites More sharing options...
mhu100 Posted April 24, 2017 Author Share Posted April 24, 2017 What ps version You using and do You use some template or default ? Default template. Version 1.6.1.6 Link to comment Share on other sites More sharing options...
c64girl Posted April 24, 2017 Share Posted April 24, 2017 (edited) It should show You the link if You disable cache in Your PS. Now i think cache add everything to one file. Search in Your .js files for 'fancyBox v2.1.5' but dont know if this only missing in loading. Edited April 24, 2017 by c64girl (see edit history) Link to comment Share on other sites More sharing options...
mhu100 Posted April 24, 2017 Author Share Posted April 24, 2017 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 More sharing options...
c64girl Posted April 24, 2017 Share Posted April 24, 2017 Try css because it loads same as .js not the same file did You try to disable cache ? Link to comment Share on other sites More sharing options...
mhu100 Posted April 24, 2017 Author Share Posted April 24, 2017 Try css because it loads same as .js not the same file did You try to disable cache ? Yes, I've tried disabled cache. No results. Link to comment Share on other sites More sharing options...
c64girl Posted April 24, 2017 Share Posted April 24, 2017 (edited) 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 April 24, 2017 by c64girl (see edit history) Link to comment Share on other sites More sharing options...
mhu100 Posted April 24, 2017 Author Share Posted April 24, 2017 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 Link to comment Share on other sites More sharing options...
c64girl Posted April 25, 2017 Share Posted April 25, 2017 (edited) 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 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 April 25, 2017 by c64girl (see edit history) Link to comment Share on other sites More sharing options...
mhu100 Posted April 25, 2017 Author Share Posted April 25, 2017 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 More sharing options...
c64girl Posted April 25, 2017 Share Posted April 25, 2017 I think You will find it soon. You need to only experiment with loading the .js and .css files using php. I am 100% sure some file missing some lines to load the files You need. Link to comment Share on other sites More sharing options...
mhu100 Posted April 25, 2017 Author Share Posted April 25, 2017 (edited) 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 April 25, 2017 by mhu100 (see edit history) Link to comment Share on other sites More sharing options...
c64girl Posted April 25, 2017 Share Posted April 25, 2017 Good. Hope this topic will help someone to fix the problem Link to comment Share on other sites More sharing options...
mhu100 Posted April 25, 2017 Author Share Posted April 25, 2017 Good. Hope this topic will help someone to fix the problem Me to! Link to comment Share on other sites More sharing options...
mhu100 Posted April 25, 2017 Author Share Posted April 25, 2017 Can someone mark this topic as [solved]? Thanks. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now