thilip.xandy Posted February 25, 2014 Share Posted February 25, 2014 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 More sharing options...
vekia Posted February 25, 2014 Share Posted February 25, 2014 can you elaborate a bit more where exactly you want to display these links? you want to display them as a block? or what? Link to comment Share on other sites More sharing options...
thilip.xandy Posted February 26, 2014 Author Share Posted February 26, 2014 (edited) Hi Vekia: In customer dash board we are having the links like, my profile my wishlist etc.. for example if the user is in my Address page in left side check with the result image with this thread, from that you can come to know that what I need. Edited February 26, 2014 by thilip.xandy (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted February 26, 2014 Share Posted February 26, 2014 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 More sharing options...
Recommended Posts