Jump to content

[Solved] <!-- Block user information module HEADER --> block apears two times.


Berraman
 Share

Recommended Posts

Hi

the <!-- Block user information module HEADER --> will apper twice in my shop and i cant finde where the bug is.
Someone who can give me a hint where the problem is??

At my site.

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



       Välkommen,
Logga in



Varukorg
0
produkt
produkter
(Tom)

Ditt konto


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







<!-- top_menulinks-->

<!-- top_line -->

                            
<!-- headerwrapper -->





Hem
Om oss
Våra villkor
Historian om tomtarna
Tillverkning
Sitemap
Kontakta oss


<!-- menulinks-->

<!-- topmenu -->




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



       Välkommen,
Logga in



Korg
ProduktProdukter

(Tom)

Ditt konto


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

<!-- submenu -->        



The Header.tpl

>    <body {if $page_name}id="{$page_name|escape:'htmlall':'UTF-8'}"{/if}>
   {if !$content_only}
</pre>
<ul>{l s='This shop requires JavaScript to run correctly. Please activate JavaScript in your browser.'}</ul>
<br><div>

           <!-- Header -->



               {$HOOK_TOP}







<!-- top_menulinks-->

<!-- top_line -->

                            
<!-- headerwrapper -->





Hem
Om oss
Våra villkor
Historian om tomtarna
Tillverkning
Sitemap
Kontakta oss


<!-- menulinks-->

<!-- topmenu -->




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



       {l s='Welome'},
       {if $logged}
{$customerName}({l s='Log out'})
       {else}
{l s='Log in'}
       {/if}



{l s='Cart:'}
{if $cart_qties > 0}{$cart_qties}{/if}{l s='product'}{l s='products'}
{if $cart_qties > 0}{if $priceDisplay == 1}{convertPrice price=$cart->getOrderTotal(false, 4)}{else}{convertPrice price=$cart->getOrderTotal(true, 4)}{/if}{/if}
{l s='(empty)'}

{l s='Your Account'}


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

<!-- submenu -->        


   <!--        
  {if $page_name == 'index'}   
  {else}<



Regards
Björn

Share this post


Link to post
Share on other sites

I am pretty sure that you are not using standard PrestaShop theme or you have made some changes in header.tpl file.

Usually the module block will be "hooked" automatically by {$HOOK_TOP} in the header.tpl. But I found that there is another hard coded user block code.

To fix the problem, you can either uninstall the user block info or remove the hard coded user block info(see attached image).

36854_rfVV2eghzLcaLmoJA7KG_t

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More