Forums / Basic Configuration / File that controls the company field position in the Invoice

File that controls the company field position in the Invoice

Locked

Started by imm on 10 Aug 2007, 9:20 AM · Views: 2,729

Results 1 to 7 of 7
This thread is locked. New replies are disabled.
10 Aug 2007, 9:20 AM
#1
imm avatar

imm

New Zenner

Join Date:
Aug 2007
Posts:
29
Plugin Contributions:
0

File that controls the company field position in the Invoice

Witch is the file that control the field layout of the invoice?

I want to put the , company field at the end.

Thanks.

10 Aug 2007, 12:15 PM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: File that controls the company field position in the Invoice

Grab some of the common text in the invoice and use the admin > tools > developer toolkit > to locate the files

Zen-Venom Get Bitten

10 Aug 2007, 1:21 PM
#3
imm avatar

imm

New Zenner

Join Date:
Aug 2007
Posts:
29
Plugin Contributions:
0

Re: File that controls the company field position in the Invoice

kobra:

Grab some of the common text in the invoice and use the admin > tools > developer toolkit > to locate the files

I Know that process. But I can't find.

Company
Name
Address
Address
City, 0000
City, Country

And I want to move the field Company to the end

:huh:

10 Aug 2007, 2:32 PM
#4
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: File that controls the company field position in the Invoice

KoBra:

Grab some of the common text in the invoice and use the admin > tools > developer toolkit > to locate the files
Not the specific text that you want as this is referenced and grabs the store details, other common text in the invoice to locate the file

Zen-Venom Get Bitten

11 Aug 2007, 6:21 AM
#5
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,511
Plugin Contributions:
176

Re: File that controls the company field position in the Invoice

It's a little obscure, since the address details are built based on the appropriate format for the country they're related to.

The company name is simply added on top.

You can change it by finding the followingif ( (ACCOUNT_COMPANY == 'true') && (zen_not_null($company)) ) { $address = $company . $cr . $address; }and changing it like this:```
if ( (ACCOUNT_COMPANY == 'true') && (zen_not_null($company)) ) {
$address = [B]$address[/B] . $cr . [B]$company;[/B]
}

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

11 Aug 2007, 7:57 AM
#6
imm avatar

imm

New Zenner

Join Date:
Aug 2007
Posts:
29
Plugin Contributions:
0

Re: File that controls the company field position in the Invoice

DrByte:

It's a little obscure, since the address details are built based on the appropriate format for the country they're related to.

The company name is simply added on top.

You can change it by finding the followingif ( (ACCOUNT_COMPANY == 'true') && (zen_not_null($company)) ) { $address = $company . $cr . $address; }and changing it like this:```
if ( (ACCOUNT_COMPANY == 'true') && (zen_not_null($company)) ) {
$address = [B]$address[/B] . $cr . [B]$company;[/B]
}


Hi, Yes is that. I've allready looked at this file but don't manage to find out what was the code the controled the position of the fields.

I have a little correction to make is:

if ( (ACCOUNT_COMPANY == 'true') && (zen_not_null($company)) ) {

  $address_out = $address[B]_out[/B] . $cr . $company;
11 Aug 2007, 8:44 AM
#7
imm avatar

imm

New Zenner

Join Date:
Aug 2007
Posts:
29
Plugin Contributions:
0

Re: File that controls the company field position in the Invoice

I cannot edit the other post...

I've find the file that controls the invoice in admin. Is located in:
/admin/includes/functions/general.php