Jump to content

Bestsellers showing only on ../best-sales


tomikk

Recommended Posts

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 by tomikk (see edit history)
Link to comment
Share on other sites

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

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 by tomikk (see edit history)
Link to comment
Share on other sites

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:

post-796244-0-44289000-1480532117_thumb.jpg

Edited by tomikk (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...