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.
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.
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.
oops. line 54
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.
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?
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.
Thanks for the reply.
Sorry that I don't know enough to help.
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.
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.
It seems to be a problem with this statement in invoice.php:
I assume that is comparing billing and shipping addressesCode:$show_customer = false; if ($order->billing['name'] != $order->delivery['name']) { $show_customer = true; }
logs show multiple errors in includes/functions/functions_addresses.php
I have store pickup enabled, could that be causing the problem?
Bookmarks