[Solved] Welcome message doesn't change when user is logged
11 posts
• Page 1 of 1
[Solved] Welcome message doesn't change when user is logged
Hello guys, I hope somebody can help me with this.
I have the following store: http://www.play-room.com.ar
When a user is logged in, the welcome message in the header still looks like the user is not logged in.
If you are not logged in, the message says: "Welcome, you can log in or create an account" it's OK!
But, if you're logged in already, the welcome text message looks like this: "Welcome, you can log in or create an account", It should be say something like : "welcome Maria" or, "you are logged in as Maria"
It always say "welcome, you can log in or create an account"
I have another template, not default.
Can someone help me with this?
I will appreciate it a lot!
Sorry for my poor english.
Regards.
I have the following store: http://www.play-room.com.ar
When a user is logged in, the welcome message in the header still looks like the user is not logged in.
If you are not logged in, the message says: "Welcome, you can log in or create an account" it's OK!
But, if you're logged in already, the welcome text message looks like this: "Welcome, you can log in or create an account", It should be say something like : "welcome Maria" or, "you are logged in as Maria"
It always say "welcome, you can log in or create an account"
I have another template, not default.
Can someone help me with this?
I will appreciate it a lot!
Sorry for my poor english.
Regards.
Last edited by elvarto on Thu Jul 19, 2012 12:11 am, edited 1 time in total.
- elvarto
- Posts: 4
- Joined: Sun Jul 15, 2012 6:02 pm
Re: Welcome Message doesn't change when user is logged in
Is this a custom theme?
If i have helped... please click here to donate
Bookstore (book store) mod
Template Override - Category Specific (vQmod)
Template Override - Brand Specific (vQmod)
How did you find out about us register question mod
Compulsory Login vQmod
zoom - Product Image - Auto on hover
Latest website
http://www.modehandcare.co.nz/hand-dryers/
Bookstore (book store) mod
Template Override - Category Specific (vQmod)
Template Override - Brand Specific (vQmod)
How did you find out about us register question mod
Compulsory Login vQmod
zoom - Product Image - Auto on hover
Latest website
http://www.modehandcare.co.nz/hand-dryers/
-

Jeremy Fisk - Posts: 924
- Joined: Thu Nov 11, 2010 10:11 am
- Location: New Zealand (Masterton, Wairarapa)
Re: Welcome Message doesn't change when user is logged in
Re: Is this a custom theme?
Its obvious that it is!
Its called "computerstore" and its running on v1.5.1.3
Its obvious that it is!
Its called "computerstore" and its running on v1.5.1.3
-

mcamca - Posts: 149
- Joined: Fri Aug 06, 2010 9:57 am
Re: Welcome Message doesn't change when user is logged in
Ok, attach your header.tpl file in the from your theme in a post on this forum and i'll edit it for free for you
Cheers
jem
Cheers
jem
If i have helped... please click here to donate
Bookstore (book store) mod
Template Override - Category Specific (vQmod)
Template Override - Brand Specific (vQmod)
How did you find out about us register question mod
Compulsory Login vQmod
zoom - Product Image - Auto on hover
Latest website
http://www.modehandcare.co.nz/hand-dryers/
Bookstore (book store) mod
Template Override - Category Specific (vQmod)
Template Override - Brand Specific (vQmod)
How did you find out about us register question mod
Compulsory Login vQmod
zoom - Product Image - Auto on hover
Latest website
http://www.modehandcare.co.nz/hand-dryers/
-

Jeremy Fisk - Posts: 924
- Joined: Thu Nov 11, 2010 10:11 am
- Location: New Zealand (Masterton, Wairarapa)
Re: Welcome Message doesn't change when user is logged in
Jeremy Fisk wrote:Ok, attach your header.tpl file in the from your theme in a post on this forum and i'll edit it for free for you
Cheers
jem
Hi Jem, thanks a lot!! here you go:
- Code: Select all
<?php if($this->config->get('computerstore_status') == '1'){ ?>
<style type="text/css">
<?php if($this->config->get('computerstore_body_font') != '') { ?>
body{
font-family:<?php echo $this->config->get('computerstore_body_font') ?>;
}
<?php } ?>
<?php if($this->config->get('computerstore_header') != '') { ?>
div#header, div#categories ul li ul.sub-menu, div#categories ul li:hover {
background-color:#<?php echo $this->config->get('computerstore_header') ?> ;
}
<?php } ?>
<?php if($this->config->get('computerstore_header_text_color') != '') { ?>
.switcher, div#header .welcome-text, div#header #cart .heading h4 {
color:#<?php echo $this->config->get('computerstore_header_text_color') ?> ;
}
<?php } ?>
<?php if($this->config->get('computerstore_header_link_color') != '') { ?>
div#header .welcome-text a, div#header #cart .heading h4 a {
color:#<?php echo $this->config->get('computerstore_header_link_color') ?> ;
}
<?php } ?>
<?php if($this->config->get('computerstore_submenu_link_color') != '') { ?>
div#content-top div#submenu ul li a {
color:#<?php echo $this->config->get('computerstore_submenu_link_color') ?> ;
}
<?php } ?>
<?php if($this->config->get('computerstore_footer_text_color') != '') { ?>
div#footer .copyright, div#footer .copyright a {
color:#<?php echo $this->config->get('computerstore_footer_text_color') ?> ;
}
<?php } ?>
<?php if($this->config->get('computerstore_footer_link_color') != '') { ?>
div#footer .footer-navigation a {
color:#<?php echo $this->config->get('computerstore_footer_link_color') ?> ;
}
<?php } ?>
<?php if($this->config->get('computerstore_footer_heading_color') != '') { ?>
div#footer .footer-navigation h3 {
color:#<?php echo $this->config->get('computerstore_footer_heading_color') ?> ;
}
<?php } ?>
<?php if($this->config->get('computerstore_primary_c') != '') { ?>
.box-product > div .name a, .product-compare a, .product-list .name a {
color:#<?php echo $this->config->get('computerstore_primary_c') ?> ;
}
<?php } ?>
<?php if($this->config->get('computerstore_secondary_c') != '') { ?>
body {
color:#<?php echo $this->config->get('computerstore_secondary_c') ?> ;
}
<?php } ?>
<?php if($this->config->get('computerstore_body_bg') != '') { ?>
body {
background-color:#<?php echo $this->config->get('computerstore_body_bg') ?> ;
}
<?php } ?>
<?php if($this->config->get('computerstore_body_bg_pattern') != '') { ?>
body {
background-image:url(catalog/view/theme/computerstore/images/pattern/pattern_<?php echo $this->config->get('computerstore_body_bg_pattern') ?>.png) ;
}
<?php } ?>
<?php if($this->config->get('computerstore_button_bg') != '') { ?>
.button {
background-color:#<?php echo $this->config->get('computerstore_button_bg') ?> ;
}
<?php } ?>
<?php if($this->config->get('computerstore_button_bg_hover') != '') { ?>
.button:hover {
background-color:#<?php echo $this->config->get('computerstore_button_bg_hover') ?> ;
}
<?php } ?>
<?php if($this->config->get('computerstore_price_c') != '') { ?>
.price {
color:#<?php echo $this->config->get('computerstore_price_c') ?> !important;
}
<?php } ?>
<?php if($this->config->get('computerstore_old_price_c') != '') { ?>
.old-price {
color:#<?php echo $this->config->get('computerstore_old_price_c') ?> !important;
}
<?php } ?>
</style>
<?php } ?>
</head>
<body>
<div id="notification"></div>
<!-- Header -->
<div id="header">
<div class="set-size">
<?php if($logo) { ?>
<!-- Logo -->
<h1 class="float-left"><a href="<?php echo $home; ?>"><img src="<?php echo $logo; ?>" alt="<?php echo $name; ?>" title="<?php echo $name; ?>" /></a></h1>
<?php } ?>
<div class="header-info-contact"><a href="mailto:info@play-room.com.ar">info@play-room.com.ar</a><span> | </span><strong>(0220) 486-7800 // 483-3822</strong><span> | </span>Italia 1176 - S.A. de Padua</div>
<!-- Right -->
<div class="float-right">
<div id="switcher">
<?php if (count($languages) > 1) { ?>
<!-- Language -->
<form action="<?php echo $action; ?>" method="post" enctype="multipart/form-data" id="language_form">
<div id="language_switcher" class="switcher float-right">
<p>Language:</p>
<div>
<?php foreach ($languages as $language) { ?>
<?php if ($language['code'] == $language_code) { ?>
<span><?php echo $language['name']; ?></span>
<?php } ?>
<?php } ?>
<ul class="option">
<?php foreach ($languages as $language) { ?>
<li><a href="javascript:;" onclick="$('input[name=\'language_code\']').attr('value', '<?php echo $language['code']; ?>'); $('#language_form').submit();"><?php echo $language['name']; ?></a></li>
<?php } ?>
</ul>
</div>
<input type="hidden" name="language_code" value="" />
<input type="hidden" name="redirect" value="<?php echo $redirect; ?>" />
</div>
</form><!-- End currency form -->
<!-- End language -->
<?php } ?>
<!-- Currency -->
<form action="<?php echo str_replace('&', '&', $action); ?>" method="post" enctype="multipart/form-data" id="currency_form">
<div id="currency_switcher" class="switcher float-right">
<p>Currency:</p>
<div>
<?php foreach ($currencies as $currency) { ?>
<?php if ($currency['code'] == $currency_code) { ?>
<span><?php echo $currency['title']; ?></span>
<?php } ?>
<?php } ?>
<ul class="option">
<?php foreach ($currencies as $currency) { ?>
<li><a href="javascript:;" onclick="$('input[name=\'currency_code\']').attr('value', '<?php echo $currency['code']; ?>'); $('#currency_form').submit();"><?php echo $currency['title']; ?></a></li>
<?php } ?>
</ul>
</div>
<input type="hidden" name="currency_code" value="" />
<input type="hidden" name="redirect" value="<?php echo $redirect; ?>" />
</div>
</form><!-- End currency form -->
<!-- End currency -->
</div>
<!-- Welcome -->
<div class="welcome-text float-right"><?php echo $text_welcome; ?></div>
<!-- End Welcome -->
<!-- Shopping cart -->
<div id="cart">
<div class="heading float-right">
<a id="shopping_cart_icon" href="javascript:;"></a>
<h4>Shopping cart: <a href="javascript:;"><span id="cart_total"><?php echo $text_items; ?></span></a></h4>
</div>
<p class="clear"></p>
<div class="content"></div>
</div>
<!-- End shopping cart -->
</div>
<!-- End Right -->
</div>
</div>
<!-- End Header -->
<?php if ($categories) { ?>
<!-- Categories -->
<div id="categories">
<ul>
<?php foreach ($categories as $category) { ?>
<li>
<a href="<?php echo $category['href']; ?>"><span><?php echo $category['name'];?></span></a>
<?php if ($category['children']) { ?>
<!-- SubMenu -->
<ul class="sub-menu">
<?php $i = 0; for (; $i < count($category['children']); $i++) { ?>
<li><a href="<?php echo $category['children'][$i]['href']; ?>"><span><?php echo $category['children'][$i]['name']; ?></span></a>
<?php
$categories_2 = $this->model_catalog_category->getCategories($category['children'][$i]['category_id']);
if($categories_2) {
?>
<!-- SubMenu -->
<ul class="sub-menu">
<?php foreach ($categories_2 as $category_2) { ?>
<li><a href="<?php echo $this->url->link('product/category', 'path='.$category['category_id'].'_' . $category['children'][$i]['category_id'] . '_' . $category_2['category_id']); ?>"><span><?php echo $category_2['name']; ?></span></a></li>
<?php } ?>
</ul>
<!-- End SubMenu -->
<?php } ?>
</li>
<?php } ?>
</ul>
<!-- End SubMenu -->
<?php } ?>
</li>
<?php } ?>
</ul>
</div>
<!-- End Categories -->
<?php } ?>
<!-- Content Top -->
<div id="content-top" class="set-size">
<!-- SubMenu -->
<div id="submenu">
<!-- Links -->
<ul class="float-left">
<li><a href="<?php echo $home; ?>" class="grey-30"><?php echo $text_home; ?></a></li>
<li><a href="<?php echo $wishlist; ?>" class="grey-30"><?php echo $text_wishlist; ?></a></li>
<li><a href="<?php echo $account; ?>" class="grey-30"><?php echo $text_account; ?></a></li>
<li><a href="<?php echo $cart; ?>" class="grey-30"><?php echo $text_cart; ?></a></li>
<li><a href="<?php echo $checkout; ?>" class="grey-30"><?php echo $text_checkout; ?></a></li>
</ul>
<!-- End Links -->
<!-- Search -->
<div id="search" class="float-right">
<?php if ($filter_name) { ?>
<input type="text" name="filter_name" class="enterkey" value="<?php echo $filter_name; ?>" />
<?php } else { ?>
<input type="text" name="filter_name" class="enterkey autoclear" value="<?php echo $text_search; ?>" onkeydown="this.style.color = '#000000';" />
<?php } ?>
<a href="javascript:;" class="button button-search">Search</a>
</div>
<!-- End Search -->
</div>
- elvarto
- Posts: 4
- Joined: Sun Jul 15, 2012 6:02 pm
Re: Welcome Message doesn't change when user is logged in
Ok... thanks...
Try this
Cheers
jem
Try this
Cheers
jem
- Code: Select all
<?php if($this->config->get('computerstore_status') == '1'){ ?>
<style type="text/css">
<?php if($this->config->get('computerstore_body_font') != '') { ?>
body{
font-family:<?php echo $this->config->get('computerstore_body_font') ?>;
}
<?php } ?>
<?php if($this->config->get('computerstore_header') != '') { ?>
div#header, div#categories ul li ul.sub-menu, div#categories ul li:hover {
background-color:#<?php echo $this->config->get('computerstore_header') ?> ;
}
<?php } ?>
<?php if($this->config->get('computerstore_header_text_color') != '') { ?>
.switcher, div#header .welcome-text, div#header #cart .heading h4 {
color:#<?php echo $this->config->get('computerstore_header_text_color') ?> ;
}
<?php } ?>
<?php if($this->config->get('computerstore_header_link_color') != '') { ?>
div#header .welcome-text a, div#header #cart .heading h4 a {
color:#<?php echo $this->config->get('computerstore_header_link_color') ?> ;
}
<?php } ?>
<?php if($this->config->get('computerstore_submenu_link_color') != '') { ?>
div#content-top div#submenu ul li a {
color:#<?php echo $this->config->get('computerstore_submenu_link_color') ?> ;
}
<?php } ?>
<?php if($this->config->get('computerstore_footer_text_color') != '') { ?>
div#footer .copyright, div#footer .copyright a {
color:#<?php echo $this->config->get('computerstore_footer_text_color') ?> ;
}
<?php } ?>
<?php if($this->config->get('computerstore_footer_link_color') != '') { ?>
div#footer .footer-navigation a {
color:#<?php echo $this->config->get('computerstore_footer_link_color') ?> ;
}
<?php } ?>
<?php if($this->config->get('computerstore_footer_heading_color') != '') { ?>
div#footer .footer-navigation h3 {
color:#<?php echo $this->config->get('computerstore_footer_heading_color') ?> ;
}
<?php } ?>
<?php if($this->config->get('computerstore_primary_c') != '') { ?>
.box-product > div .name a, .product-compare a, .product-list .name a {
color:#<?php echo $this->config->get('computerstore_primary_c') ?> ;
}
<?php } ?>
<?php if($this->config->get('computerstore_secondary_c') != '') { ?>
body {
color:#<?php echo $this->config->get('computerstore_secondary_c') ?> ;
}
<?php } ?>
<?php if($this->config->get('computerstore_body_bg') != '') { ?>
body {
background-color:#<?php echo $this->config->get('computerstore_body_bg') ?> ;
}
<?php } ?>
<?php if($this->config->get('computerstore_body_bg_pattern') != '') { ?>
body {
background-image:url(catalog/view/theme/computerstore/images/pattern/pattern_<?php echo $this->config->get('computerstore_body_bg_pattern') ?>.png) ;
}
<?php } ?>
<?php if($this->config->get('computerstore_button_bg') != '') { ?>
.button {
background-color:#<?php echo $this->config->get('computerstore_button_bg') ?> ;
}
<?php } ?>
<?php if($this->config->get('computerstore_button_bg_hover') != '') { ?>
.button:hover {
background-color:#<?php echo $this->config->get('computerstore_button_bg_hover') ?> ;
}
<?php } ?>
<?php if($this->config->get('computerstore_price_c') != '') { ?>
.price {
color:#<?php echo $this->config->get('computerstore_price_c') ?> !important;
}
<?php } ?>
<?php if($this->config->get('computerstore_old_price_c') != '') { ?>
.old-price {
color:#<?php echo $this->config->get('computerstore_old_price_c') ?> !important;
}
<?php } ?>
</style>
<?php } ?>
</head>
<body>
<div id="notification"></div>
<!-- Header -->
<div id="header">
<div class="set-size">
<?php if($logo) { ?>
<!-- Logo -->
<h1 class="float-left"><a href="<?php echo $home; ?>"><img src="<?php echo $logo; ?>" alt="<?php echo $name; ?>" title="<?php echo $name; ?>" /></a></h1>
<?php } ?>
<div class="header-info-contact"><a href="mailto:info@play-room.com.ar">info@play-room.com.ar</a><span> | </span><strong>(0220) 486-7800 // 483-3822</strong><span> | </span>Italia 1176 - S.A. de Padua</div>
<!-- Right -->
<div class="float-right">
<div id="switcher">
<?php if (count($languages) > 1) { ?>
<!-- Language -->
<form action="<?php echo $action; ?>" method="post" enctype="multipart/form-data" id="language_form">
<div id="language_switcher" class="switcher float-right">
<p>Language:</p>
<div>
<?php foreach ($languages as $language) { ?>
<?php if ($language['code'] == $language_code) { ?>
<span><?php echo $language['name']; ?></span>
<?php } ?>
<?php } ?>
<ul class="option">
<?php foreach ($languages as $language) { ?>
<li><a href="javascript:;" onclick="$('input[name=\'language_code\']').attr('value', '<?php echo $language['code']; ?>'); $('#language_form').submit();"><?php echo $language['name']; ?></a></li>
<?php } ?>
</ul>
</div>
<input type="hidden" name="language_code" value="" />
<input type="hidden" name="redirect" value="<?php echo $redirect; ?>" />
</div>
</form><!-- End currency form -->
<!-- End language -->
<?php } ?>
<!-- Currency -->
<form action="<?php echo str_replace('&', '&', $action); ?>" method="post" enctype="multipart/form-data" id="currency_form">
<div id="currency_switcher" class="switcher float-right">
<p>Currency:</p>
<div>
<?php foreach ($currencies as $currency) { ?>
<?php if ($currency['code'] == $currency_code) { ?>
<span><?php echo $currency['title']; ?></span>
<?php } ?>
<?php } ?>
<ul class="option">
<?php foreach ($currencies as $currency) { ?>
<li><a href="javascript:;" onclick="$('input[name=\'currency_code\']').attr('value', '<?php echo $currency['code']; ?>'); $('#currency_form').submit();"><?php echo $currency['title']; ?></a></li>
<?php } ?>
</ul>
</div>
<input type="hidden" name="currency_code" value="" />
<input type="hidden" name="redirect" value="<?php echo $redirect; ?>" />
</div>
</form><!-- End currency form -->
<!-- End currency -->
</div>
<!-- Welcome -->
<div class="welcome-text float-right">
<?php if (!$logged) { ?>
<?php echo $text_welcome; ?>
<?php } else { ?>
<?php echo $text_logged; ?>
<?php } ?>
</div>
<!-- End Welcome -->
<!-- Shopping cart -->
<div id="cart">
<div class="heading float-right">
<a id="shopping_cart_icon" href="javascript:;"></a>
<h4>Shopping cart: <a href="javascript:;"><span id="cart_total"><?php echo $text_items; ?></span></a></h4>
</div>
<p class="clear"></p>
<div class="content"></div>
</div>
<!-- End shopping cart -->
</div>
<!-- End Right -->
</div>
</div>
<!-- End Header -->
<?php if ($categories) { ?>
<!-- Categories -->
<div id="categories">
<ul>
<?php foreach ($categories as $category) { ?>
<li>
<a href="<?php echo $category['href']; ?>"><span><?php echo $category['name'];?></span></a>
<?php if ($category['children']) { ?>
<!-- SubMenu -->
<ul class="sub-menu">
<?php $i = 0; for (; $i < count($category['children']); $i++) { ?>
<li><a href="<?php echo $category['children'][$i]['href']; ?>"><span><?php echo $category['children'][$i]['name']; ?></span></a>
<?php
$categories_2 = $this->model_catalog_category->getCategories($category['children'][$i]['category_id']);
if($categories_2) {
?>
<!-- SubMenu -->
<ul class="sub-menu">
<?php foreach ($categories_2 as $category_2) { ?>
<li><a href="<?php echo $this->url->link('product/category', 'path='.$category['category_id'].'_' . $category['children'][$i]['category_id'] . '_' . $category_2['category_id']); ?>"><span><?php echo $category_2['name']; ?></span></a></li>
<?php } ?>
</ul>
<!-- End SubMenu -->
<?php } ?>
</li>
<?php } ?>
</ul>
<!-- End SubMenu -->
<?php } ?>
</li>
<?php } ?>
</ul>
</div>
<!-- End Categories -->
<?php } ?>
<!-- Content Top -->
<div id="content-top" class="set-size">
<!-- SubMenu -->
<div id="submenu">
<!-- Links -->
<ul class="float-left">
<li><a href="<?php echo $home; ?>" class="grey-30"><?php echo $text_home; ?></a></li>
<li><a href="<?php echo $wishlist; ?>" class="grey-30"><?php echo $text_wishlist; ?></a></li>
<li><a href="<?php echo $account; ?>" class="grey-30"><?php echo $text_account; ?></a></li>
<li><a href="<?php echo $cart; ?>" class="grey-30"><?php echo $text_cart; ?></a></li>
<li><a href="<?php echo $checkout; ?>" class="grey-30"><?php echo $text_checkout; ?></a></li>
</ul>
<!-- End Links -->
<!-- Search -->
<div id="search" class="float-right">
<?php if ($filter_name) { ?>
<input type="text" name="filter_name" class="enterkey" value="<?php echo $filter_name; ?>" />
<?php } else { ?>
<input type="text" name="filter_name" class="enterkey autoclear" value="<?php echo $text_search; ?>" onkeydown="this.style.color = '#000000';" />
<?php } ?>
<a href="javascript:;" class="button button-search">Search</a>
</div>
<!-- End Search -->
</div>
If i have helped... please click here to donate
Bookstore (book store) mod
Template Override - Category Specific (vQmod)
Template Override - Brand Specific (vQmod)
How did you find out about us register question mod
Compulsory Login vQmod
zoom - Product Image - Auto on hover
Latest website
http://www.modehandcare.co.nz/hand-dryers/
Bookstore (book store) mod
Template Override - Category Specific (vQmod)
Template Override - Brand Specific (vQmod)
How did you find out about us register question mod
Compulsory Login vQmod
zoom - Product Image - Auto on hover
Latest website
http://www.modehandcare.co.nz/hand-dryers/
-

Jeremy Fisk - Posts: 924
- Joined: Thu Nov 11, 2010 10:11 am
- Location: New Zealand (Masterton, Wairarapa)
Re: Welcome Message doesn't change when user is logged in
Jeremy Fisk wrote:Ok... thanks...
Try this
Cheers
jem
- Code: Select all
<?php if($this->config->get('computerstore_status') == '1'){ ?>
<style type="text/css">
<?php if($this->config->get('computerstore_body_font') != '') { ?>
body{
font-family:<?php echo $this->config->get('computerstore_body_font') ?>;
}
<?php } ?>
<?php if($this->config->get('computerstore_header') != '') { ?>
div#header, div#categories ul li ul.sub-menu, div#categories ul li:hover {
background-color:#<?php echo $this->config->get('computerstore_header') ?> ;
}
<?php } ?>
<?php if($this->config->get('computerstore_header_text_color') != '') { ?>
.switcher, div#header .welcome-text, div#header #cart .heading h4 {
color:#<?php echo $this->config->get('computerstore_header_text_color') ?> ;
}
<?php } ?>
<?php if($this->config->get('computerstore_header_link_color') != '') { ?>
div#header .welcome-text a, div#header #cart .heading h4 a {
color:#<?php echo $this->config->get('computerstore_header_link_color') ?> ;
}
<?php } ?>
<?php if($this->config->get('computerstore_submenu_link_color') != '') { ?>
div#content-top div#submenu ul li a {
color:#<?php echo $this->config->get('computerstore_submenu_link_color') ?> ;
}
<?php } ?>
<?php if($this->config->get('computerstore_footer_text_color') != '') { ?>
div#footer .copyright, div#footer .copyright a {
color:#<?php echo $this->config->get('computerstore_footer_text_color') ?> ;
}
<?php } ?>
<?php if($this->config->get('computerstore_footer_link_color') != '') { ?>
div#footer .footer-navigation a {
color:#<?php echo $this->config->get('computerstore_footer_link_color') ?> ;
}
<?php } ?>
<?php if($this->config->get('computerstore_footer_heading_color') != '') { ?>
div#footer .footer-navigation h3 {
color:#<?php echo $this->config->get('computerstore_footer_heading_color') ?> ;
}
<?php } ?>
<?php if($this->config->get('computerstore_primary_c') != '') { ?>
.box-product > div .name a, .product-compare a, .product-list .name a {
color:#<?php echo $this->config->get('computerstore_primary_c') ?> ;
}
<?php } ?>
<?php if($this->config->get('computerstore_secondary_c') != '') { ?>
body {
color:#<?php echo $this->config->get('computerstore_secondary_c') ?> ;
}
<?php } ?>
<?php if($this->config->get('computerstore_body_bg') != '') { ?>
body {
background-color:#<?php echo $this->config->get('computerstore_body_bg') ?> ;
}
<?php } ?>
<?php if($this->config->get('computerstore_body_bg_pattern') != '') { ?>
body {
background-image:url(catalog/view/theme/computerstore/images/pattern/pattern_<?php echo $this->config->get('computerstore_body_bg_pattern') ?>.png) ;
}
<?php } ?>
<?php if($this->config->get('computerstore_button_bg') != '') { ?>
.button {
background-color:#<?php echo $this->config->get('computerstore_button_bg') ?> ;
}
<?php } ?>
<?php if($this->config->get('computerstore_button_bg_hover') != '') { ?>
.button:hover {
background-color:#<?php echo $this->config->get('computerstore_button_bg_hover') ?> ;
}
<?php } ?>
<?php if($this->config->get('computerstore_price_c') != '') { ?>
.price {
color:#<?php echo $this->config->get('computerstore_price_c') ?> !important;
}
<?php } ?>
<?php if($this->config->get('computerstore_old_price_c') != '') { ?>
.old-price {
color:#<?php echo $this->config->get('computerstore_old_price_c') ?> !important;
}
<?php } ?>
</style>
<?php } ?>
</head>
<body>
<div id="notification"></div>
<!-- Header -->
<div id="header">
<div class="set-size">
<?php if($logo) { ?>
<!-- Logo -->
<h1 class="float-left"><a href="<?php echo $home; ?>"><img src="<?php echo $logo; ?>" alt="<?php echo $name; ?>" title="<?php echo $name; ?>" /></a></h1>
<?php } ?>
<div class="header-info-contact"><a href="mailto:info@play-room.com.ar">info@play-room.com.ar</a><span> | </span><strong>(0220) 486-7800 // 483-3822</strong><span> | </span>Italia 1176 - S.A. de Padua</div>
<!-- Right -->
<div class="float-right">
<div id="switcher">
<?php if (count($languages) > 1) { ?>
<!-- Language -->
<form action="<?php echo $action; ?>" method="post" enctype="multipart/form-data" id="language_form">
<div id="language_switcher" class="switcher float-right">
<p>Language:</p>
<div>
<?php foreach ($languages as $language) { ?>
<?php if ($language['code'] == $language_code) { ?>
<span><?php echo $language['name']; ?></span>
<?php } ?>
<?php } ?>
<ul class="option">
<?php foreach ($languages as $language) { ?>
<li><a href="javascript:;" onclick="$('input[name=\'language_code\']').attr('value', '<?php echo $language['code']; ?>'); $('#language_form').submit();"><?php echo $language['name']; ?></a></li>
<?php } ?>
</ul>
</div>
<input type="hidden" name="language_code" value="" />
<input type="hidden" name="redirect" value="<?php echo $redirect; ?>" />
</div>
</form><!-- End currency form -->
<!-- End language -->
<?php } ?>
<!-- Currency -->
<form action="<?php echo str_replace('&', '&', $action); ?>" method="post" enctype="multipart/form-data" id="currency_form">
<div id="currency_switcher" class="switcher float-right">
<p>Currency:</p>
<div>
<?php foreach ($currencies as $currency) { ?>
<?php if ($currency['code'] == $currency_code) { ?>
<span><?php echo $currency['title']; ?></span>
<?php } ?>
<?php } ?>
<ul class="option">
<?php foreach ($currencies as $currency) { ?>
<li><a href="javascript:;" onclick="$('input[name=\'currency_code\']').attr('value', '<?php echo $currency['code']; ?>'); $('#currency_form').submit();"><?php echo $currency['title']; ?></a></li>
<?php } ?>
</ul>
</div>
<input type="hidden" name="currency_code" value="" />
<input type="hidden" name="redirect" value="<?php echo $redirect; ?>" />
</div>
</form><!-- End currency form -->
<!-- End currency -->
</div>
<!-- Welcome -->
<div class="welcome-text float-right">
<?php if (!$logged) { ?>
<?php echo $text_welcome; ?>
<?php } else { ?>
<?php echo $text_logged; ?>
<?php } ?>
</div>
<!-- End Welcome -->
<!-- Shopping cart -->
<div id="cart">
<div class="heading float-right">
<a id="shopping_cart_icon" href="javascript:;"></a>
<h4>Shopping cart: <a href="javascript:;"><span id="cart_total"><?php echo $text_items; ?></span></a></h4>
</div>
<p class="clear"></p>
<div class="content"></div>
</div>
<!-- End shopping cart -->
</div>
<!-- End Right -->
</div>
</div>
<!-- End Header -->
<?php if ($categories) { ?>
<!-- Categories -->
<div id="categories">
<ul>
<?php foreach ($categories as $category) { ?>
<li>
<a href="<?php echo $category['href']; ?>"><span><?php echo $category['name'];?></span></a>
<?php if ($category['children']) { ?>
<!-- SubMenu -->
<ul class="sub-menu">
<?php $i = 0; for (; $i < count($category['children']); $i++) { ?>
<li><a href="<?php echo $category['children'][$i]['href']; ?>"><span><?php echo $category['children'][$i]['name']; ?></span></a>
<?php
$categories_2 = $this->model_catalog_category->getCategories($category['children'][$i]['category_id']);
if($categories_2) {
?>
<!-- SubMenu -->
<ul class="sub-menu">
<?php foreach ($categories_2 as $category_2) { ?>
<li><a href="<?php echo $this->url->link('product/category', 'path='.$category['category_id'].'_' . $category['children'][$i]['category_id'] . '_' . $category_2['category_id']); ?>"><span><?php echo $category_2['name']; ?></span></a></li>
<?php } ?>
</ul>
<!-- End SubMenu -->
<?php } ?>
</li>
<?php } ?>
</ul>
<!-- End SubMenu -->
<?php } ?>
</li>
<?php } ?>
</ul>
</div>
<!-- End Categories -->
<?php } ?>
<!-- Content Top -->
<div id="content-top" class="set-size">
<!-- SubMenu -->
<div id="submenu">
<!-- Links -->
<ul class="float-left">
<li><a href="<?php echo $home; ?>" class="grey-30"><?php echo $text_home; ?></a></li>
<li><a href="<?php echo $wishlist; ?>" class="grey-30"><?php echo $text_wishlist; ?></a></li>
<li><a href="<?php echo $account; ?>" class="grey-30"><?php echo $text_account; ?></a></li>
<li><a href="<?php echo $cart; ?>" class="grey-30"><?php echo $text_cart; ?></a></li>
<li><a href="<?php echo $checkout; ?>" class="grey-30"><?php echo $text_checkout; ?></a></li>
</ul>
<!-- End Links -->
<!-- Search -->
<div id="search" class="float-right">
<?php if ($filter_name) { ?>
<input type="text" name="filter_name" class="enterkey" value="<?php echo $filter_name; ?>" />
<?php } else { ?>
<input type="text" name="filter_name" class="enterkey autoclear" value="<?php echo $text_search; ?>" onkeydown="this.style.color = '#000000';" />
<?php } ?>
<a href="javascript:;" class="button button-search">Search</a>
</div>
<!-- End Search -->
</div>
Jem, it works!!! many thanks!!! I really appreciate it!! very kind
Greetings from Argentina!
- elvarto
- Posts: 4
- Joined: Sun Jul 15, 2012 6:02 pm
Re: Welcome Message doesn't change when user is logged in
elvarto wrote:Jeremy Fisk wrote:Ok... thanks...
Try this
Cheers
jem
- Code: Select all
<?php if($this->config->get('computerstore_status') == '1'){ ?>
<style type="text/css">
<?php if($this->config->get('computerstore_body_font') != '') { ?>
body{
font-family:<?php echo $this->config->get('computerstore_body_font') ?>;
}
<?php } ?>
<?php if($this->config->get('computerstore_header') != '') { ?>
div#header, div#categories ul li ul.sub-menu, div#categories ul li:hover {
background-color:#<?php echo $this->config->get('computerstore_header') ?> ;
}
<?php } ?>
<?php if($this->config->get('computerstore_header_text_color') != '') { ?>
.switcher, div#header .welcome-text, div#header #cart .heading h4 {
color:#<?php echo $this->config->get('computerstore_header_text_color') ?> ;
}
<?php } ?>
<?php if($this->config->get('computerstore_header_link_color') != '') { ?>
div#header .welcome-text a, div#header #cart .heading h4 a {
color:#<?php echo $this->config->get('computerstore_header_link_color') ?> ;
}
<?php } ?>
<?php if($this->config->get('computerstore_submenu_link_color') != '') { ?>
div#content-top div#submenu ul li a {
color:#<?php echo $this->config->get('computerstore_submenu_link_color') ?> ;
}
<?php } ?>
<?php if($this->config->get('computerstore_footer_text_color') != '') { ?>
div#footer .copyright, div#footer .copyright a {
color:#<?php echo $this->config->get('computerstore_footer_text_color') ?> ;
}
<?php } ?>
<?php if($this->config->get('computerstore_footer_link_color') != '') { ?>
div#footer .footer-navigation a {
color:#<?php echo $this->config->get('computerstore_footer_link_color') ?> ;
}
<?php } ?>
<?php if($this->config->get('computerstore_footer_heading_color') != '') { ?>
div#footer .footer-navigation h3 {
color:#<?php echo $this->config->get('computerstore_footer_heading_color') ?> ;
}
<?php } ?>
<?php if($this->config->get('computerstore_primary_c') != '') { ?>
.box-product > div .name a, .product-compare a, .product-list .name a {
color:#<?php echo $this->config->get('computerstore_primary_c') ?> ;
}
<?php } ?>
<?php if($this->config->get('computerstore_secondary_c') != '') { ?>
body {
color:#<?php echo $this->config->get('computerstore_secondary_c') ?> ;
}
<?php } ?>
<?php if($this->config->get('computerstore_body_bg') != '') { ?>
body {
background-color:#<?php echo $this->config->get('computerstore_body_bg') ?> ;
}
<?php } ?>
<?php if($this->config->get('computerstore_body_bg_pattern') != '') { ?>
body {
background-image:url(catalog/view/theme/computerstore/images/pattern/pattern_<?php echo $this->config->get('computerstore_body_bg_pattern') ?>.png) ;
}
<?php } ?>
<?php if($this->config->get('computerstore_button_bg') != '') { ?>
.button {
background-color:#<?php echo $this->config->get('computerstore_button_bg') ?> ;
}
<?php } ?>
<?php if($this->config->get('computerstore_button_bg_hover') != '') { ?>
.button:hover {
background-color:#<?php echo $this->config->get('computerstore_button_bg_hover') ?> ;
}
<?php } ?>
<?php if($this->config->get('computerstore_price_c') != '') { ?>
.price {
color:#<?php echo $this->config->get('computerstore_price_c') ?> !important;
}
<?php } ?>
<?php if($this->config->get('computerstore_old_price_c') != '') { ?>
.old-price {
color:#<?php echo $this->config->get('computerstore_old_price_c') ?> !important;
}
<?php } ?>
</style>
<?php } ?>
</head>
<body>
<div id="notification"></div>
<!-- Header -->
<div id="header">
<div class="set-size">
<?php if($logo) { ?>
<!-- Logo -->
<h1 class="float-left"><a href="<?php echo $home; ?>"><img src="<?php echo $logo; ?>" alt="<?php echo $name; ?>" title="<?php echo $name; ?>" /></a></h1>
<?php } ?>
<div class="header-info-contact"><a href="mailto:info@play-room.com.ar">info@play-room.com.ar</a><span> | </span><strong>(0220) 486-7800 // 483-3822</strong><span> | </span>Italia 1176 - S.A. de Padua</div>
<!-- Right -->
<div class="float-right">
<div id="switcher">
<?php if (count($languages) > 1) { ?>
<!-- Language -->
<form action="<?php echo $action; ?>" method="post" enctype="multipart/form-data" id="language_form">
<div id="language_switcher" class="switcher float-right">
<p>Language:</p>
<div>
<?php foreach ($languages as $language) { ?>
<?php if ($language['code'] == $language_code) { ?>
<span><?php echo $language['name']; ?></span>
<?php } ?>
<?php } ?>
<ul class="option">
<?php foreach ($languages as $language) { ?>
<li><a href="javascript:;" onclick="$('input[name=\'language_code\']').attr('value', '<?php echo $language['code']; ?>'); $('#language_form').submit();"><?php echo $language['name']; ?></a></li>
<?php } ?>
</ul>
</div>
<input type="hidden" name="language_code" value="" />
<input type="hidden" name="redirect" value="<?php echo $redirect; ?>" />
</div>
</form><!-- End currency form -->
<!-- End language -->
<?php } ?>
<!-- Currency -->
<form action="<?php echo str_replace('&', '&', $action); ?>" method="post" enctype="multipart/form-data" id="currency_form">
<div id="currency_switcher" class="switcher float-right">
<p>Currency:</p>
<div>
<?php foreach ($currencies as $currency) { ?>
<?php if ($currency['code'] == $currency_code) { ?>
<span><?php echo $currency['title']; ?></span>
<?php } ?>
<?php } ?>
<ul class="option">
<?php foreach ($currencies as $currency) { ?>
<li><a href="javascript:;" onclick="$('input[name=\'currency_code\']').attr('value', '<?php echo $currency['code']; ?>'); $('#currency_form').submit();"><?php echo $currency['title']; ?></a></li>
<?php } ?>
</ul>
</div>
<input type="hidden" name="currency_code" value="" />
<input type="hidden" name="redirect" value="<?php echo $redirect; ?>" />
</div>
</form><!-- End currency form -->
<!-- End currency -->
</div>
<!-- Welcome -->
<div class="welcome-text float-right">
<?php if (!$logged) { ?>
<?php echo $text_welcome; ?>
<?php } else { ?>
<?php echo $text_logged; ?>
<?php } ?>
</div>
<!-- End Welcome -->
<!-- Shopping cart -->
<div id="cart">
<div class="heading float-right">
<a id="shopping_cart_icon" href="javascript:;"></a>
<h4>Shopping cart: <a href="javascript:;"><span id="cart_total"><?php echo $text_items; ?></span></a></h4>
</div>
<p class="clear"></p>
<div class="content"></div>
</div>
<!-- End shopping cart -->
</div>
<!-- End Right -->
</div>
</div>
<!-- End Header -->
<?php if ($categories) { ?>
<!-- Categories -->
<div id="categories">
<ul>
<?php foreach ($categories as $category) { ?>
<li>
<a href="<?php echo $category['href']; ?>"><span><?php echo $category['name'];?></span></a>
<?php if ($category['children']) { ?>
<!-- SubMenu -->
<ul class="sub-menu">
<?php $i = 0; for (; $i < count($category['children']); $i++) { ?>
<li><a href="<?php echo $category['children'][$i]['href']; ?>"><span><?php echo $category['children'][$i]['name']; ?></span></a>
<?php
$categories_2 = $this->model_catalog_category->getCategories($category['children'][$i]['category_id']);
if($categories_2) {
?>
<!-- SubMenu -->
<ul class="sub-menu">
<?php foreach ($categories_2 as $category_2) { ?>
<li><a href="<?php echo $this->url->link('product/category', 'path='.$category['category_id'].'_' . $category['children'][$i]['category_id'] . '_' . $category_2['category_id']); ?>"><span><?php echo $category_2['name']; ?></span></a></li>
<?php } ?>
</ul>
<!-- End SubMenu -->
<?php } ?>
</li>
<?php } ?>
</ul>
<!-- End SubMenu -->
<?php } ?>
</li>
<?php } ?>
</ul>
</div>
<!-- End Categories -->
<?php } ?>
<!-- Content Top -->
<div id="content-top" class="set-size">
<!-- SubMenu -->
<div id="submenu">
<!-- Links -->
<ul class="float-left">
<li><a href="<?php echo $home; ?>" class="grey-30"><?php echo $text_home; ?></a></li>
<li><a href="<?php echo $wishlist; ?>" class="grey-30"><?php echo $text_wishlist; ?></a></li>
<li><a href="<?php echo $account; ?>" class="grey-30"><?php echo $text_account; ?></a></li>
<li><a href="<?php echo $cart; ?>" class="grey-30"><?php echo $text_cart; ?></a></li>
<li><a href="<?php echo $checkout; ?>" class="grey-30"><?php echo $text_checkout; ?></a></li>
</ul>
<!-- End Links -->
<!-- Search -->
<div id="search" class="float-right">
<?php if ($filter_name) { ?>
<input type="text" name="filter_name" class="enterkey" value="<?php echo $filter_name; ?>" />
<?php } else { ?>
<input type="text" name="filter_name" class="enterkey autoclear" value="<?php echo $text_search; ?>" onkeydown="this.style.color = '#000000';" />
<?php } ?>
<a href="javascript:;" class="button button-search">Search</a>
</div>
<!-- End Search -->
</div>
Jem, it works!!! many thanks!!! I really appreciate it!! very kind
Greetings from Argentina!
No problem... glad i could help...
If i have been of assistance please feel free to make a donation for my efforts... lol
If i have helped... please click here to donate
Bookstore (book store) mod
Template Override - Category Specific (vQmod)
Template Override - Brand Specific (vQmod)
How did you find out about us register question mod
Compulsory Login vQmod
zoom - Product Image - Auto on hover
Latest website
http://www.modehandcare.co.nz/hand-dryers/
Bookstore (book store) mod
Template Override - Category Specific (vQmod)
Template Override - Brand Specific (vQmod)
How did you find out about us register question mod
Compulsory Login vQmod
zoom - Product Image - Auto on hover
Latest website
http://www.modehandcare.co.nz/hand-dryers/
-

Jeremy Fisk - Posts: 924
- Joined: Thu Nov 11, 2010 10:11 am
- Location: New Zealand (Masterton, Wairarapa)
Re: Welcome Message doesn't change when user is logged in
Jeremy Fisk wrote:No problem... glad i could help...
If i have been of assistance please feel free to make a donation for my efforts... lol
I would like but is impossible for me right now...
THANKS AGAIN!
- elvarto
- Posts: 4
- Joined: Sun Jul 15, 2012 6:02 pm
Re: Welcome Message doesn't change when user is logged in
elvarto wrote:Jeremy Fisk wrote:No problem... glad i could help...
If i have been of assistance please feel free to make a donation for my efforts... lol
I would like but is impossible for me right now...
THANKS AGAIN!
Thats ok... im just trying to save up to pay off a student loan... lol
If i have helped... please click here to donate
Bookstore (book store) mod
Template Override - Category Specific (vQmod)
Template Override - Brand Specific (vQmod)
How did you find out about us register question mod
Compulsory Login vQmod
zoom - Product Image - Auto on hover
Latest website
http://www.modehandcare.co.nz/hand-dryers/
Bookstore (book store) mod
Template Override - Category Specific (vQmod)
Template Override - Brand Specific (vQmod)
How did you find out about us register question mod
Compulsory Login vQmod
zoom - Product Image - Auto on hover
Latest website
http://www.modehandcare.co.nz/hand-dryers/
-

Jeremy Fisk - Posts: 924
- Joined: Thu Nov 11, 2010 10:11 am
- Location: New Zealand (Masterton, Wairarapa)
Re: [Solved] Welcome message doesn't change when user is log
Hi jeremy
i'm having the same problem. I'm not using default theme.
what actually need to be changed in the header?
same problems, i already logged in, but at home page, it still asking me to login. however, when i go to any other pages, it shows that i already logged in.
thanks
i'm having the same problem. I'm not using default theme.
what actually need to be changed in the header?
same problems, i already logged in, but at home page, it still asking me to login. however, when i go to any other pages, it shows that i already logged in.
thanks
- hasbullah
- Posts: 2
- Joined: Mon Jan 14, 2013 5:09 am
11 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 23 guests













