Jump to content

Ayuda! Colocar nombre de Usuario al ingresar a la cuenta


santysos

Recommended Posts

Hola que tal...

 

Tengo un problema al momento en el que los usuarios ingresan a sus cuentas.

 

Imagen 1. La web muestra la opcion de ingresar o crear cuenta.

 

Imagen 2. Al momento de ingresar un usuario a su cuenta, aparece la palabra "SALIR" y me gustaria que mostrara el nombre del usuario que acaba de ingresar como lo muestro en la Imagen 3.

 

 

 

Utilizo prestashop 1.5.4.1 con un tema de templatemonster.

 

en la carpeta /themes/theme681/modules/blockuserinfo/blockuserinfo.tpl

 

el codigo es el siguiente

 

{*

* 2007-2013 PrestaShop

*

* NOTICE OF LICENSE

*

* This source file is subject to the Academic Free License (AFL 3.0)

* that is bundled with this package in the file LICENSE.txt.

* It is also available through the world-wide-web at this URL:

* http://opensource.org/licenses/afl-3.0.php

* If you did not receive a copy of the license and are unable to

* obtain it through the world-wide-web, please send an email

* to [email protected] so we can send you a copy immediately.

*

* DISCLAIMER

*

* Do not edit or add to this file if you wish to upgrade PrestaShop to newer

* versions in the future. If you wish to customize PrestaShop for your

* needs please refer to http://www.prestashop.com for more information.

*

* @author PrestaShop SA <[email protected]>

* @copyright 2007-2013 PrestaShop SA

* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)

* International Registered Trademark & Property of PrestaShop SA

*}

 

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

<section class="blockuserinfo header-box">

{if $logged}

<a href="{$link->getPageLink('index', true, NULL, "mylogout")}" title="{l s='Log out' mod='blockuserinfo'}" class="logout" rel="tooltip" data-placement="bottom" data-original-title="first tooltip">{l s='Log out' mod='blockuserinfo'}</a>

{else}

<a href="{$link->getPageLink('my-account', true)}" title="{l s='Login' mod='blockuserinfo'}" class="login" rel="tooltip" data-placement="bottom" data-original-title="first tooltip">{l s='Login' mod='blockuserinfo'}</a>

{/if}

</section>

 

<section id="header_user" class="blockuserinfo-cart header-box">

{if !$PS_CATALOG_MODE}

<div id="shopping_cart">

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

<strong class="opancart"></strong>

<span class="shopping_cart_title"></span>

<span class="ajax_cart_quantity{if $cart_qties == 0} hidden{/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} hidden{/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} hidden{/if}">0</span>

</a>

</div>

{/if}

</section>

 

 

y no se donde tengo que modificar....

 

muchas gracias de antemano por su ayuda...

post-651374-0-44031100-1377209675_thumb.jpg

post-651374-0-06287100-1377209677_thumb.png

post-651374-0-49830900-1377209678_thumb.png

Link to comment
Share on other sites

Fijate que en la plantilla por defecto, el fichero:

 

/themes/default/modules/blockuserinfo/blockuserinfo.tpl

 

Tienes esto:

 

<!-- Block user information module HEADER -->
<div id="header_user" {if $PS_CATALOG_MODE}class="header_user_catalog"{/if}>
<ul id="header_nav">
 {if !$PS_CATALOG_MODE}
 <li id="shopping_cart">
  <a href="{$link->getPageLink($order_process, true)|escape:'html'}" title="{l s='View my shopping cart' mod='blockuserinfo'}" rel="nofollow">{l s='Cart' mod='blockuserinfo'}
  <span class="ajax_cart_quantity{if $cart_qties == 0} hidden{/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="ajax_cart_total{if $cart_qties == 0} hidden{/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} hidden{/if}">{l s='(empty)' mod='blockuserinfo'}</span>
  </a>
 </li>
 {/if}
 <li id="your_account"><a href="{$link->getPageLink('my-account', true)|escape:'html'}" title="{l s='View my customer account' mod='blockuserinfo'}" rel="nofollow">{l s='Your Account' mod='blockuserinfo'}</a></li>
</ul>
<p id="header_user_info">
 {l s='Welcome' mod='blockuserinfo'}
 {if $logged}
  <a href="{$link->getPageLink('my-account', true)|escape:'html'}" title="{l s='View my customer account' mod='blockuserinfo'}" class="account" rel="nofollow"><span>{$cookie->customer_firstname} {$cookie->customer_lastname}</span></a>
  <a href="{$link->getPageLink('index', true, NULL, "mylogout")|escape:'html'}" title="{l s='Log me out' mod='blockuserinfo'}" class="logout" rel="nofollow">{l s='Log out' mod='blockuserinfo'}</a>
 {else}
  <a href="{$link->getPageLink('my-account', true)|escape:'html'}" title="{l s='Login to your customer account' mod='blockuserinfo'}" class="login" rel="nofollow">{l s='Login' mod='blockuserinfo'}</a>
 {/if}
</p>
</div>
<!-- /Block user information module HEADER -->

 

Donde aquí:

 

{$cookie->customer_firstname} {$cookie->customer_lastname}

 

imprimes el nombre y apellido del usuario.

  • Like 1
Link to comment
Share on other sites

Muchas gracias nadie tu siempre con las soluciones...

ya realice el cambio y lo deje así

 

 

{if $logged}

<p id="header_user_info">

{l s='Welcome' mod='blockuserinfo'}

<a href="{$link->getPageLink('my-account', true)|escape:'html'}" title="{l s='View my customer account' mod='blockuserinfo'}" class="account" rel="nofollow"><span>{$cookie->customer_firstname} {$cookie->customer_lastname}</span></a>

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

{else}

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

{/if}

 

 

pero el formato de la palabra "bienvenido" cambio y la palabra "salir" esta muy junta al apellido.. adjunto imagen

 

cmwo.png

 

Saludos

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...