Prestashop 1.6,在页脚

时间:2015-07-31 11:15:53

标签: php prestashop prestashop-1.6

我想在页脚中创建一个包含链接的新块cms:新产品,最佳产品,促销活动

如何修改我的帐号块/页脚?

1 个答案:

答案 0 :(得分:0)

You should find .tpl file like blockms.tpl:

Path: themes/name_of_your_theme/modules/blockcms/blockcms.tpl

That's the source in default theme.

Imagine that you want to add one extra link after "Our stores"...

You should find:

{if $display_stores_footer}
    <li class="item">
        <a href="{$link->getPageLink('stores')|escape:'html':'UTF-8'}" title="{l s='Our stores' mod='blockcms'}">
            {l s='Our stores' mod='blockcms'}
        </a>
    </li>
{/if}

and add in next line something like:

{if $display_stores_footer}
    <li class="item">
        <a href="http://domain.com/lorem_ipsum" title="{l s='Lorem Ipsum' mod='blockcms'}">
            {l s='Lorem Ipsum' mod='blockcms'}
        </a>
    </li>
{/if}

New products, best sales and promotions are enabled by default (via CMS block module): enter image description here