Results 1 to 9 of 9
  1. #1
    Join Date
    Feb 2019
    Location
    Melbourne Australia
    Posts
    42
    Plugin Contributions
    0

    Default v157b removing product images from invoices

    With the latest zencart version 1.5.7b invoices generated for the customer contain pictures of the products being sold. This results in the invoices taking several pages to print out instead of the usual one page.

    Is there a way to remove product images from the invoice. I've searched but could not find any references to this.

  2. #2
    Join Date
    Apr 2008
    Location
    Qld, Australia
    Posts
    257
    Plugin Contributions
    6

    Default Re: v157b removing product images from invoices

    Near the top of admin/invoice.php there is a line
    Code:
    $show_product_images = true;
    try setting this to false.

    Make a backup of the original file before you change things.

  3. #3
    Join Date
    Feb 2019
    Location
    Melbourne Australia
    Posts
    42
    Plugin Contributions
    0

    Default Re: v157b removing product images from invoices

    Quote Originally Posted by OldNGrey View Post
    Near the top of admin/invoice.php there is a line
    Code:
    $show_product_images = true;
    try setting this to false.

    Make a backup of the original file before you change things.
    Yes, That worked. Thank you.

  4. #4
    Join Date
    Apr 2009
    Posts
    418
    Plugin Contributions
    2

    Default Re: v157b removing product images from invoices

    Should this be a configuration option?
    Mark Brittain
    http:\\innerlightcrystals.co.uk\sales\

  5. #5
    Join Date
    Jul 2012
    Posts
    16,734
    Plugin Contributions
    17

    Default Re: v157b removing product images from invoices

    Quote Originally Posted by brittainmark View Post
    Should this be a configuration option?
    I'm perhaps already tainted. In a way I think that no not needed (perhaps yet) as a database admin switch.. may be better to have more "hints" to get to it, but those will come with time and others pointing it out. There are/remain items throughout that are not database set values. Perhaps could identify why this should be considered for an admin setting?
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  6. #6
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: v157b removing product images from invoices

    Quote Originally Posted by brittainmark View Post
    Should this be a configuration option?
    We're really trying to avoid adding a zillion more configuration switches to the admin since people always complain that there's too many and they can't find anything.
    Plus, configuration switches involve adding database entries, which makes PHP coding changes no longer able to be standalone independent of having to run an upgrade.
    .

    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.

  7. #7
    Join Date
    Jul 2016
    Posts
    56
    Plugin Contributions
    0

    Default Re: v157b removing product images from invoices

    Older thread, I realise, but this absolutely needs to be an option (couldn't find it in 1.5.8a, if it's there, please post where it's hiding). I print an invoice for each order and the images are making the invoices ugly and almost unworkable, as well as wasting paper...

  8. #8
    Join Date
    Apr 2009
    Posts
    418
    Plugin Contributions
    2

    Default Re: v157b removing product images from invoices

    Quote Originally Posted by Lance Turner View Post
    Older thread, I realise, but this absolutely needs to be an option (couldn't find it in 1.5.8a, if it's there, please post where it's hiding). I print an invoice for each order and the images are making the invoices ugly and almost unworkable, as well as wasting paper...
    This was added to 1.5.8a you need to rename admin/includes/extra_datafiles/dist_site_specific_admin_overrides.php to admin/includes/extra_datafiles/site_specific_admin_overrides.php and set the value of $show_product_images and $show_product_images_pack to false if you don't want to display the images on invoices and packing slips.
    Mark Brittain
    http:\\innerlightcrystals.co.uk\sales\

  9. #9
    Join Date
    Aug 2007
    Location
    Gijón, Asturias, Spain
    Posts
    2,591
    Plugin Contributions
    30

    Default Re: v157b removing product images from invoices

    Steve
    github.com/torvista: Spanish Language Pack, Google reCaptcha, Structured Data, Multiple Copy-Move-Delete, Image Checker, BackupMySQL Admin/Auto...

 

 

Similar Threads

  1. v157 Upgrade from v157 to v157b vs SBA
    By jodean in forum Upgrading to 1.5.x
    Replies: 6
    Last Post: 27 Nov 2020, 09:26 PM
  2. removing URL from invoices when printing
    By psr racing in forum Managing Customers and Orders
    Replies: 5
    Last Post: 29 Jun 2010, 06:26 PM
  3. Removing Images From Product Pages without removing them from Category Pages
    By googlepasta in forum Templates, Stylesheets, Page Layout
    Replies: 23
    Last Post: 5 Jan 2008, 04:06 PM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR