Prestashop Newbie17 Posted June 27, 2014 Share Posted June 27, 2014 hi, I have got problem with NewArrivals and popular links in a home page. both are highlighted/active and they are not working.. I av attached the image which tells abt the problem in detail.. Can any 1 help me with this?? Is it a cache problem in prestashop1.6? m not able to figure it out.. Help me to solve this issue Thanks in advance. Newbie Link to comment Share on other sites More sharing options...
Paulito Posted June 28, 2014 Share Posted June 28, 2014 Hello It might be a silly question but, you have these blocks in: displayHomeTab and displayHomeTabContent http://screencast.com/t/ts6dsAPA Paul Link to comment Share on other sites More sharing options...
vekia Posted June 29, 2014 Share Posted June 29, 2014 hello try with this github commit open: themes/default-bootstrap/modules/blockbestsellers/tab.tpl change: {counter name=active_li assign=active_li} <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: <li><a data-toggle="tab" href="#blockbestsellers" class="blockbestsellers">{l s='Best Sellers' mod='blockbestsellers'}</a></li> then open: themes/default-bootstrap/modules/blocknewproducts/tab.tpl change: {counter name=active_li assign=active_li} <li{if $active_li == 1} class="active"{/if}><a data-toggle="tab" href="#blocknewproducts" class="blocknewproducts">{l s='New arrivals' mod='blocknewproducts'}</a></li> to: <li><a data-toggle="tab" href="#blocknewproducts" class="blocknewproducts">{l s='New arrivals' mod='blocknewproducts'}</a></li> then open: themes/default-bootstrap/modules/homefeatured/tab.tpl change: {counter name=active_li assign=active_li} <li{if $active_li == 1} class="active"{/if}><a data-toggle="tab" href="#homefeatured" class="homefeatured">{l s='Popular' mod='homefeatured'}</a></li> to: <li><a data-toggle="tab" href="#homefeatured" class="homefeatured">{l s='Popular' mod='homefeatured'}</a></li> hope this will work :-) 1 Link to comment Share on other sites More sharing options...
Prestashop Newbie17 Posted June 30, 2014 Author Share Posted June 30, 2014 hello try with this github commit open: themes/default-bootstrap/modules/blockbestsellers/tab.tpl change: {counter name=active_li assign=active_li} <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: <li><a data-toggle="tab" href="#blockbestsellers" class="blockbestsellers">{l s='Best Sellers' mod='blockbestsellers'}</a></li> then open: themes/default-bootstrap/modules/blocknewproducts/tab.tpl change: {counter name=active_li assign=active_li} <li{if $active_li == 1} class="active"{/if}><a data-toggle="tab" href="#blocknewproducts" class="blocknewproducts">{l s='New arrivals' mod='blocknewproducts'}</a></li> to: <li><a data-toggle="tab" href="#blocknewproducts" class="blocknewproducts">{l s='New arrivals' mod='blocknewproducts'}</a></li> then open: themes/default-bootstrap/modules/homefeatured/tab.tpl change: {counter name=active_li assign=active_li} <li{if $active_li == 1} class="active"{/if}><a data-toggle="tab" href="#homefeatured" class="homefeatured">{l s='Popular' mod='homefeatured'}</a></li> to: <li><a data-toggle="tab" href="#homefeatured" class="homefeatured">{l s='Popular' mod='homefeatured'}</a></li> hope this will work :-) Hi, I av to remove this line "i{if $active_li == 1} class="active"{/if}>"in all the tpl files is it .. Thanks Newbie Link to comment Share on other sites More sharing options...
vekia Posted June 30, 2014 Share Posted June 30, 2014 yesss so, you removed and what's going on? Link to comment Share on other sites More sharing options...
jjryeste Posted July 20, 2014 Share Posted July 20, 2014 Hello vekia,i have one problem , to me homepage http://www.punto-de-cruz.es/ to enter the first time , new blocks, and sellers are marked and also below the new products, featured products are.. if you click on gets good news, but if you refresh the page or you click on start, same thing happens again. it may be happening. Thank you, Regards Link to comment Share on other sites More sharing options...
vekia Posted July 22, 2014 Share Posted July 22, 2014 have you tried to alter files as i stated above? Link to comment Share on other sites More sharing options...
jjryeste Posted July 24, 2014 Share Posted July 24, 2014 yes i have change tab.tpl archives Link to comment Share on other sites More sharing options...
vekia Posted July 25, 2014 Share Posted July 25, 2014 at the moment there are 2 possibilities: 1) your store displays old cached version of the files, you have to clear cache and recompile theme 2) you modified files located in /modules/ directory, not in /themes/default-bootstrap/modules/ Link to comment Share on other sites More sharing options...
jjryeste Posted July 25, 2014 Share Posted July 25, 2014 oh oh, one question archives tab.tpl is change in themes/default-bootstrap/modules/ and changes in blocknewproducts.php homefeatured.php in /modules/ directory i clear cache and recompile theme, ok i have and other problem when I give advanced parameters, information page is blank Link to comment Share on other sites More sharing options...
vekia Posted July 25, 2014 Share Posted July 25, 2014 turn on error reporting, after that try to open page you mentioned instead of white page you will see detailed information about issue you've got. Link to comment Share on other sites More sharing options...
jjryeste Posted July 25, 2014 Share Posted July 25, 2014 Hello Vekia, if in cache performance is off works perfectly, news, and popular and are random if in cache performance is on, not found Link to comment Share on other sites More sharing options...
vekia Posted July 26, 2014 Share Posted July 26, 2014 im lost now so it works or not? you said that you've got blank page so i asked about errors, do you see them? Link to comment Share on other sites More sharing options...
jjryeste Posted August 4, 2014 Share Posted August 4, 2014 not , is other question when I give advanced parameters, information page is blank Link to comment Share on other sites More sharing options...
sooroos Posted September 9, 2014 Share Posted September 9, 2014 hello try with this github commit open: themes/default-bootstrap/modules/blockbestsellers/tab.tpl change: {counter name=active_li assign=active_li} <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: <li><a data-toggle="tab" href="#blockbestsellers" class="blockbestsellers">{l s='Best Sellers' mod='blockbestsellers'}</a></li> then open: themes/default-bootstrap/modules/blocknewproducts/tab.tpl change: {counter name=active_li assign=active_li} <li{if $active_li == 1} class="active"{/if}><a data-toggle="tab" href="#blocknewproducts" class="blocknewproducts">{l s='New arrivals' mod='blocknewproducts'}</a></li> to: <li><a data-toggle="tab" href="#blocknewproducts" class="blocknewproducts">{l s='New arrivals' mod='blocknewproducts'}</a></li> then open: themes/default-bootstrap/modules/homefeatured/tab.tpl change: {counter name=active_li assign=active_li} <li{if $active_li == 1} class="active"{/if}><a data-toggle="tab" href="#homefeatured" class="homefeatured">{l s='Popular' mod='homefeatured'}</a></li> to: <li><a data-toggle="tab" href="#homefeatured" class="homefeatured">{l s='Popular' mod='homefeatured'}</a></li> hope this will work :-) just tried on 1.6.0.6 and it doesn't work on the home page all the products appear together and no tab is highlighted Link to comment Share on other sites More sharing options...
vekia Posted September 9, 2014 Share Posted September 9, 2014 you recompiled theme after these changes ? Link to comment Share on other sites More sharing options...
sooroos Posted September 9, 2014 Share Posted September 9, 2014 yes, i did, and clearing the cache is only temporary solution Link to comment Share on other sites More sharing options...
Recommended Posts