Jump to content

[SOLVED] Problem with blockuserinfo


Recommended Posts

I got a problem with blockuserinfo translation. My Prestashop version is 1.5.6.1 and my template is this one http://www.templatemonster.com/demo/47522.html

I've tried everything but I couldn't translate the login button. I've checked Translations ==> Installed modules translations ==> My theme, but I cannot translate it. I've disabled cache and force compilation on but nothing. Translations only display when you leave the cursor on the login and I want to translate the word.

Does anyone know what to do? I'm completely stuck.

Thanks.

Edited by jaimegomez (see edit history)
Link to comment
Share on other sites

<!-- Block user information module HEADER -->

 

<section class="blockuserinfo header-box">

 

{if $logged}

 

<a href="{$link->getPageLink('index', true, NULL, "mylogout")|escape:'html'}" class="logout" ><span title="{l s='Log out' mod='blockuserinfo'}">Logout</span></a>

 

{else}

 

<a href="{$link->getPageLink('my-account', true)|escape:'html'}"  class="login" ><span title="{l s='Login' mod='blockuserinfo'}">Login</span></a>

 

{/if}

 

</section>

 

 

 

<section id="header_user" class="blockuserinfo-cart header-box {if $PS_CATALOG_MODE}header_user_catalog{/if}">

 

{if !$PS_CATALOG_MODE}

 

<div id="shopping_cart">

 

        <a href="{$link->getPageLink($order_process, true)|escape:'html'}" title="{l s='View my shopping cart' mod='blockuserinfo'}" rel="nofollow">

 

          <i class="opancart icon-chevron-sign-down"></i>

 

                <span class="shopping_cart_title">{l s='Cart' mod='blockuserinfo'}</span>

 

                <span class="ajax_cart_quantity" {if $cart_qties == 0} style="display:none"{/if}>{$cart_qties}</span>

 

                <!--span class="ajax_cart_product_txt{if $cart_qties != 1} hidden{/if}">{l s='Product' mod='blockuserinfo'}</span>

 

                <span class="ajax_cart_product_txt_s{if $cart_qties < 2} hidden{/if}">{l s='Products' mod='blockuserinfo'}</span-->

 

                 {*<span class="price ajax_cart_total" {if $cart_qties == 0} style="display:none;"{/if}>

 

{if $cart_qties > 0}

 

{if $priceDisplay == 1}

 

{assign var='blockuser_cart_flag' value='Cart::BOTH_WITHOUT_SHIPPING'|constant}

 

{convertPrice price=$cart->getOrderTotal(false, $blockuser_cart_flag)}

 

{else}

 

{assign var='blockuser_cart_flag' value='Cart::BOTH_WITHOUT_SHIPPING'|constant}

 

{convertPrice price=$cart->getOrderTotal(true, $blockuser_cart_flag)}

 

{/if}

 

{/if}                  

 

                </span>*}

 

                <span class="ajax_cart_no_product" {if $cart_qties > 0} style="display:none;"{/if}>{l s='(empty)' mod='blockuserinfo'}</span>

 

            </a>

 

</div>

 

{/if}

 

</section>

post-341931-0-60047400-1391784953_thumb.jpg

Link to comment
Share on other sites

Hi

 

you need to change this

{if $logged}
 
<a href="{$link->getPageLink('index', true, NULL, "mylogout")|escape:'html'}" class="logout" ><span title="{l s='Log out' mod='blockuserinfo'}">{l s='Logout' mod='blockuserinfo'}</span></a>
 
{else}
 
<a href="{$link->getPageLink('my-account', true)|escape:'html'}"  class="login" ><span title="{l s='Login' mod='blockuserinfo'}">{l s='Login' mod='blockuserinfo'}</span></a>
 
{/if}
Link to comment
Share on other sites

Thanks, both. Firstly I could solve everything modifying blockuserinfo.tpl as webdev0008 has indicated. Before that, when I tried to translate this module in back office the changes didn't appear in front office, even though I could save that translations.

Vekia if you're interested to find out the reason and you need something, just let me know. SOLVED

Link to comment
Share on other sites

×
×
  • Create New...