Hi all,
Can someone tell me where in the hell is the option to stop printing images on the Invoice (Order Number).
1.5.38a is proving to be a real pain in the arse to try to edit anything.
Hi all,
Can someone tell me where in the hell is the option to stop printing images on the Invoice (Order Number).
1.5.38a is proving to be a real pain in the arse to try to edit anything.
Outdoorking
www.outdoorking.com.au
In admin/includes/languages/english/lang.invoice.php I have added three additional constants
and in admin/invoice.php at about line 15 I addedCode:'TITLE_INVOICE' => 'Tax Invoice', 'IMAGE_ON_INVOICE_IMAGE_WIDTH' => '50', 'IMAGE_ON_INVOICE_IMAGE_SHOW' => False, //BMH addition
and at about line 64 i also addedCode:if (!defined('IMAGE_ON_INVOICE_IMAGE_SHOW')) { //BMH defined in lang.invoice.php $show_product_images = False; } else { $show_product_images = IMAGE_ON_INVOICE_IMAGE_SHOW; } //BMH end
before the </td> immediately after HEADER_ALT_TEXT.Code:<br> <span class="pageHeadingTax"><?php echo TITLE_INVOICE;?> </span>
The complete files are in my GitHub https://github.com/OldNGreyBMR/aupos...ional-settings and are referenced in the documentation provided with the aupost shipping plugin
OldNGrey
ZC158a PHP 8.2.15
MySQL 10.6.16-MariaDB
It's actually simpler than that (with no core-file changes required), see https://docs.zen-cart.com/user/admin...fic_overrides/.
Copy the /admin/includes/extra_datafiles/dist-site_specific_admin_overrides.php to /admin/includes/extra_datafiles/site_specific_admin_overrides.php and change
toCode:// ----- // The flags to indicate if attribute images should be displayed in invoice and packing slip. // Used in: admin/invoice.php, admin/packingslip.php // // $show_attrib_images $show_attrib_images_pack // true or unset true or unset ...... attribute images are shown on invoice and packingslip (the default). // false false or unset ...... attribute images are NOT shown on invoice or packingslip. // false true ...... attribute images are NOT shown on invoice but are shown packingslip. // true or unset false ...... attribute images are shown on invoice but are NOT shown packingslip. //$show_attrib_images = true; //$show_attrib_images_pack = true; // Set the width of the attribute image used in packingslip and invoice. // Used in: admin/invoice.php, admin/packingslip.php // // The default is 25. if $show_attrinb_images = false is set above then setting this value will have no effect // Change 25 below to the number of px you require. Do NOT remove the quotes! //$attr_img_width = '25'; // The flags to indicate if product images should be displayed in invoice and packing slip. // Used in: admin/invoice.php, admin/packingslip.php // // $show_product_images $show_product_images_pack // true or unset true or unset ...... product images are shown on invoice and packingslip (the default). // false false or unset ...... product images are NOT shown on invoice or packingslip. // false true ...... product images are NOT shown on invoice but are shown packingslip. // true or unset false ...... product images are shown on invoice and but are NOT shown packingslip. //$show_product_images = true; //$show_product_images_pack = true;
Code:// ----- // The flags to indicate if attribute images should be displayed in invoice and packing slip. // Used in: admin/invoice.php, admin/packingslip.php // // $show_attrib_images $show_attrib_images_pack // true or unset true or unset ...... attribute images are shown on invoice and packingslip (the default). // false false or unset ...... attribute images are NOT shown on invoice or packingslip. // false true ...... attribute images are NOT shown on invoice but are shown packingslip. // true or unset false ...... attribute images are shown on invoice but are NOT shown packingslip. $show_attrib_images = false; $show_attrib_images_pack = false; // Set the width of the attribute image used in packingslip and invoice. // Used in: admin/invoice.php, admin/packingslip.php // // The default is 25. if $show_attrinb_images = false is set above then setting this value will have no effect // Change 25 below to the number of px you require. Do NOT remove the quotes! //$attr_img_width = '25'; // The flags to indicate if product images should be displayed in invoice and packing slip. // Used in: admin/invoice.php, admin/packingslip.php // // $show_product_images $show_product_images_pack // true or unset true or unset ...... product images are shown on invoice and packingslip (the default). // false false or unset ...... product images are NOT shown on invoice or packingslip. // false true ...... product images are NOT shown on invoice but are shown packingslip. // true or unset false ...... product images are shown on invoice and but are NOT shown packingslip. $show_product_images = false; $show_product_images_pack = false;
This should have been included in the configuration section so you would just have to select true or false because not everyone is a code expert.
Something to add to the list on the next update so that it user-friendly.
Thank you for the information supplied, it is appreciated.
Outdoorking
www.outdoorking.com.au
I did misunderstand what you wanted, but the comments in that file are pretty clear:
Code:// ----- // The flags to indicate if attribute images should be displayed in invoice and packing slip. // Used in: admin/invoice.php, admin/packingslip.php // // $show_attrib_images $show_attrib_images_pack // true or unset true or unset ...... attribute images are shown on invoice and packingslip (the default). // false false or unset ...... attribute images are NOT shown on invoice or packingslip. // false true ...... attribute images are NOT shown on invoice but are shown packingslip. // true or unset false ...... attribute images are shown on invoice but are NOT shown packingslip. //$show_attrib_images = true; //$show_attrib_images_pack = true; // Set the width of the attribute image used in packingslip and invoice. // Used in: admin/invoice.php, admin/packingslip.php // // The default is 25. if $show_attrinb_images = false is set above then setting this value will have no effect // Change 25 below to the number of px you require. Do NOT remove the quotes! //$attr_img_width = '25'; // The flags to indicate if product images should be displayed in invoice and packing slip. // Used in: admin/invoice.php, admin/packingslip.php // // $show_product_images $show_product_images_pack // true or unset true or unset ...... product images are shown on invoice and packingslip (the default). // false false or unset ...... product images are NOT shown on invoice or packingslip. // false true ...... product images are NOT shown on invoice but are shown packingslip. // true or unset false ...... product images are shown on invoice and but are NOT shown packingslip. //$show_product_images = true; //$show_product_images_pack = true;
RTFM.... it is simple...if you think it out or ask a 12 yr old....
$show_product_images = false; < means do not show image on packing listCode:$show_product_images = false; $show_product_images_pack = true;
$show_product_images_pack = true; < means show image on packing list
Last edited by barco57; 24 Dec 2023 at 02:05 AM. Reason: retardation of explination cause stupid
Mike
AEIIA - Zen Cart Certified & PCI Compliant Hosting
The Zen Cart Forum...Better than a monitor covered with post-it notes!
Hi Mike,
Do you have the name of the 12 year old because I made the changes to this file admin/includes/extra_datafiles/site_specific_admin_overrides.php which was recommended by lat9 and nothing changed still the same.
I now have no images showing at all on both invoices or packingslips.
This is what is in the file:
// The flags to indicate if attribute images should be displayed in invoice and packing slip.
// Used in: admin/invoice.php, admin/packingslip.php
//
// $show_attrib_images $show_attrib_images_pack
// true or unset true or unset ...... attribute images are shown on invoice and packingslip (the default).
// false false or unset ...... attribute images are NOT shown on invoice or packingslip.
// false true ...... attribute images are NOT shown on invoice but are shown packingslip.
// true or unset false ...... attribute images are shown on invoice but are NOT shown packingslip.
//$show_attrib_images = true;
//$show_attrib_images_pack = true;
// Set the width of the attribute image used in packingslip and invoice.
// Used in: admin/invoice.php, admin/packingslip.php
//
// The default is 25. if $show_attrinb_images = false is set above then setting this value will have no effect
// Change 25 below to the number of px you require. Do NOT remove the quotes!
//$attr_img_width = '25';
// The flags to indicate if product images should be displayed in invoice and packing slip.
// Used in: admin/invoice.php, admin/packingslip.php
//
// $show_product_images $show_product_images_pack
// true or unset true or unset ...... product images are shown on invoice and packingslip (the default).
// false false or unset ...... product images are NOT shown on invoice or packingslip.
// false true ...... product images are NOT shown on invoice but are shown packingslip.
// true or unset false ...... product images are shown on invoice and but are NOT shown packingslip.
//$show_product_images = true;
//$show_product_images_pack = true;
Outdoorking
www.outdoorking.com.au
make sure you have removed the // from the appropriate lines to uncomment them. As I recall from somewhere else you had super orders installed and removed it... did you remove the super orders versions off the invoice and packing slip and put back the stock versions of the files?Code:// The flags to indicate if attribute images should be displayed in invoice and packing slip. // Used in: admin/invoice.php, admin/packingslip.php // // $show_attrib_images $show_attrib_images_pack // true or unset true or unset ...... attribute images are shown on invoice and packingslip (the default). // false false or unset ...... attribute images are NOT shown on invoice or packingslip. // false true ...... attribute images are NOT shown on invoice but are shown packingslip. // true or unset false ...... attribute images are shown on invoice but are NOT shown packingslip. //$show_attrib_images = true; //$show_attrib_images_pack = true; // Set the width of the attribute image used in packingslip and invoice. // Used in: admin/invoice.php, admin/packingslip.php // // The default is 25. if $show_attrinb_images = false is set above then setting this value will have no effect // Change 25 below to the number of px you require. Do NOT remove the quotes! //$attr_img_width = '25'; // The flags to indicate if product images should be displayed in invoice and packing slip. // Used in: admin/invoice.php, admin/packingslip.php // // $show_product_images $show_product_images_pack // true or unset true or unset ...... product images are shown on invoice and packingslip (the default). // false false or unset ...... product images are NOT shown on invoice or packingslip. // false true ...... product images are NOT shown on invoice but are shown packingslip. // true or unset false ...... product images are shown on invoice and but are NOT shown packingslip. $show_product_images = false; $show_product_images_pack = true;
Mike
AEIIA - Zen Cart Certified & PCI Compliant Hosting
The Zen Cart Forum...Better than a monitor covered with post-it notes!
Bookmarks