Results 1 to 10 of 77

Hybrid View

  1. #1
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    10,532
    Plugin Contributions
    127

    Default Re: Catalog Invoice Support Thread

    OK an update has been submitted for 1.5.8.

    https://www.zen-cart.com/downloads.php?do=file&id=2111

    The CSS needs some tweaking; I'll do that as soon as I can.
    That Software Guy. My Store: Zen Cart Support
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

  2. #2
    Join Date
    Mar 2005
    Location
    United Kingdom
    Posts
    608
    Plugin Contributions
    0

    Default Re: Catalog Invoice Support Thread

    Thanks for this Scott. Been testing for you and here is my feedback.

    If I want to turn off images should I hard code the setting in \invoice.php? The new override settings that work with admin\invoice.php won't be pulled through.

    The latest version works in PHP 7.4 but fails in PHP 8.0

    Code:
    [05-Feb-2023 14:11:26 Europe/London] PHP Fatal error: Uncaught Error: Undefined constant "TABLE_HEADING_PRICE_EXCLUDING_TAX" in /invoice.php:214
    Stack trace:
    #0 {main}
    thrown in /invoice.php on line 214
    
    [05-Feb-2023 14:11:26 Europe/London] Request URI: /store158/invoice.php?oID=31848, IP address: 77.108.141.0
    --> PHP Fatal error: Uncaught Error: Undefined constant "TABLE_HEADING_PRICE_EXCLUDING_TAX" in /invoice.php:214
    Stack trace:
    #0 {main}
    thrown in /invoice.php on line 214.
    I fixed this by adding entries to my \includes\languages\english\lang.invoice.php file but don't know if this is the best way or if the error was caused by some other issue I have.

    Code:
        'TABLE_HEADING_PRICE_EXCLUDING_TAX' => 'Price (excl)',
        'TABLE_HEADING_PRICE_INCLUDING_TAX' => 'Price (incl)',
        'TABLE_HEADING_TOTAL_EXCLUDING_TAX' => 'Total (excl)',
        'TABLE_HEADING_TOTAL_INCLUDING_TAX' => 'Total (incl)',
    You also have two old files in your latest update. I have ported the changes across my end but so this is just for other users.
    Firstly
    \includes\templates\custom\templates\tpl_account_default.php
    This is using
    @version $Id: Scott C Wilson 2019 Jan 14 Modified in v1.5.6b $
    and the latest version is
    @version $Id: lat9 2022 May 26 Modified in v1.5.8-alpha $
    Secondly
    \includes\templates\custom\templates\tpl_account_history_default.php
    Is based on
    @version $Id: Author: DrByte Sat Jan 9 13:13:41 2016 -0500 Modified in v1.5.5 $
    but the latest version is
    @version $Id: lat9 2022 Jul 23 Modified in v1.5.8-alpha2 $

  3. #3
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    10,532
    Plugin Contributions
    127

    Default Re: Catalog Invoice Support Thread

    Language file changes are correct - I'll add on the next update.

    The template changes are really just an example - you have to merge the changes into your own template files.
    That Software Guy. My Store: Zen Cart Support
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

  4. #4
    Join Date
    Mar 2005
    Location
    United Kingdom
    Posts
    608
    Plugin Contributions
    0

    Default Re: Catalog Invoice Support Thread

    Quote Originally Posted by swguy View Post
    The template changes are really just an example - you have to merge the changes into your own template files.
    I understand that. It was more a notification for other users as they will see 1.5.8 ready and make assumptions. I got caught out by this when I started on this journey. Hard for someone who reads and writes code to understand

    For anyone trying to remove images changing line 44 in /invoice.php did the trick for me.

    Code:
    $show_product_images = $show_product_images ?? false;

  5. #5
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    10,532
    Plugin Contributions
    127

    Default Re: Catalog Invoice Support Thread

    css was referencing files that weren't included; this has been fixed in the latest update.
    That Software Guy. My Store: Zen Cart Support
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

  6. #6
    Join Date
    Sep 2024
    Location
    Noord Holland
    Posts
    24
    Plugin Contributions
    4

    Default Printbutton in invoice

    Hello,


    I wanted a print button to print the invoice. There were a number of conditions I wanted to meet. 1) The print button was not allowed to be printed. 2) no header and footer of the (html) page were allowed to be printed.

    Below is the solution:

    Place the following code in the invoice.php file (under line 89), or just before </head>:
    Code:
    <style type="text/css">
        @media print {
          .noPrint{
            display:none;
          }
    }
         @page {
            margin-left: 0.5in;
            margin-right: 0.5in;
            margin-top: 0;
            margin-bottom: 0;
          }
    </style>
    Then insert on line 118, just before </table> the next line:
    Code:
    <div class"noPrint"><button onclick="window.print();" class="noPrint"><?php echo TEXT_INVOICE_PRINT_BUTTON; ?></button></div>
    Save the file and open the file includes\languages\english\lang.meta_tags.php (or your language file) and add:

    Code:
    'TEXT_INVOICE_PRINT_BUTTON' => 'Print invoice',
    There is now a button in the invoice that allows you to print the invoice directly.

    Dirk

  7. #7
    Join Date
    Feb 2019
    Location
    Birmingham UK
    Posts
    32
    Plugin Contributions
    0

    Default Re: Catalog Invoice Support Thread

    HI, just tried installing this in 2.1.0. (bootstrap template) an a Ubuntu 24.04 VM PHP v8.3
    I get a blank page when clicking on "My account".
    No big deal, although I found this plug-in useful, I can live without it.
    Not good enough a programmer to figure out why.
    Last edited by wyliecoyoteuk; 10 Feb 2025 at 04:25 PM.

 

 

Similar Threads

  1. Hebrew Support - latest release [Support Thread]
    By eranariel in forum Addon Language Packs
    Replies: 22
    Last Post: 26 Jan 2026, 06:47 AM
  2. v150 Product Images on Invoice, Email, etc [Support Thread]
    By jackie.taferner in forum All Other Contributions/Addons
    Replies: 29
    Last Post: 26 Aug 2022, 05:52 AM
  3. Invoice-to-PDF Mailer [support thread]
    By hayden in forum All Other Contributions/Addons
    Replies: 39
    Last Post: 17 Sep 2013, 10:10 AM
  4. SnapShot [support thread]
    By skipwater in forum All Other Contributions/Addons
    Replies: 32
    Last Post: 26 Oct 2012, 08:38 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