Alexanderleo Posted December 10, 2013 Share Posted December 10, 2013 (edited) Hello I got the site www.dinsticker.dk I want to remove the "Welcome and Log in". You can see it on this image: Edited December 11, 2013 by Alexanderleo (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted December 10, 2013 Share Posted December 10, 2013 disable block user info module in modules > modules tab in your back office. 1 Link to comment Share on other sites More sharing options...
Alexanderleo Posted December 10, 2013 Author Share Posted December 10, 2013 when I do this my search bar remove too. Link to comment Share on other sites More sharing options...
vekia Posted December 10, 2013 Share Posted December 10, 2013 it's almost impossible. maybe you've got some modifications of .tpl files? you modified something? 1 Link to comment Share on other sites More sharing options...
Alexanderleo Posted December 10, 2013 Author Share Posted December 10, 2013 Sorry. It was not the search bar. But the cart. You can see it now. Link to comment Share on other sites More sharing options...
vekia Posted December 11, 2013 Share Posted December 11, 2013 it's because short information about cart is also in this module. open file: modules/blockuserinfo/blockuserinfo.tpl file there is a code: <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> and: <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> just remove these lines 1 Link to comment Share on other sites More sharing options...
Alexanderleo Posted December 11, 2013 Author Share Posted December 11, 2013 I removed it so it is just this: {* * 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" {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} </ul> </div> <!-- /Block user information module HEADER --> But i did not help. Link to comment Share on other sites More sharing options...
vekia Posted December 11, 2013 Share Posted December 11, 2013 there are two possibilities1) cache - you shop display cached old version of this file, so please clear cache and recompile theme. Open adv. paramters > performance tab, there is an option to turn on force compile (turn it on temporarily), there is an button to clear cache too. 2) module file exists in theme directory. themes/YOUR_THEME/modules/blockuserinfo/blockuserinfo.tpl - if so, you have to modify this file 1 Link to comment Share on other sites More sharing options...
Alexanderleo Posted December 11, 2013 Author Share Posted December 11, 2013 It was option two. It was under my theme and it solved my problem. Thank you veika! Link to comment Share on other sites More sharing options...
vekia Posted December 11, 2013 Share Posted December 11, 2013 you're welcome i marked this topic as [solved] with regards, Milos Link to comment Share on other sites More sharing options...
geniushkg Posted September 14, 2014 Share Posted September 14, 2014 it's almost impossible. maybe you've got some modifications of .tpl files? you modified something? I have done it , just unhook quick serach from displaytop , you can even do it same for cart block if you wish Link to comment Share on other sites More sharing options...
vekia Posted September 15, 2014 Share Posted September 15, 2014 yeah i know, but he said that if he disabled block cart, the search block disappeared too. it's not possible in default theme, only in themes with some kind of modifications where block cart is connected with search block module Link to comment Share on other sites More sharing options...
Recommended Posts