pinguinodigital09O Posted May 19, 2013 Share Posted May 19, 2013 (edited) Hola, se me ha perdido el bloque de login y registro como lo recupero__? Muchas gracias Edited May 19, 2013 by delarosan1 (see edit history) Link to comment Share on other sites More sharing options...
nadie Posted May 19, 2013 Share Posted May 19, 2013 Hola, se me ha perdido el bloque de login y registro como lo recupero__? Muchas gracias Seguramente sea por que hayas desactivado o desinstalado el modulo llamado: Bloque de informacion personal Link to comment Share on other sites More sharing options...
pinguinodigital09O Posted May 19, 2013 Author Share Posted May 19, 2013 lo tenia desactivado, como puedo moverlo al hook derecho? me dice que no puedo.. Link to comment Share on other sites More sharing options...
nadie Posted May 19, 2013 Share Posted May 19, 2013 lo tenia desactivado, como puedo moverlo al hook derecho? me dice que no puedo.. En el fichero: /modules/blockuserinfo/blockuserinfo.php Busca esto: public function hookTop($params) { if (!$this->active) return; $this->smarty->assign(array( 'cart' => $this->context->cart, 'cart_qties' => $this->context->cart->nbProducts(), 'logged' => $this->context->customer->isLogged(), 'customerName' => ($this->context->customer->logged ? $this->context->customer->firstname.' '.$this->context->customer->lastname : false), 'firstName' => ($this->context->customer->logged ? $this->context->customer->firstname : false), 'lastName' => ($this->context->customer->logged ? $this->context->customer->lastname : false), 'order_process' => Configuration::get('PS_ORDER_PROCESS_TYPE') ? 'order-opc' : 'order' )); return $this->display(__FILE__, 'blockuserinfo.tpl'); } Y debajo añade: public function hookDisplayRightColumn($params) { return $this->hookTop($params); } public function hookDisplayLeftColumn($params) { return $this->hookTop($params); } Asi luego podras moverlo tanto a la columna derecha, como a la columna izquierda desde la pestaña modulos -> posiciones -> boton verde llamado "Trasladar Modulo". Link to comment Share on other sites More sharing options...
pinguinodigital09O Posted May 19, 2013 Author Share Posted May 19, 2013 vale ya lo tengo pero... se queda un poco feo, como puedo ponerlo mas bonito?? gracias Link to comment Share on other sites More sharing options...
pinguinodigital09O Posted May 19, 2013 Author Share Posted May 19, 2013 (edited) mira como queda... www.tucortina.es Queda muy mal.. que puedo hacer..? Edited May 19, 2013 by delarosan1 (see edit history) Link to comment Share on other sites More sharing options...
nadie Posted May 19, 2013 Share Posted May 19, 2013 mira como queda... www.tucortina.es Queda muy mal.. que puedo hacer..? Tampoco exageremos. Tienes que borrar el carrito de ese bloque, por que tu ya lo tienes en el lateral de por si. Fichero: http://tucortina.es/themes/default/modules/blockuserinfo/blockuserinfo.tpl Busca esto: {* * 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 --> <div id="header_user"> <ul id="header_nav"> {if !$PS_CATALOG_MODE} <li id="shopping_cart"> <a href="{$link->getPageLink($order_process, true)}" 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)}" 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)}" 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")}" 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)}" 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 --> y dejalo asi: {* * 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 --> <div id="bloquenadie" class="block exclusive"> <p id="header_user_info"> {l s='Welcome' mod='blockuserinfo'} {if $logged} <a href="{$link->getPageLink('my-account', true)}" 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")}" 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)}" 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 --> Despues, ve al fichero: http://tucortina.es/themes/default/css/global.css y añade esto: #bloquenadie { margin-bottom: 50px; } 1 Link to comment Share on other sites More sharing options...
pinguinodigital09O Posted May 19, 2013 Author Share Posted May 19, 2013 no encuentro el archivo http://tucortina.es/themes/default/modules/blockuserinfo/blockuserinfo.tpl Link to comment Share on other sites More sharing options...
nadie Posted May 19, 2013 Share Posted May 19, 2013 no encuentro el archivo http://tucortina.es/...ockuserinfo.tpl Entonces, directamente el: /modules/blockuserinfo/blockuserinfo.tpl Aunque es recomendable que hagas un override dicho fichero, en la ruta que te he comentado. 1 Link to comment Share on other sites More sharing options...
pinguinodigital09O Posted May 19, 2013 Author Share Posted May 19, 2013 okk ya casi esta listo ahora se ve mucho mas bonito pero le falta un poco de margen por debajo. Se ve que no lo ha cogido bien. he copiado lo de #bloquenadie abajo del todo de el fichero global.css No se si lo habre hecho bien... Muchas gracias Link to comment Share on other sites More sharing options...
pinguinodigital09O Posted May 19, 2013 Author Share Posted May 19, 2013 vale ya esta solucionado! perfecto. Link to comment Share on other sites More sharing options...
nadie Posted May 19, 2013 Share Posted May 19, 2013 vale ya esta solucionado! perfecto. Perfecto ! Un placer ayudarte y servirte! Un saludo y recuerda que estaremos en el foro, para guiarte por este mundo oscuro y tenebroso. Link to comment Share on other sites More sharing options...
Recommended Posts