Jump to content

How remove My Account from Sitemap link?


Recommended Posts

  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

  • 7 months later...

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 by dimmat (see edit history)
Link to comment
Share on other sites

×
×
  • Create New...