Jump to content
  • 0

Zamiana tabów w standardowy widok - defautl bootstrap theme


SylviaDizzi

Question

Witajcie.

Zamieniłam taby na widok standardowy dodając w index.tpl coś takiego

{if !empty($HOOK_HOME_TAB_CONTENT)} <div class="block col-xs-12 col-sm-12"> {$HOOK_HOME_TAB_CONTENT} </div> {/if}

No i super - taby zniknęły i mam niby jeden moduł pod drugim, ale pojawił się problem innego pokroju, gdyż teraz mam komunikaty typu "Brak promowanych produktów w tym momencie" podczas gdy takie produkty istnieją. Więcej komunikatów na screenie http://pl.tinypic.com/r/2czelpd/9

 

Ktoś wie w czym tkwi problem?

 

Dzięki za pomoc :)

 

 

 

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 1

Już sprawdziłem i wiem co powodowało taki błąd, moduły jednak muszą zostać podpięte do hooka homeTab natomiast w pliku index.tpl zostaw taki kod:

 

{*
* 2007-2016 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to [email protected] so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
*  @author PrestaShop SA <[email protected]>
*  @copyright  2007-2016 PrestaShop SA
*  @license    http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
*  International Registered Trademark & Property of PrestaShop SA
*}
{if !empty($HOOK_HOME_TAB_CONTENT)} <div class="block col-xs-12 col-sm-12"> {$HOOK_HOME_TAB_CONTENT} </div> {/if}

{if isset($HOOK_HOME) && $HOOK_HOME|trim}
	<div class="clearfix">{$HOOK_HOME}</div>
{/if}
Jeśli chcesz aby były nagłówki to np. dla modułu blockbestsellers musisz edytować plik blockbestselers-home.tpl i przed:

 

	{include file="$tpl_dir./product-list.tpl" products=$best_sellers class='blockbestsellers tab-pane' id='blockbestsellers'}
dodaj sobie tekst z nagłówkiem bloku, może to wyglądać np tak:

<h4 class="title_block">
    	<a href="{$link->getPageLink('best-sales')|escape:'html'}" title="{l s='View a top sellers products' mod='blockbestsellers'}">{l s='Top sellers' mod='blockbestsellers'}</a>
    </h4>
	{include file="$tpl_dir./product-list.tpl" products=$best_sellers class='blockbestsellers tab-pane' id='blockbestsellers'}
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...