Randaal Posted April 7, 2014 Share Posted April 7, 2014 Hey everyone!After every few days of using the shop I have to manually clear cache because these two tabs appear to be visible at the same time as someone views the home page. I suppose it is a bug because that shouldn't be happenig, right? Has anyone else had the same problem? 1 Link to comment Share on other sites More sharing options...
roz Posted April 8, 2014 Share Posted April 8, 2014 i just experienced that today. i think it's a bug.. hope there's fix to it somewhere.. Link to comment Share on other sites More sharing options...
dename Posted April 8, 2014 Share Posted April 8, 2014 Confirm the bug! didn't know it could be helped with cache clear. Link to comment Share on other sites More sharing options...
nathanielleee Posted April 28, 2014 Share Posted April 28, 2014 This has been a huge issue for me. Its not just the home tabs, but everything that has a tab. Meaning if you have the categories block enabled, all categories are open at the same time. Usually at 12:00 i would have to manually refresh or else the issue starts again. Link to comment Share on other sites More sharing options...
nathanielleee Posted May 7, 2014 Share Posted May 7, 2014 no one has a solution for this? its getting really tedious to have yo clear the cache twice/day. Link to comment Share on other sites More sharing options...
Randaal Posted May 7, 2014 Author Share Posted May 7, 2014 Yup, same here Link to comment Share on other sites More sharing options...
falkor Posted May 8, 2014 Share Posted May 8, 2014 Hello guys,I've added html5 data attribute data-counter="{$active_li}" To every single tab.tpl like here {counter name=active_li assign=active_li} <li data-counter="{$active_li}"{if $active_li == 1} class="active"{/if}><a data-toggle="tab" href="#blockbestsellers" class="blockbestsellers">{l s='Best Sellers' mod='blockbestsellers'}</a></li> To check $active_li smarty value, and it solved this problem, it's probably some problem with cache of templates.Templates to change:/themes/theme_name/modules/blockbestsellers/tab.tpl /themes/theme_name/modules/homefeatured/tab.tpl /themes/theme_name/modules/blocknewproducts/tab.tpl 2 Link to comment Share on other sites More sharing options...
elisa_34 Posted May 23, 2014 Share Posted May 23, 2014 I do confirm this bug...with the native modules and without the cache... Link to comment Share on other sites More sharing options...
alinstan Posted July 30, 2014 Share Posted July 30, 2014 I confirm the fix! Thank you falkor! Link to comment Share on other sites More sharing options...
sooroos Posted September 9, 2014 Share Posted September 9, 2014 i confirm that falkor's fix doesn't work Link to comment Share on other sites More sharing options...
vekia Posted September 9, 2014 Share Posted September 9, 2014 i already asked somewhere else, but: have you cleared shop cache and recompiled theme? Link to comment Share on other sites More sharing options...
Petter B Posted November 16, 2014 Share Posted November 16, 2014 i confirm that falkor's fix doesn't work The fix doesn´t work for me either.... Link to comment Share on other sites More sharing options...
PrestanceDesign Posted November 18, 2014 Share Posted November 18, 2014 (edited) Hi, The fix is to add the last version of index.js in your theme folder : https://github.com/PrestaShop/PrestaShop/blob/1.6/themes/default-bootstrap/js/index.js Mike P.S : Don't forget to clear the cache after that Edited November 18, 2014 by PrestanceDesign (see edit history) Link to comment Share on other sites More sharing options...
Petter B Posted November 18, 2014 Share Posted November 18, 2014 OK, I will try that. Thanks! Link to comment Share on other sites More sharing options...
Petter B Posted November 22, 2014 Share Posted November 22, 2014 Hi, The fix is to add the last version of index.js in your theme folder : https://github.com/PrestaShop/PrestaShop/blob/1.6/themes/default-bootstrap/js/index.js Mike P.S : Don't forget to clear the cache after that Sorry, it did not make it. Link to comment Share on other sites More sharing options...
PrestanceDesign Posted November 24, 2014 Share Posted November 24, 2014 (edited) Try to clear your cache broswer too. Edited November 24, 2014 by PrestanceDesign (see edit history) Link to comment Share on other sites More sharing options...
Petter B Posted November 24, 2014 Share Posted November 24, 2014 (edited) Did not make it. But everytime i clear cache in BO it is OK for a while. Now I have the Falkor fix in these 3 files/themes/theme_name/modules/blockbestsellers/tab.tpl /themes/theme_name/modules/homefeatured/tab.tpl /themes/theme_name/modules/blocknewproducts/tab.tpl Should I revert them to original? Edited November 24, 2014 by Petter B (see edit history) Link to comment Share on other sites More sharing options...
PrestanceDesign Posted November 24, 2014 Share Posted November 24, 2014 (edited) Yes, it's better to take the three last nav.tpl on github to avoid conflict with index.js : https://github.com/PrestaShop/PrestaShop/tree/1.6/themes/default-bootstrap/modules and clear cache... Edited November 24, 2014 by PrestanceDesign (see edit history) Link to comment Share on other sites More sharing options...
jcontrerasat Posted February 3, 2015 Share Posted February 3, 2015 Hi there! I had the same problem as you all but I coulnt solved it. What I did following PrestanceDesign instructions is copying the file from "httpdocs/themes/index.js" to the folder "httpdocs/themes". Is it what you mean we should do? Thank you very much for your help! Link to comment Share on other sites More sharing options...
PrestanceDesign Posted February 3, 2015 Share Posted February 3, 2015 (edited) Hi there! I had the same problem as you all but I coulnt solved it. What I did following PrestanceDesign instructions is copying the file from "httpdocs/themes/index.js" to the folder "httpdocs/themes". Is it what you mean we should do? Thank you very much for your help! Hi, You should copy/overwrite in httpdocs/themes/your_active_theme/js/index.js, clear cache and that it ! Edited February 3, 2015 by PrestanceDesign (see edit history) Link to comment Share on other sites More sharing options...
jcontrerasat Posted February 3, 2015 Share Posted February 3, 2015 Hi again! Thank you for replying that fast! Excuse my ignorance... But where do I get the index.js file from? I know I should copy it to this root: httpdocs/themes/your_active_theme/js/index.js but where do I get the file from? Thank you very much! Link to comment Share on other sites More sharing options...
PrestanceDesign Posted February 3, 2015 Share Posted February 3, 2015 Hi again! Thank you for replying that fast! Excuse my ignorance... But where do I get the index.js file from? I know I should copy it to this root: httpdocs/themes/your_active_theme/js/index.js but where do I get the file from? Thank you very much! In an older post above, you can find answer : https://www.prestashop.com/forums/topic/321685-home-page-popular-and-new-tabs-bug/?do=findComment&comment=1870800 Link to comment Share on other sites More sharing options...
jcontrerasat Posted February 3, 2015 Share Posted February 3, 2015 Ok. I created a index.js file with the link there and I copied it to the root you said. Im waiting for the night 00:00h to see if it works!. Thank you so much for you help! Link to comment Share on other sites More sharing options...
maniot Posted February 8, 2015 Share Posted February 8, 2015 Hi, I've the same problem. The first time i open the frontpage it shows "popular" and "special" as active, once i click on "new" evrything works as it should and there is only 1 tab active whatever tab i choose. If i refresh the page it shows 2 tabs active. I copied the index.js file into the themes/mytheme/js folder as suggested by PrestanceDesign and deactivated and cleared the cache and browser cache but that didn't solve the problem. This is what i have in my index.js file: $(document).ready(function(){ $('#home-page-tabs li:first, #index .tab-content ul:first').addClass('active'); }); I didn't change anything to my modules tpl files. Link to comment Share on other sites More sharing options...
jcontrerasat Posted February 23, 2015 Share Posted February 23, 2015 It didnt work for me either!. I hope someone could find a solution! Thank you very much to PrestanceDesign anyway. Link to comment Share on other sites More sharing options...
PrestanceDesign Posted February 23, 2015 Share Posted February 23, 2015 You're welcolme Jcontrerasat. Is it the default theme on your website ? You can PM your shop URL il you want so I will checking your code. Link to comment Share on other sites More sharing options...
jcontrerasat Posted February 23, 2015 Share Posted February 23, 2015 (edited) Yes, I have de default theme but I modified it. I send to you a private message with the url... Thank you very much for your help! Solved! Thank you so much to PrestanceDesign. He checked the site and sent to me the code to copy to the index.js file. I have been clearing cache everyday during 3 months... so Thank you so much! Edited February 25, 2015 by jcontrerasat (see edit history) 1 Link to comment Share on other sites More sharing options...
Recommended Posts