gracenote Posted June 21, 2014 Share Posted June 21, 2014 Hi, my name is Michelle. I'm new here. *waves hello* Prestashop is awesome. Setting up my shop has been quite the adventure in learning. It's amazing what Prestashop + a little determination + google can do to get things done. I'm running into a problem in regards to removing links from my footer.. This is the footer: https://www.dropbox.com/s/9hi9u5y1eupn870/screenshot1.png I want to get rid of the following links: Specials, Best sellers, New Products As you can see here, I have them unchecked in the Configure CMS Block Module: https://www.dropbox.com/s/nfitn3cdjwshbhs/screenshot2.png Am I going about this the wrong way? I'm lost! Also, I'm not quite sure how to get rid of the link to "SEO from Move Marketing" from the very bottom edge of the site. Any thoughts? Thank you for your time and patience with a newbie! -Michelle Link to comment Share on other sites More sharing options...
Paulito Posted June 21, 2014 Share Posted June 21, 2014 Hello Sometimes this does not work, I don't know why, anyway to resolve your problem go to: Your Shop/themes/default-bootstrap/modules/blockcms/blockcms.tpl and round line 73 {*Comment out*} these lines of code <!-- MODULE Block footer --> <section class="footer-block col-xs-12 col-sm-2" id="block_various_links_footer"> <h4>{l s='Information' mod='blockcms'}</h4> <ul class="toggle-footer"> {if !$PS_CATALOG_MODE} {*<li class="first_item"> <a href="{$link->getPageLink('prices-drop')|escape:'html':'UTF-8'}" 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':'UTF-8'}" 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':'UTF-8'}" 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')|escape:'html':'UTF-8'}" title="{l s='Our stores' mod='blockcms'}"> {l s='Our stores' mod='blockcms'} </a> </li> {/if} Result http://screencast.com/t/UXudRlutcx Paul 2 Link to comment Share on other sites More sharing options...
gracenote Posted June 21, 2014 Author Share Posted June 21, 2014 Didn't work for me. I've never "commented out" code before. I looked at tutorial on how to do it. Perhaps I messed up there? Below is the code for the module. Thanks Paul! {* * 2007-2014 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-2014 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 $block == 1} <!-- Block CMS module --> {foreach from=$cms_titles key=cms_key item=cms_title} <div id="informations_block_left_{$cms_key}" class="block informations_block_left"> <h4 class="title_block"> <a href="{$cms_title.category_link|escape:'html'}">{if !empty($cms_title.name)}{$cms_title.name}{else}{$cms_title.category_name}{/if}</a> </h4> <ul class="block_content"> {foreach from=$cms_title.categories item=cms_page} {if isset($cms_page.link)} <li class="bullet"> <b style="margin-left:2em;"> <a href="{$cms_page.link|escape:'html'}" title="{$cms_page.name|escape:html:'UTF-8'}">{$cms_page.name|escape:html:'UTF-8'}</a> </b> </li> {/if} {/foreach} {foreach from=$cms_title.cms item=cms_page} {if isset($cms_page.link)} <li> <a href="{$cms_page.link|escape:'html'}" title="{$cms_page.meta_title|escape:html:'UTF-8'}">{$cms_page.meta_title|escape:html:'UTF-8'}</a> </li> {/if} {/foreach} {if $cms_title.display_store} <li> <a href="{$link->getPageLink('stores')|escape:'html'}" title="{l s='Our stores' mod='blockcms'}">{l s='Our stores' mod='blockcms'}</a> </li> {/if} </ul> </div> {/foreach} <!-- /Block CMS module --> {else} <!-- MODULE Block footer --> <div class="block_various_links" id="block_various_links_footer"> <h4 class="title_block">{l s='Information' mod='blockcms'}</h4> <ul> {if $show_price_drop && !$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} {if $show_new_products} <li class="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} {if $show_best_sales && !$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} {if $display_stores_footer} <li class="item"> <a href="{$link->getPageLink('stores')|escape:'html'}" title="{l s='Our stores' mod='blockcms'}">{l s='Our stores' mod='blockcms'}</a> </li> {/if} {if $show_contact} <li class="item"> <a href="{$link->getPageLink($contact_url, true)|escape:'html'}" title="{l s='Contact us' mod='blockcms'}">{l s='Contact us' mod='blockcms'}</a> </li> {/if} {foreach from=$cmslinks item=cmslink} {if $cmslink.meta_title != ''} <li class="item"> <a href="{$cmslink.link|addslashes|escape:'html'}" title="{$cmslink.meta_title|escape:'html':'UTF-8'}">{$cmslink.meta_title|escape:'html':'UTF-8'}</a> </li> {/if} {/foreach} {if $show_sitemap} <li> <a href="{$link->getPageLink('sitemap')|escape:'html'}" title="{l s='Sitemap' mod='blockcms'}">{l s='Sitemap' mod='blockcms'}</a> </li> {/if} {if $display_poweredby} <li class="last_item">{l s='[1]Ecommerce software by %s[/1]' mod='blockcms' sprintf=['PrestaShop™'] tags=['<a class="_blank" href="http://www.prestashop.com">']}</li> {/if} </ul> {$footer_text} </div> <!-- /MODULE Block footer --> {/if} Link to comment Share on other sites More sharing options...
cjrhoads Posted June 21, 2014 Share Posted June 21, 2014 I could be wrong, but I think Paul expected you to know how to comment something out. It's pretty tedius, so he I think he might have just used the {* and *} to show you which lines to comment out - I don't think those characters are actually the "comment out" characters. It's a little complicated, because the comment out characters differ between HTML and CSS files. In a CSS file the comment code is: /* comment */, and you cannot comment out more than one section at a time (i.e. you can't nest comments). But in an HTML file, the comment code is: <!-- comment --> I think (I'm no expert) that you can nest comments in html files <!-- here is one comment <!-- here is a nested comment --> --> If that is true (and someone who really knows this stuff will have to verify it) then Paul wanted you to put in this: {if !$PS_CATALOG_MODE} <!-- <li class="first_item"> and then go down and put in this: </li> --> {/if} That would have commented out the whole section inside the "IF" command. Of course, I could be totally wrong - I'm not a programmer. But that's what I would have interpreted his statement to mean. What I don't understand is how that would impact the footer. Unless I'm misunderstanding, this seems to be code related to when the shop is in catalog mode. But perhaps your shop IS in catalog mode. We will have to wait for Paul to explain, I think. I wish I could be more help. CJ Link to comment Share on other sites More sharing options...
Paulito Posted June 21, 2014 Share Posted June 21, 2014 Hello again You have used <!-- --> I have just done this again using <!-- --> and it works http://screencast.com/t/1B1rj5pvuy You have made these changes to the correct CMS module, their are two Paul Link to comment Share on other sites More sharing options...
gracenote Posted June 21, 2014 Author Share Posted June 21, 2014 (edited) Hmmmm.... I'm stumped. As you can see, I merely replaced Paul's {* and *} with these comment symbols I pulled up from an online tutorial, <!-- --> (I assumed that's what I was supposed to do.) Anyway, I pasted that particular chunk of code below that I added the symbols to. Thanks guys! I really appreciate your help. <!-- MODULE Block footer --> <div class="block_various_links" id="block_various_links_footer"> <h4 class="title_block">{l s='Information' mod='blockcms'}</h4> <ul> {if $show_price_drop && !$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} {if $show_new_products} <li class="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} {if $show_best_sales && !$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} {if $display_stores_footer} Edited June 21, 2014 by gracenote (see edit history) Link to comment Share on other sites More sharing options...
Paulito Posted June 21, 2014 Share Posted June 21, 2014 Hello again and you have changed the correct CMS module? Paul Link to comment Share on other sites More sharing options...
gracenote Posted June 21, 2014 Author Share Posted June 21, 2014 Hi Paul, The module I have been using is BLOCKCMS The file I made changes to is: blockcms.tpl -Michelle Link to comment Share on other sites More sharing options...
Paulito Posted June 21, 2014 Share Posted June 21, 2014 Hello the reason I ask is that their are two CMS modules Your Shop/modules/blockcms/blockcms.tpl (incorrect) Your Shop/themes/default-bootstrap/modules/blockcms/blockcms.tpl (correct) Paul Link to comment Share on other sites More sharing options...
gracenote Posted June 21, 2014 Author Share Posted June 21, 2014 Oh! Wow! I think that's my problem.... let me verify... hopefully I will return with a good report! Link to comment Share on other sites More sharing options...
gracenote Posted June 21, 2014 Author Share Posted June 21, 2014 Awesome!! That was my mistake right there... I had edited the wrong module! Thanks Paul for your time and patience with me and for helping me resolve this. Have a great day! Link to comment Share on other sites More sharing options...
Recommended Posts