Jump to content

Removing footer links (Specials, New products, Top sellers)


Recommended Posts

In the end of modules/blockcms/blockcms.tpl you can see the code that displays these links.

Try commenting out the code you don't want, ie

{*
	{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="first_item"><a href="{$link->getPageLink('contact-form.php', true)}" title="{l s='Contact us' mod='blockcms'}">{l s='Contact us' mod='blockcms'}</a></li>

Note that I changed class from "item" to "first_item" for the (new) first link (to remove the pipe |).

 

/Mats

  • Like 1
Link to comment
Share on other sites

I would like to remove Specials and Top sellers, and have tried to delete the following two lines, but nothing has changed:

 

{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}

 

{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}

 

Any ideas what I can do?

 

Many Thanks

Link to comment
Share on other sites

Did you turn off cache etc in BO (Preferences, Performance, Force Compile: YES + Cache: NO)?

 

/Mats

 

Ahh, yes that has solved it. Thank you! There is a message in the BO saying that Cache should be turned on though.

 

The only issue now is that there's a | symbol to the left. of the footer links. Do you know which bit of the file I need to delete to remove this?

Link to comment
Share on other sites

"Note that I changed class from "item" to "first_item" for the (new) first link (to remove the pipe |)."

"first_item" should be the first and "last_item" last to get the pipes right.

Once it looks OK, turn cache back on and force compile back off, or you will have avery slow site :-)

 

/Mats

Link to comment
Share on other sites

I have this in the tpl file:

 

 

<!-- MODULE Block footer -->

<ul class="block_various_links" id="block_various_links_footer">

<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>

<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}

</ul>

<!-- /MODULE Block footer -->

{/if}

 

I tried to change the bit highlighted to first_item, removing the {/if} but I just ended up without a website.

 

Sorry for all the questions.

 

Many Thanks

Link to comment
Share on other sites

Eh, sorry.

replace

<li class="{if $PS_CATALOG_MODE}first_{/if}item">

with

<li class="first_item">

dunno what happens if not in $PS_CATALOG_MODE though...

 

/Mats

 

Excellent, I replaced the line above and it worked.

 

Thank you.

Link to comment
Share on other sites

  • 3 weeks later...

I am having the same issue getting rid of those links in the footer including specials, new products, top sellers and our stores. I made sure of the settings with cache and deleted the files from modules/blockcms/blockcms.tpl but still they show. Any help would be much appreciated.

 

Also, I don't understand why this section can't be built into the backend of this cart. It seems like such an obvious thing.

Link to comment
Share on other sites

  • 1 month later...

Hello ,

I am facing the same problem and follow all the instruction before with this result... but they remain in the footer..

cachesettings and refesh are ok

desperate looking toi remove this-..

regards,

david

 

{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="first_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="first_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}

Link to comment
Share on other sites

  • 3 weeks later...

@ daviddive007

 

please delete the following code from what u have posted above

 

 

 

<a href="{$link->getPageLink('prices-drop.php')}" title="{l s='Specials' mod='blockcms'}">{l s='Specials' mod='blockcms'}</a></li>{/if}

<li class="first_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}

 

 

 

detelte this from the code and viola problem solved.

Link to comment
Share on other sites

  • 4 months later...

Hi

I can't remove (Specials, New products, Top sellers, Contact) from footer, in PrestaShop 1.4.7.0 version, i try to remove from blockcms.tpl but not work, in this version blockvariouslink not found (was replaced with blockcms).

 

Please help me.

Link to comment
Share on other sites

  • 8 months later...
  • 4 months later...

8.4.2013 [sOLVED]Removing Footer Links In v1.5.4

 

make changes /httpdocs/themes/default/modules/blockcms in blockcms.tpl

 

links you want to hide make those lines as a comment <!-- -->

 

<!--{if !$PS_CATALOG_MODE}<li class="first_item"><a href="{$link->getPageLink('prices-drop')}" 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')}" 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')}" title="{l s='Top sellers' mod='blockcms'}">{l s='Top sellers' mod='blockcms'}</a></li>{/if} -->

 

 

upload the file refesh your FO page and enjoy!

  • Like 5
Link to comment
Share on other sites

  • 1 month later...
  • 6 months later...

hello

 

prestashop is an opensource software. Everyone of us, simple merchants, programmers, ps lovers and everyone else have got possibility to develop features and include them to the official release (via github)

 

it looks like not everyone were interested to develop this feature, i suppose (and it's only my opinion) due to the fact, that modification of tpl file is much easier than modification of module core to develop feature like that.

Link to comment
Share on other sites

  • 2 weeks later...

Hellos,

My Specials,new product, store links are not working while in URL rewrite,

This page is not available .

any one got that issue?

 

thanks

Hi,

I have a similar problem.

Did you manage to solve it. If so please guide me

 

Thanks

 

Farukh

Link to comment
Share on other sites

  • 1 month later...

Solution for 1.5.6.1 solved

To remove, Specials, Best Sellers, and SiteMap Try this code root/themes/default/modules/blockcms/blockcms.tpl at line 46

 

 

 

<!-- MODULE Block footer -->
<div class="block_various_links" id="block_various_links_footer">
<p class="title_block">{l s='Information' mod='blockcms'}</p>
<ul>
<!--{if !$PS_CATALOG_MODE}<li class="first_item"><a href="{$link->getPageLink('prices-drop')}" 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')}" 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')}" 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')}" title="{l s='Our stores' mod='blockcms'}">{l s='Our stores' mod='blockcms'}</a></li>{/if}
<li class="item"><a href="{$link->getPageLink($contact_url, 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><a href="{$link->getPageLink('sitemap')}" title="{l s='sitemap' mod='blockcms'}">{l s='Sitemap' mod='blockcms'}</a></li>-->
{if $display_poweredby}<li class="last_item">{l s='Powered by' mod='blockcms'} <a class="_blank" href="http://www.prestashop.com">PrestaShop</a>™</li>{/if}
</ul>
{$footer_text}
</div>
<!-- /MODULE Block footer -->

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...