Zen Cart Logo
Forums / Customization from the Admin / v157b removing product images from invoices

v157b removing product images from invoices

Views: 6,586

Results 1 to 9 of 9
12 Jan 2021, 4:55 AM
#1
p1drobert2 avatar

p1drobert2

New Zenner

Join Date:
Feb 2019
Location:
Melbourne Australia
Posts:
61
Plugin Contributions:
0

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.

12 Jan 2021, 5:48 AM
#2
oldngrey avatar

oldngrey

Zen Follower

Join Date:
Apr 2008
Location:
Qld, Australia
Posts:
417
Plugin Contributions:
0

Re: v157b removing product images from invoices

Near the top of admin/invoice.php there is a line ```
$show_product_images = true;


Make a backup of the original file before you change things.
2 Feb 2021, 12:48 AM
#3
p1drobert2 avatar

p1drobert2

New Zenner

Join Date:
Feb 2019
Location:
Melbourne Australia
Posts:
61
Plugin Contributions:
0

Re: v157b removing product images from invoices

OldNGrey:

Near the top of admin/invoice.php there is a line ```
$show_product_images = true;

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

Yes,  That worked.   Thank you.
7 Feb 2021, 7:09 PM
#4
brittainmark avatar

brittainmark

Totally Zenned

Join Date:
Apr 2009
Posts:
507
Plugin Contributions:
1

Re: v157b removing product images from invoices

Should this be a configuration option?

8 Feb 2021, 7:08 AM
#5
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: v157b removing product images from invoices

brittainmark:

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?

9 Feb 2021, 3:59 AM
#6
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

Re: v157b removing product images from invoices

brittainmark:

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.

10 Sep 2023, 6:47 AM
#7
lance_turner avatar

lance_turner

New Zenner

Join Date:
Jul 2016
Posts:
61
Plugin Contributions:
0

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

10 Sep 2023, 9:20 AM
#8
brittainmark avatar

brittainmark

Totally Zenned

Join Date:
Apr 2009
Posts:
507
Plugin Contributions:
1

Re: v157b removing product images from invoices

Lance Turner:

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.