Results 1 to 10 of 14

Hybrid View

  1. #1
    Join Date
    Apr 2008
    Posts
    174
    Plugin Contributions
    0

    Default changing the invoice?

    i want to change the way the invoice prints up.

    i want the quantity to be bigger and red, and add the manufacturer in the description. i'm pretty sure i should change up the invoice.php file but i don't know what to add or delete to make changes. can anyone help please?

  2. #2
    Join Date
    May 2005
    Location
    Western MA, USA
    Posts
    604
    Plugin Contributions
    6

    Default Re: changing the invoice?

    the best way to learn how to do this is to play around w/ the file. I sugest keeping a back up and going nuts.

  3. #3
    Join Date
    Apr 2008
    Posts
    174
    Plugin Contributions
    0

    Default Re: changing the invoice?

    Quote Originally Posted by ########################## View Post
    the best way to learn how to do this is to play around w/ the file. I sugest keeping a back up and going nuts.
    that is not an option for me since the site is live and takes orders.

  4. #4
    Join Date
    Apr 2008
    Posts
    174
    Plugin Contributions
    0

    Default Re: changing the invoice?

    i added this code but it doesnt show the manufacturer.

    anyone know why?

    $order->products[$i]['manufacturer']

  5. #5
    Join Date
    May 2005
    Location
    Western MA, USA
    Posts
    604
    Plugin Contributions
    6

    Default Re: changing the invoice?

    Quote Originally Posted by MachaNeko View Post
    i added this code but it doesnt show the manufacturer.

    anyone know why?

    $order->products[$i]['manufacturer']
    I dont believe that the product manufacturer is saved in the orders database tables and there fore would not be in the array. you will prob have to write another SQL query to get that. it will prob be (this is me not looking up the SQL structure so it may be off in the names) like:
    Code:
    SELECT manufacturers_name FROM manufacturers(M) WHERE products.products_id =  '. $order->products[$i][products_id] . '  AND M.id = products.manufacture_id
    This is are really good opportunity to learn about Zen Cart's brilliant query factory.

  6. #6
    Join Date
    Apr 2008
    Posts
    174
    Plugin Contributions
    0

    Default Re: changing the invoice?

    i was afraid of that. ill try the code and try not to kill anything.

  7. #7
    Join Date
    May 2005
    Location
    Western MA, USA
    Posts
    604
    Plugin Contributions
    6

    Default Re: changing the invoice?

    Another set if tips is never work on a live site.
    I keep a development version of every site I work with in a separate location on the server and tie them to gather with Subversion. that way I dont have to do my work twice but never have to think about crippling a live site up.

 

 

Similar Threads

  1. Changing the VAT of an existing invoice
    By Princess in forum Currencies & Sales Taxes, VAT, GST, etc.
    Replies: 1
    Last Post: 23 Mar 2013, 06:41 AM
  2. changing up the invoice numbers
    By whitetailworld.com in forum Managing Customers and Orders
    Replies: 3
    Last Post: 17 May 2012, 10:39 PM
  3. Changing the Invoice Logo
    By annieb in forum Managing Customers and Orders
    Replies: 6
    Last Post: 19 Feb 2009, 05:17 PM
  4. Changing the sort order of the Products on the super invoice + packing slip
    By DisgruntledGeorge in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 14 Nov 2007, 12:24 PM

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