danny_dh83 Posted October 30, 2012 Share Posted October 30, 2012 (edited) How remove My Account from Sitemap link? Because i don't need cart block in my website. thanks Edited October 30, 2012 by danny_dh83 (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted October 30, 2012 Share Posted October 30, 2012 On 10/30/2012 at 10:06 AM, danny_dh83 said: How remove My Account from Sitemap link? Because i don't need cart block in my website. thanks you can block it in robots.txt file, but i don't know what you exactly want. Why you want to delete it from sitemap? by "sitemap" you mean xml file ? Link to comment Share on other sites More sharing options...
danny_dh83 Posted October 30, 2012 Author Share Posted October 30, 2012 (edited) I just want to delete My Account link from sitemap. Can you explain that? Because i don't need user registration. Thanks Edited October 30, 2012 by danny_dh83 (see edit history) Link to comment Share on other sites More sharing options...
dimmat Posted June 14, 2013 Share Posted June 14, 2013 (edited) You have to edit sitemap.tpl file in prestashop/themes/your_theme_name/sitemap.tpl and comment out the following block of code: <div class="sitemap_block"> <h3>{l s='Your Account'}</h3> <ul> {if $logged} <li><a href="{$link->getPageLink('my-account', true)}" title="{l s='Manage your customer account'}" rel="nofollow">{l s='Your Account'}</a></li> <li><a href="{$link->getPageLink('identity', true)}" title="{l s='Manage your personal information'}" rel="nofollow">{l s='Personal information'}</a></li> <li><a href="{$link->getPageLink('addresses', true)}" title="{l s='View a list of my addresses'}" rel="nofollow">{l s='Addresses'}</a></li> {if $voucherAllowed}<li><a href="{$link->getPageLink('discount', true)}" title="{l s='View a list of my discounts'}" rel="nofollow">{l s='Discounts'}</a></li>{/if} <li><a href="{$link->getPageLink('history', true)}" title="{l s='View a list of my orders'}" rel="nofollow">{l s='Order history'}</a></li> {else} <li><a href="{$link->getPageLink('authentication', true)}" title="{l s='Authentication'}" rel="nofollow">{l s='Authentication'}</a></li> <li><a href="{$link->getPageLink('authentication', true)}" title="{l s='Create new account'}"rel="nofollow">{l s='Create new account'}</a></li> {/if} {if $logged} <li><a href="{$link->getPageLink('index')}?mylogout" title="{l s='Log out'}" rel="nofollow">{l s='Log out'}</a></li> {/if} </ul> </div> Edited June 14, 2013 by dimmat (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted June 14, 2013 Share Posted June 14, 2013 you don't have to modify the core of prestashop...you can block it with robots.txt file Link to comment Share on other sites More sharing options...
Recommended Posts