Okay
  Public Ticket #1880192
header links
Closed

Comments

  • bams started the conversation

    hello, please how can i edit the header links as shown in the attached picture.

    i've followed the instruction on here Root\themes\name_theme\modules\ps_customersignin\ps_customersignin.tplbut i'm unable to find ps_customersignin\ps_customersignin.tpl

    regards

  •  1,588
    Criss replied

    Hi bams ,

    Sorry,

    This is a 1.6 theme so they are:

    root / themes / name_theme / modules / blockuserinfo / nav.tpl

    Best Regards,
    Criss - FieldThemes

  • bams replied

    hello Edna,

    many thanks for the info provided.

    however, i'm unable to change the details as when i do i get a controller issue as i'm a newbie.


    the code on the nav as instructed is:


    <!-- Block user information module NAV  -->
    <div id="mobile_links">
        <div class="current"><span class="cur-label">{l s='My account' mod='blockuserinfo'}</span></div>
        <ul id="header_links">            
            {$context = Context::getContext()}     
            <li>
                <a class="link-aboutus" href="{$link->getPageLink('order', true)|escape:'html'}" title="{l s='about us' mod='blockuserinfo'}">{l s='about us' mod='blockuserinfo'}</a>
            </li>
            <li>
                <a class="link-blog" href="{$link->getPageLink('order', true)|escape:'html'}" title="{l s='blog' mod='blockuserinfo'}">{l s='blog' mod='blockuserinfo'}</a>
            </li>
            <li>
                <a href="{$link->getPageLink('contact', true)|escape:'html':'UTF-8'}" title="{l s='Contact Us' mod='blockuserinfo'}">{l s='Contact us' mod='blockuserinfo'}</a>
            </li>
            <li>
                <a class="link-FAQ" href="{$link->getPageLink('order', true)|escape:'html'}" title="{l s='FAQ' mod='blockuserinfo'}">{l s='FAQ' mod='blockuserinfo'}</a>
            </li>
            <li>
                <a class="link-myaccount" href="{$link->getPageLink('my-account', true)|escape:'html'}" title="{l s='My Account' mod='blockuserinfo'}"><i class="icon-user"></i>  {l s='My Account' mod='blockuserinfo'}</a>
            </li>
            <li>
                <a class="link-wishlist wishlist_block" href="{$context->link->getModuleLink('blockwishlist', 'mywishlist')}" title="{l s='Wishlist' mod='blockuserinfo'}"><i class="icon-heart"></i>  {l s='Wishlist' mod='blockuserinfo'}</a>
            </li>

            {if $logged}
                <li>
                    <a href="{$link->getPageLink('my-account', true)|escape:'html':'UTF-8'}" title="{l s='View my customer account' mod='blockuserinfo'}" class="account" rel="nofollow"><i class="icon-lock"></i>  {l s='Hi' mod='blockuserinfo'}, {$cookie->customer_firstname} {$cookie->customer_lastname}! </a>
                </li>
                <li class="last">
                    <a class="link-out" href="{$link->getPageLink('index', true, NULL, "mylogout")|escape:'html'}" title="{l s='Log out' mod='blockuserinfo'}"  rel="nofollow">{l s='Logout' mod='blockuserinfo'}</a>
                </li>
            {else}

            {/if}
        </ul>
    </div>
    <!-- /Block usmodule NAV -->



    i'm trying to edit the about us, blog and faq which all point to order.


    i've created a cms page to reflect this which the url is /info/about-us, /info/faq and /info/smartblog.html


    what variables can i use to remedy this,


    regards

    bams


  •  1,588
    Criss replied

    Hi bams ,

    Please try them with the way to get cms links as follows:

    $link->getCMSLink('pagenamehere')

    eg:

    <li>
                <a class="link-..." href="$link->getCMSLink('pagenamehere')|escape:'html'" title="{l s='pagenamehere' mod='blockuserinfo'}">{l s='pagenamehere' mod='blockuserinfo'}</a>
            </li>
    

    Best Regards,
    Criss - FieldThemes

  • bams replied

    Hi Edna,


    that didn't work but i've been playing with it for over 24hrs and managed to sort it out.

    the link that worked for me is :


    <li>
                <a href="info/about-us" class="link-about us" title="{l s='About us' mod='blockuserinfo'}">{l s='About us' mod='blockuserinfo'}</a>
            </li>


    many thanks for your assistance.

    bams


  •  1,588
    Criss replied

    Hi bams ,

    they may be wrong when you use url of 2 location classes like:
    domain / shop / ....

    Best Regards,
    Criss - FieldThemes