Jump to content

Recommended Posts

Hi,  In prestashop dashboard I have some links that displaying only in dashboard of customer login. I want the links to be displayed in all the module my account  page. How to display it. In that some of links also present..

 

For Example, In case if the user was in my wishliat page. the same links which are appear in the my wishlist page also. Please help me. Thanks in advance.

Link to comment
Share on other sites

ok i understand

modification like that need a little tweaking,

in this case you have to modify the address.tpl file located in your theme

 

add there additional <div> with included 

<ul class="myaccount_lnk_list">
	{if $has_customer_an_address}
	<li><a href="{$link->getPageLink('address', true)|escape:'html'}" title="{l s='Add my first address'}"><img src="{$img_dir}icon/addrbook.gif" alt="{l s='Add my first address'}" class="icon" /> {l s='Add my first address'}</a></li>
	{/if}
	<li><a href="{$link->getPageLink('history', true)|escape:'html'}" title="{l s='Orders'}"><img src="{$img_dir}icon/order.gif" alt="{l s='Orders'}" class="icon" /> {l s='Order history and details '}</a></li>
	{if $returnAllowed}
		<li><a href="{$link->getPageLink('order-follow', true)|escape:'html'}" title="{l s='Merchandise returns'}"><img src="{$img_dir}icon/return.gif" alt="{l s='Merchandise returns'}" class="icon" /> {l s='My merchandise returns'}</a></li>
	{/if}
	<li><a href="{$link->getPageLink('order-slip', true)|escape:'html'}" title="{l s='Credit slips'}"><img src="{$img_dir}icon/slip.gif" alt="{l s='Credit slips'}" class="icon" /> {l s='My credit slips'}</a></li>
	<li><a href="{$link->getPageLink('addresses', true)|escape:'html'}" title="{l s='Addresses'}"><img src="{$img_dir}icon/addrbook.gif" alt="{l s='Addresses'}" class="icon" /> {l s='My addresses'}</a></li>
	<li><a href="{$link->getPageLink('identity', true)|escape:'html'}" title="{l s='Information'}"><img src="{$img_dir}icon/userinfo.gif" alt="{l s='Information'}" class="icon" /> {l s='My personal information'}</a></li>
	{if $voucherAllowed}
		<li><a href="{$link->getPageLink('discount', true)|escape:'html'}" title="{l s='Vouchers'}"><img src="{$img_dir}icon/voucher.gif" alt="{l s='Vouchers'}" class="icon" /> {l s='My vouchers'}</a></li>
	{/if}
	{$HOOK_CUSTOMER_ACCOUNT}
</ul>

if you want to use HOOK_CUSTOMER_ACCOUNT remember to define it in controller.

or just use hook::exec function

Link to comment
Share on other sites

×
×
  • Create New...