Prestashop. Как изменить копирайт и ссылки в футере

Этот туториал покажет, как изменить копирайт и ссылки в футере в шаблоне PrestaShop.

Для начала нужно выяснить, использует ли ваш движок модуль футете по умолчанию, либо же пользовательский модуль.

В админ-панели откройте Modules > Position (модули — позиции) и проверьте модули с позицией Footer

 

Блоки по умолчанию: Блок CMS Block & Various Links

В зависимости от версии PrestaShop ссылки футера можно найти в двух файлах:

 

Prestashop 1.4

1. Откройте папку с инсталляцией

2. Откройте файл modules\blockcms\blockcms.tpl любым текстовым/PHP редактором

3. Отредактируйте следующий код:


 <!-- MODULE Block footer -->
<ul class="block_various_links" id="block_various_links_footer">
{if !$PS_CATALOG_MODE}<li class="first_item"><a href="{$link->getPageLink('prices-drop.php')}" title="{l s='Specials' mod='blockcms'}">{l s='Specials' mod='blockcms'}</a></li>{/if}
<li class="{if $PS_CATALOG_MODE}first_{/if}item"><a href="{$link->getPageLink('new-products.php')}" title="{l s='New products' mod='blockcms'}">{l s='New products' mod='blockcms'}</a></li>
{if !$PS_CATALOG_MODE}<li class="item"><a href="{$link->getPageLink('best-sales.php')}" title="{l s='Top sellers' mod='blockcms'}">{l s='Top sellers' mod='blockcms'}</a></li>{/if}
{if $display_stores_footer}<li class="item"><a href="{$link->getPageLink('stores.php')}" title="{l s='Our stores' mod='blockcms'}">{l s='Our stores' mod='blockcms'}</a></li>{/if}
<li class="item"><a href="{$link->getPageLink('contact-form.php', true)}" title="{l s='Contact us' mod='blockcms'}">{l s='Contact us' mod='blockcms'}</a></li>
{foreach from=$cmslinks item=cmslink}
{if $cmslink.meta_title != ''}
<li class="item"><a href="{$cmslink.link|addslashes}" title="{$cmslink.meta_title|escape:'htmlall':'UTF-8'}">{$cmslink.meta_title|escape:'htmlall':'UTF-8'}</a></li>
{/if}
{/foreach}
<li class="last_item">{l s='Powered by' mod='blockcms'} <a href="http://www.prestashop.com">PrestaShop</a>&trade;</li>
</ul>
<!-- /MODULE Block footer -->

Каждое меню, как и копирайт, находятся на отдельной строчке, разделенные тегами <li>…</li>

 

Prestashop 1.3

1. Откройте папку с инсталляцией

2. Откройте файл modules\blockvariouslinks\blockvariouslinks.tpl любым текстовым/PHP редактором

3. Отредактируйте следующий код:


<!-- MODULE Block various links -->
  <ul class="block_various_links" id="block_various_links_footer">
<li class="first_item"><a href="{$base_dir}prices-drop.php" title="">{l s='Specials' mod='blockvariouslinks'}</a></li>
<li class="item"><a href="{$base_dir}new-products.php" title="">{l s='New products' mod='blockvariouslinks'}</a></li>
<li class="item"><a href="{$base_dir}best-sales.php" title="">{l s='Top sellers' mod='blockvariouslinks'}</a></li>
<li class="item"><a href="{$base_dir_ssl}contact-form.php" title="">{l s='Contact us' mod='blockvariouslinks'}</a></li>
{foreach from=$cmslinks item=cmslink}
<li class="item"><a href="{$cmslink.link|addslashes}" title="{$cmslink.meta_title|escape:'htmlall':'UTF-8'}">{$cmslink.meta_title|escape:'htmlall':'UTF-8'}</a></li>
{/foreach}
<li class="last_item">{l s='Powered by' mod='blockvariouslinks'} <a href="http://www.prestashop.com">PrestaShop</a>&trade;</li>
</ul>
<!-- /MODULE Block various links -->

Каждое меню, как и копирайт, находятся на отдельной строчке, разделенные тегами <li>…</li>

 

Пользовательские модули

1. Откройте папку с инсталляцией

2. Откройте файл modules\tmfooterlinks\tmfooterlinks.tpl любым текстовым/PHP редактором

3. Отредактируйте следующий код:

<p>&copy;2011 {l s='Powered by' mod='tmfooterlinks'} <a href="http://www.prestashop.com">PrestaShop</a>&trade;. All rights reserved</p>

 

Prestashop. Как изменить копирайт и ссылки в футере, 3.0 out of 5 based on 4 ratings
  • Carlosyams45

    I could not remove (Footer links and copyright notification in Prestashop)

    I have the latest update 1.4.3
    I have a themes

    I tried everything but I can not change it … please help

    thank you very much

    • Аноним

      You may also try to edit the modulestmfooterlinkstmfooterlinks.tpl file

  • paulo costa

    hello, I have prestashop 1.4.4.0, bought template_34732, and this methods dont work.

    i’ve edited modulestmfooterlinkstmfooterlinks.tpl / modulesblockcmsblockcms.tpl and several other files to test, but nothing works

    plz help.

  • http://peruenvia.com Lou

    I looked in footer.tpl , cmsblock.tpl, tmfooterlinks.tpl both in modules and themes folder and nothing works. I just cant get rid of this footer. It should be disabled by default.