Page 7 of 8 FirstFirst ... 5678 LastLast
Results 61 to 70 of 76
  1. #61
    Join Date
    Oct 2008
    Location
    Croatia
    Posts
    1,616
    Plugin Contributions
    19

    Default Re: Catalog Invoice Support Thread

    Yes, you should definitely restore the file from the Bootstrap template and add the one line of code for the invoice plugin, just make sure you place it in an appropriate location.

  2. #62
    Join Date
    Feb 2019
    Location
    Birmingham UK
    Posts
    28
    Plugin Contributions
    0

    Default Re: Catalog Invoice Support Thread

    Thank you so much for your help.
    I have added this at line 30, it seems to be working fine.

    <!-- Invoice -->
    <div class="content forward"><?php echo '<a href="' . FILENAME_INVOICE . '.php?oID=' . $history['orders_id'] . '">' . zen_image_button(BUTTON_IMAGE_INVOICE_SMALL, BUTTON_INVOICE_SMALL_ALT) . '</a>'; ?></div>

    A few more minor tweaks to the site and it will be ready to go live.

  3. #63
    Join Date
    Feb 2019
    Location
    Birmingham UK
    Posts
    28
    Plugin Contributions
    0

    Default Re: Catalog Invoice Support Thread

    oops. line 54

  4. #64
    Join Date
    Feb 2019
    Location
    Birmingham UK
    Posts
    28
    Plugin Contributions
    0

    Default Re: Catalog Invoice Support Thread

    Set up my new site, but the invoices generated have no products or prices information between the header and the customer details.
    Ubuntu server 24.04.2, php8.3, zencart 2.1.0.
    Log file shows:
    log [22-Feb-2025 11:22:42 UTC] Request URI: /invoice.php?oID=273, IP address: 192.168.0.254, Language id 1
    #0 /var/www/html/xxxx.co.uk/invoice.php(72): zen_debug_error_handler()
    --> PHP Warning: Trying to access array offset on false in /var/www/html/xxxx/invoice.php on line 72.

  5. #65
    Join Date
    Feb 2019
    Location
    Birmingham UK
    Posts
    28
    Plugin Contributions
    0

    Default Re: Catalog Invoice Support Thread

    Plus: (xxxx replacing domain id)
    [22-Feb-2025 11:11:10 UTC] PHP Fatal error: Uncaught TypeError: array_merge(): Argument #1 must be of type array, false given in /var/www/html/xxxx.co.uk/includes/functions/functions_addresses.php:309
    Stack trace:
    #0 /var/www/html/xxxx.co.uk/includes/functions/functions_addresses.php(309): array_merge()
    #1 /var/www/html/xxxx.co.uk/invoice.php(151): zen_address_format()
    #2 {main}
    thrown in /var/www/html/xxxx.co.uk/includes/functions/functions_addresses.php on line 309

    Should I wait until this is updated to 2.1?

  6. #66
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    10,291
    Plugin Contributions
    125

    Default Re: Catalog Invoice Support Thread

    I reckon so.
    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.

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

    Default Re: Catalog Invoice Support Thread

    Thanks for the reply.
    Sorry that I don't know enough to help.

  8. #68
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    10,291
    Plugin Contributions
    125

    Default Re: Catalog Invoice Support Thread

    Just tested on Zen Cart 2.1.0; looks fine to me. Not sure what the issue on your site is.
    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.

  9. #69
    Join Date
    Feb 2019
    Location
    Birmingham UK
    Posts
    28
    Plugin Contributions
    0

    Default Re: Catalog Invoice Support Thread

    Thanks for letting me know.
    Not sure either, it generates an invoice, but only the header and footer show, the products are not listed.
    I will try it again on my test VM.
    I am using the bootstrap template, only other add-on is your invoice payment one.

  10. #70
    Join Date
    Feb 2019
    Location
    Birmingham UK
    Posts
    28
    Plugin Contributions
    0

    Default Re: Catalog Invoice Support Thread

    It seems to be a problem with this statement in invoice.php:

    Code:
    $show_customer = false;
    if ($order->billing['name'] != $order->delivery['name']) {
      $show_customer = true;
    }
    I assume that is comparing billing and shipping addresses
    logs show multiple errors in includes/functions/functions_addresses.php
    I have store pickup enabled, could that be causing the problem?

 

 
Page 7 of 8 FirstFirst ... 5678 LastLast

Similar Threads

  1. Hebrew Support - latest release [Support Thread]
    By eranariel in forum Addon Language Packs
    Replies: 20
    Last Post: 23 Apr 2025, 08:49 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