Post by jmrchaves » Thu Dec 24, 2009 8:13 am

Hey great add-on Fido-x

Let me ask you is it possible to add to this a not you? button?

Example

Welcome, customer Not you?(->this would go to login page)

Thanks, great contrib

Newbie

Posts

Joined
Sun Dec 20, 2009 9:20 pm

Post by Yakiv » Thu Dec 24, 2009 8:01 pm

jmrchaves wrote:Hey great add-on Fido-x

Let me ask you is it possible to add to this a not you? button?

Example

Welcome, customer Not you?(->this would go to login page)

Thanks, great contrib
This is a good suggestion, but shouldn't it log them out, if they click on "Not you?"?

Active Member

Posts

Joined
Tue Dec 15, 2009 5:31 pm

Post by viniciusdepaula » Wed Dec 30, 2009 10:20 am

Great job!!!

Tks ;D


Posts

Joined
Wed Dec 30, 2009 1:42 am

Post by nocko » Mon Feb 08, 2010 5:00 am

Beautiful! Thanks!

New member

Posts

Joined
Tue Jan 26, 2010 2:14 pm

Post by Cristina » Fri Feb 12, 2010 4:28 am

GREAT JOB!! THANK YOU SO MUCH!! ;)

User avatar
New member

Posts

Joined
Fri Feb 05, 2010 4:41 am
Location - Zandvoort, The Netherlands

Post by The Alchemist » Fri Feb 12, 2010 11:11 am

nice mod

User avatar
Active Member

Posts

Joined
Sun Nov 22, 2009 11:04 am

Post by melbagnato » Sun Feb 14, 2010 9:33 pm

In my real-world job, I do a lot of consulting to large companies, and their marketing principles seem to revolve around the following concepts:
(1) gather as much useful information about the customer as possible
(2) have logical use for that information in your product selection & promotions

Whilst having the ability to greet someone correctly is great (infact in Germany it can be insulting not to use someone's title as it's a a sign of respect for their qualifications etc.), I feel that having the ability to know that a product is better suited to a woman rather than a man is great for promotional purposes.

That said, it means that you need to extend your product metadata to include these new fields too (in order to make use of this new real-time sales smarts), and possibly change way too many php files to be able to upgrade or take advantage of other people's mods.

IMHO, if you just want salutation, then I agree the effort isn't worth the risk of a mistake happening (even if it's caused by the customer), plus not everyone wants to divulge their sex as part of registration.

But, if you're thinking of collecting it as part of additional marketing fields to be used for analytics and sales promotions, then you've got a pretty difficult journey of mods ahead of you. My thoughts are with you.

- [MB]

http://online.enterpriseconsulting.com.au

Site with OpenCart extensions & code downloads, many new extensions coming soon!
Follow us on twitter for more updates

Image


User avatar
Active Member

Posts

Joined
Wed Jan 13, 2010 1:39 pm
Location - Melbourne

Post by The Alchemist » Mon Mar 15, 2010 12:51 pm

Will this work in 1.4.0?

User avatar
Active Member

Posts

Joined
Sun Nov 22, 2009 11:04 am

Post by luiseduardo » Sat Mar 27, 2010 6:15 am

The Alchemist wrote:Will this work in 1.4.0?
Good question... this is full of useless contributions since version is getting changed every week.

New member

Posts

Joined
Sat Mar 06, 2010 6:09 pm

Post by The Alchemist » Tue Mar 30, 2010 12:31 pm

Plus 1 they should have a contribs section with sub sections for versions.

User avatar
Active Member

Posts

Joined
Sun Nov 22, 2009 11:04 am

Post by Vivian » Fri Jun 04, 2010 11:38 pm

Hi fido-x,

Can it be used on 1.4.7?

Vivian

New member

Posts

Joined
Tue May 18, 2010 9:36 am

Post by Vivian » Sat Jun 05, 2010 12:28 am

Hi,

I am running 1.4.7 and it gives me the following error when I try to run.

Fatal error: Call to a member function https() on a non-object in /content/HostingPlus/v/m/vmaxx.ie/web/catalog/controller/common/header.php on line 60

Can anyone explain what's wrong?

Vivian

New member

Posts

Joined
Tue May 18, 2010 9:36 am

Post by fido-x » Sat Jun 05, 2010 9:32 am

Vivian wrote:Hi,

I am running 1.4.7 and it gives me the following error when I try to run.

Fatal error: Call to a member function https() on a non-object in /content/HostingPlus/v/m/vmaxx.ie/web/catalog/controller/common/header.php on line 60

Can anyone explain what's wrong?

Vivian
To make this compatible with 1.4.7, in "catalog/controller/common/header.php" change the following 2 lines:-

Code: Select all

$this->data['create'] = $this->url->https('account/create');
$this->data['account'] = $this->url->https('account/account'); 
To:

Code: Select all

$this->data['create'] = HTTPS_SERVER . 'index.php?route=account/create';
$this->data['account'] = HTTPS_SERVER . 'index.php?route=account/account';  
In your case, this will be lines 60 and 61.

Image
Modules for OpenCart 2.3.0.2
Homepage Module [Free - since OpenCart 0.7.7]
Multistore Extensions
Store Manager Multi-Vendor/Multi-Store management tool

If you're not living on the edge ... you're taking up too much space!


User avatar
Expert Member

Posts

Joined
Sat Jun 28, 2008 1:09 am
Location - Tasmania, Australia

Post by Vivian » Sat Jun 05, 2010 5:26 pm

Hi fido-x,

I have made the changes as you said but it is displaying - text_greeting [lig in] [account]

No name appearing only string name even after I log in.

After log in it displays the string name - text_logged

Vivian

New member

Posts

Joined
Tue May 18, 2010 9:36 am

Post by fido-x » Sun Jun 06, 2010 11:55 am

Looks like you missed a step with the language file. Put the following in "catalog/language/english/common/header.php":-

Code: Select all

$_['text_greeting'] = 'Welcome, <strong>Guest</strong>';
$_['text_logged']   = 'Welcome back, <strong>%s</strong>';
$_['text_create']   = 'Register';
$_['text_account']  = 'Account'; 

Image
Modules for OpenCart 2.3.0.2
Homepage Module [Free - since OpenCart 0.7.7]
Multistore Extensions
Store Manager Multi-Vendor/Multi-Store management tool

If you're not living on the edge ... you're taking up too much space!


User avatar
Expert Member

Posts

Joined
Sat Jun 28, 2008 1:09 am
Location - Tasmania, Australia

Post by Vivian » Sun Jun 06, 2010 6:10 pm

Hi fido-x,

Did that but this is all that appears when page is loaded - text_greeting [ Log In ] [ text_create ]

Thanks

Vivian

New member

Posts

Joined
Tue May 18, 2010 9:36 am

Post by fido-x » Sun Jun 06, 2010 9:05 pm

OK. Here's some updated instructions for OpenCart 1.4.7.

catalog/controller/common/header.php
Insert the following (around line 104):

Code: Select all

// Greeting in header
if (!$this->customer->isLogged()) {
    $this->data['text_greeting'] = $this->language->get('text_greeting');
} else {
    $this->data['text_greeting'] = sprintf($this->language->get('text_logged'), $this->customer->getFirstName());
}
$this->data['text_create'] = $this->language->get('text_create');
$this->data['create'] = HTTPS_SERVER . 'index.php?route=account/create';
// End Greeting in header     
catalog/language/english/common/header.php
Insert the following:

Code: Select all

// Greeting Text
$_['text_greeting'] = 'Welcome, <strong>Guest</strong>';
$_['text_logged']   = 'Welcome back, <strong>%s</strong>';
$_['text_create']   = 'Register';
// End Greeting Text    
catalog/view/theme/default/template/common/header.tpl
Insert the following where you want the welcome message to appear:

Code: Select all

<div class="welcome">
  <?php echo $text_greeting; ?>
  <?php if (!$logged) { ?>
  [ <a href="<?php echo $login; ?>"><?php echo $text_login; ?></a> ] [ <a href="<?php echo $create; ?>"><?php echo $text_create; ?></a> ]
  <?php } else { ?>
  [ <a href="<?php echo $logout; ?>"><?php echo $text_logout; ?></a> ] [ <a href="<?php echo $account; ?>"><?php echo $text_account; ?></a> ]
  <?php } ?>
</div>
catalog/view/theme/default/stylesheet/stylesheet.css
Give it some style (eg. margins, padding, etc.):

Code: Select all

#header .welcome {
    float: left;
    display: block;
    margin-top: 20px;
    margin-bottom: 10px;
    padding-left: 0px;
}
#header .welcome a {
    margin: 0px;
    padding: 0px;
    background: none;
}
 

Image
Modules for OpenCart 2.3.0.2
Homepage Module [Free - since OpenCart 0.7.7]
Multistore Extensions
Store Manager Multi-Vendor/Multi-Store management tool

If you're not living on the edge ... you're taking up too much space!


User avatar
Expert Member

Posts

Joined
Sat Jun 28, 2008 1:09 am
Location - Tasmania, Australia

Post by silanli_53 » Thu Jul 01, 2010 8:59 am

How can we show the surname.?

welcome; name lastname



Thanks

Cafe Koltuk Çeşitleri

Laptop Sırt Çantası


User avatar
New member

Posts

Joined
Fri Feb 19, 2010 8:54 am


Post by fido-x » Thu Jul 08, 2010 5:18 pm

silanli_53 wrote:How can we show the surname.?

welcome; name lastname
Use this in the header controller (catalog/controller/common/header.php):

Code: Select all

// Greeting in header
if (!$this->customer->isLogged()) {
    $this->data['text_greeting'] = $this->language->get('text_greeting');
} else {
    $this->data['text_greeting'] = sprintf($this->language->get('text_logged'), $this->customer->getFirstName() . ' ' . $this->customer->getLastName());
}
$this->data['text_create'] = $this->language->get('text_create');
$this->data['create'] = HTTPS_SERVER . 'index.php?route=account/create';
// End Greeting in header   

Image
Modules for OpenCart 2.3.0.2
Homepage Module [Free - since OpenCart 0.7.7]
Multistore Extensions
Store Manager Multi-Vendor/Multi-Store management tool

If you're not living on the edge ... you're taking up too much space!


User avatar
Expert Member

Posts

Joined
Sat Jun 28, 2008 1:09 am
Location - Tasmania, Australia

Post by Maansy » Tue Jul 13, 2010 10:47 am

thank you :)
but why there is big space?
Welcome, Guest [........ Log In ] [........Register ]
see it live

also can you provide how to add total cart items and total cart amount? plz answer here. i dont want to H/J this post
thanks

ALL Templates :: 1.5.1+ Templates :: 50%-75% PRICE DROP ONLY at OpencartStuff.com


User avatar
Active Member

Posts

Joined
Thu Jun 24, 2010 6:04 am

Who is online

Users browsing this forum: No registered users and 12 guests