Page 5 of 5 FirstFirst ... 345
Results 41 to 44 of 44
  1. #41
    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 $

  2. #42
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    9,684
    Plugin Contributions
    123

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

  3. #43
    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;

  4. #44
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    9,684
    Plugin Contributions
    123

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

 

 
Page 5 of 5 FirstFirst ... 345

Similar Threads

  1. Hebrew Support - latest release [Support Thread]
    By eranariel in forum Addon Language Packs
    Replies: 19
    Last Post: 23 Jan 2023, 08:04 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

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