Page 1 of 2 12 LastLast
Results 1 to 10 of 11
  1. #1
    Join Date
    Aug 2008
    Location
    Sydney Australia
    Posts
    498
    Plugin Contributions
    0

    Default Remove image on Invoice(Order Number)

    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.

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

    Default Re: Remove image on Invoice(Order Number)

    In admin/includes/languages/english/lang.invoice.php I have added three additional constants
    Code:
        'TITLE_INVOICE' => 'Tax Invoice',    'IMAGE_ON_INVOICE_IMAGE_WIDTH' => '50',
        'IMAGE_ON_INVOICE_IMAGE_SHOW' => False, //BMH addition
    and in admin/invoice.php at about line 15 I added
    Code:
    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
    and at about line 64 i also added
    Code:
    <br>
                <span class="pageHeadingTax"><?php echo TITLE_INVOICE;?> </span>
    before the </td> immediately after HEADER_ALT_TEXT.

    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

  3. #3
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,498
    Plugin Contributions
    88

    Default Re: Remove image on Invoice(Order Number)

    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

    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;
    to
    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;

  4. #4
    Join Date
    Aug 2008
    Location
    Sydney Australia
    Posts
    498
    Plugin Contributions
    0

    Default Re: Remove image on Invoice(Order Number)

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

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

  5. #5
    Join Date
    Aug 2008
    Location
    Sydney Australia
    Posts
    498
    Plugin Contributions
    0

    Default Re: Remove image on Invoice(Order Number)

    Hi lat9,

    I don't know if you understood the question of which was I wanted to remove the image from the invoice ONLY.

    The code below removes both invoice and packingslip images which is not what I requested.

    If you can supply the correct code it would be appreciated.

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

    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;
    to
    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;

  6. #6
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,498
    Plugin Contributions
    88

    Default Re: Remove image on Invoice(Order Number)

    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;

  7. #7
    Join Date
    Aug 2008
    Location
    Sydney Australia
    Posts
    498
    Plugin Contributions
    0

    Default Re: Remove image on Invoice(Order Number)

    Quote Originally Posted by lat9 View Post
    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;
    So what you are saying is that you only have the one option when using 1.5.8a version.

    Either you have images or you don't is that correct.

    You don't have the option either or for images regarding invoices or packingslips.

  8. #8
    Join Date
    Apr 2006
    Location
    West Salem, IL
    Posts
    2,748
    Plugin Contributions
    0

    Default Re: Remove image on Invoice(Order Number)

    RTFM.... it is simple...if you think it out or ask a 12 yr old....
    Code:
    $show_product_images = false;
    $show_product_images_pack = true;
    $show_product_images = false; < means do not show image on packing list
    $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
    GeekHost - Zen Cart Certified & PCI Compliant Hosting
    The Zen Cart Forum...Better than a monitor covered with post-it notes!

  9. #9
    Join Date
    Aug 2008
    Location
    Sydney Australia
    Posts
    498
    Plugin Contributions
    0

    Default Re: Remove image on Invoice(Order Number)

    Quote Originally Posted by barco57 View Post
    RTFM.... it is simple...if you think it out or ask a 12 yr old....
    Code:
    $show_product_images = false;
    $show_product_images_pack = true;
    $show_product_images = false; < means do not show image on packing list
    $show_product_images_pack = true; < means show image on packing list
    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;

  10. #10
    Join Date
    Apr 2006
    Location
    West Salem, IL
    Posts
    2,748
    Plugin Contributions
    0

    Default Re: Remove image on Invoice(Order Number)

    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;
    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?
    Mike
    GeekHost - Zen Cart Certified & PCI Compliant Hosting
    The Zen Cart Forum...Better than a monitor covered with post-it notes!

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. v155 How to generate Invoice number ceparately from Order number?
    By perfumbg in forum General Questions
    Replies: 14
    Last Post: 24 Feb 2017, 09:44 PM
  2. v150 Invoice number out of order
    By CaroleAs in forum General Questions
    Replies: 15
    Last Post: 9 Dec 2012, 07:16 AM
  3. Changing Invoice Order Number
    By inkydink in forum General Questions
    Replies: 1
    Last Post: 5 Nov 2008, 12:47 PM
  4. Invoice/Order Number
    By kinget in forum Managing Customers and Orders
    Replies: 9
    Last Post: 18 Sep 2007, 03:48 AM

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