Jump to content

[SOLVED] Which module is that text in?


Recommended Posts

I'm trying, as ever, to set up a working Prestashop site.

 

In the default layout, there's a big black box in the footer. It contains a column labelled "Information", which includes Specials, New Products, Top Sellers, followed by the CMS data -- Home, About Us, Legal, Terms & Conditions, etc.

 

Now, I've found the module responsible for that whole block, which is called "CMS Block" unsurprisingly. However, there are no settings to stop it displaying "Specials, New Products, Top Sellers".

 

Even if I turn OFF the Specials module, it still says Specials in that list (and clicking on it gives a blank page).

 

How can I get rid of these links? If I disable the CMS Block module, they disappear, but there is no way of configuring them in the CMS Block itself.

 

I attach a screenshot, where I've circled the items that I can't find any way of configuring.

 

Thanks

post-96942-0-05201200-1377955508_thumb.png

Edited by vekia (see edit history)
Link to comment
Share on other sites

Good morning

 

I think the only way to stop these links showing is by editing the .tpl file with {* COMMENT OUT*}

 

Sorry can't remember exact file as I am not at home

 

If no one else gives you answer I will in about 2 hours

 

Hope this helps

 

Paul

Link to comment
Share on other sites

They are hard coded so you can not remove them from back office.

 

You have to edit file blockcms.tpl in root/your_theme/modules/blockcms/ (or if that don't exist in root/modules/blockcms).

Code t remove is

  {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='Best sellers' mod='blockcms'}">{l s='Best sellers' mod='blockcms'}</a></li>{/if}

 

Edit: yes Paul was first :-)

Edited by razaro (see edit history)
  • Like 1
Link to comment
Share on other sites

this is block cms module, you have to comment these lines:

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

 

EDIT: ahh razaro you were first :)

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