Results 1 to 7 of 7

Hybrid View

  1. #1
    Join Date
    Aug 2007
    Posts
    29
    Plugin Contributions
    0

    Default 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.

  2. #2
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default 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

  3. #3
    Join Date
    Aug 2007
    Posts
    29
    Plugin Contributions
    0

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

    Quote Originally Posted by kobra View Post
    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


  4. #4
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

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

    Quote Originally Posted by 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

  5. #5
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default 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 following
    Code:
        if ( (ACCOUNT_COMPANY == 'true') && (zen_not_null($company)) ) {
          $address = $company . $cr . $address;
        }
    and changing it like this:
    Code:
        if ( (ACCOUNT_COMPANY == 'true') && (zen_not_null($company)) ) {
          $address = $address . $cr . $company;
        }
    .

    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.

  6. #6
    Join Date
    Aug 2007
    Posts
    29
    Plugin Contributions
    0

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

    Quote Originally Posted by DrByte View Post
    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 following
    Code:
        if ( (ACCOUNT_COMPANY == 'true') && (zen_not_null($company)) ) {
          $address = $company . $cr . $address;
        }
    and changing it like this:
    Code:
        if ( (ACCOUNT_COMPANY == 'true') && (zen_not_null($company)) ) {
          $address = $address . $cr . $company;
        }
    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:

    Code:
     if ( (ACCOUNT_COMPANY == 'true') && (zen_not_null($company)) ) {
    
          $address_out = $address_out . $cr . $company;

 

 

Similar Threads

  1. where is the SQL that controls what the categories side box outputs?
    By edwinx in forum Templates, Stylesheets, Page Layout
    Replies: 9
    Last Post: 20 Mar 2011, 05:50 AM
  2. Replies: 7
    Last Post: 4 Mar 2010, 03:14 AM
  3. Adding a required field during Checkout that Shows on the Invoice
    By Rabbcon in forum Customization from the Admin
    Replies: 13
    Last Post: 28 Jan 2010, 12:04 AM
  4. Where is the page that controls country drop down
    By multichild in forum Templates, Stylesheets, Page Layout
    Replies: 21
    Last Post: 17 Oct 2007, 11:07 AM
  5. Which one is the class or id that controls the categories listing on top of page
    By qm360 in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 9 Jul 2007, 02:35 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg