Zen Cart Logo
Forums / Managing Customers and Orders / Remove Company from Email and Invoice

Remove Company from Email and Invoice

Locked

Views: 2,264

Results 1 to 8 of 8
This thread is locked. New replies are disabled.
1 Apr 2007, 12:26 PM
#1
godspeed27 avatar

godspeed27

Zen Follower

Join Date:
May 2006
Location:
Japan
Posts:
322
Plugin Contributions:
1

Remove Company from Email and Invoice

I have changed my address order of things so that the company name comes before the customers name using the a sql of $company before the name. The problem is that the email comes up like this:

COMPANY NAME(THIS I WANT TO GO AWAY)
ADDRESS
ADDRESS
ADDRESS
COMPANY NAME (THIS IS THE ONE I WANT)
NAME

I am guessing that the order.php file is the one adding this, just can't find the right part of the code to change. Any help would be great.

Thanks,
Godspeed27

5 Apr 2007, 12:34 AM
#2
theoracle avatar

theoracle

Suspended

Join Date:
Aug 2004
Posts:
3,180
Plugin Contributions:
1

Re: Remove Company from Email and Invoice

You can also edit your /email directory and remove these initials from your HTML files (which would be much safer than editing includes/classes/order.php file). :wink2:

Doing a backup before proceeding would also be a good idea in this case.

5 Apr 2007, 2:07 AM
#3
godspeed27 avatar

godspeed27

Zen Follower

Join Date:
May 2006
Location:
Japan
Posts:
322
Plugin Contributions:
1

Re: Remove Company from Email and Invoice

I don't use HTML emails, as I had problems with them for Japanese, that was a while back, I could try again but I am trying to update the Japanese language pack to 1.3.6.

Here the company name doesn't come 1st.

Thanks for the idea but I really would like to remove it all together.

5 Apr 2007, 9:30 AM
#4
theoracle avatar

theoracle

Suspended

Join Date:
Aug 2004
Posts:
3,180
Plugin Contributions:
1

Re: Remove Company from Email and Invoice

In your includes/classes/order.php file,

you can customize this line:

//intro area
$email_order = EMAIL_TEXT_HEADER . EMAIL_TEXT_FROM . STORE_NAME . "\n\n" .

Of course, you'd want to backup the file first, since this is not part of the overrides. :)

26 May 2007, 8:27 AM
#5
godspeed27 avatar

godspeed27

Zen Follower

Join Date:
May 2006
Location:
Japan
Posts:
322
Plugin Contributions:
1

Re: Remove Company from Email and Invoice

If I could get more info on this that would be great. I can't seem to find the right thing to remove.

26 May 2007, 10:54 AM
#6
theoracle avatar

theoracle

Suspended

Join Date:
Aug 2004
Posts:
3,180
Plugin Contributions:
1

Re: Remove Company from Email and Invoice

//intro area

There's only one line called like that under your includes/classes/order.php file. Simply find that particular line on that file and apply the modifications above. :wink2:

28 May 2007, 10:26 AM
#7
godspeed27 avatar

godspeed27

Zen Follower

Join Date:
May 2006
Location:
Japan
Posts:
322
Plugin Contributions:
1

Re: Remove Company from Email and Invoice

TheOracle, I see the area you are talking about, but I don't see where company is being called from. I will try to mess around with it and see what I come up with.

28 May 2007, 11:30 AM
#8
godspeed27 avatar

godspeed27

Zen Follower

Join Date:
May 2006
Location:
Japan
Posts:
322
Plugin Contributions:
1

Re: Remove Company from Email and Invoice

You know I really don't need to remove it, just change the order of where it is. That would work too, almost better.