tomikk Posted November 22, 2016 Share Posted November 22, 2016 (edited) Hi, I can display bestsellers only on page ./best-sales but when I want to show them on homepage in tabbed content: Featured products / New products / Sale / Best sales Nothing is showing. Code below is displaying well featured, new products, sale but no bestsellers. Can you tell where to search, why they are not showing? It's Prestashop 1.6.1.7. {if $bestseller} <div class="tab-pane" id="{$myTab}bestseller"> {$products=$bestseller} {$tabname="{$myTab}-bestseller"} {include file='./products.tpl'} </div> {/if} Edited November 22, 2016 by tomikk (see edit history) Link to comment Share on other sites More sharing options...
Daresh Posted November 22, 2016 Share Posted November 22, 2016 Check if the module is hooked to the displayHome and displayHomeTab hooks. If not, hook it there. If you display bestsellers in the left column, I also recommend the Advanced Best Sellers module to make them display in a much smarter way. Link to comment Share on other sites More sharing options...
tomikk Posted November 22, 2016 Author Share Posted November 22, 2016 This tabbed widget is combined with the theme. Block bestsellers is hooked to Home, HomeTab and HomeTabContent. Still not showing. I don't know why new products and products on sale display well but bestsellers showing blank space. Link to comment Share on other sites More sharing options...
endriu107 Posted November 22, 2016 Share Posted November 22, 2016 Moved to english forum. Link to comment Share on other sites More sharing options...
Daresh Posted November 22, 2016 Share Posted November 22, 2016 Hard to tell without performing some debug on the shop... Link to comment Share on other sites More sharing options...
tomikk Posted November 23, 2016 Author Share Posted November 23, 2016 (edited) When I look into the files, in block bestsellers I see: {if isset($best_sellers) && $best_sellers} {include file="$tpl_dir./product-list.tpl" products=$best_sellers class='blockbestsellers tab-pane' id='blockbestsellers'} {else} This block displays products on homepage (after hooks). But for example in theme files, tabbed module there is: {if $featured} <div class="tab-pane" id="{$myTab}featured"> {$products=$featured} {$tabname="{$myTab}-featured"} {include file='./products.tpl'} </div> {/if} {if $newproducts} <div class="tab-pane" id="{$myTab}newproducts"> {$products=$newproducts} {$tabname="{$myTab}-newproducts"} {include file='./products.tpl'} </div> {/if} {if $special} <div class="tab-pane" id="{$myTab}special"> {$products=$special}{$tabname="{$myTab}-special"} {include file='./products.tpl'} </div> {/if} {if $bestseller} <div class="tab-pane" id="{$myTab}bestseller"> {$products=$bestseller} {$tabname="{$myTab}-bestseller"} {include file='./products.tpl'} </div> {/if} All products display as well, only bestsellers are empty... Can you help me where to search to fix it? I tried to change $bestseller to $best_sellers according to block bestsellers but with no luck. Edited November 23, 2016 by tomikk (see edit history) Link to comment Share on other sites More sharing options...
tomikk Posted November 30, 2016 Author Share Posted November 30, 2016 (edited) I would appreciate any help with this. How prestashop 1.6.0.7 define bestsellers? In code above what should I check, why there are not displaying bestsellers? $bestseller? Or maybe ther is something to look in products.tpl (I could not find anything to combine with this)... There are no bestsales showing in displayHome, but when I attached this module to displayHomeTabContent, there are showing. Take a look: Edited November 30, 2016 by tomikk (see edit history) 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