Re: Catalog Invoice Support Thread
In includes/classes/order.php look for the line saying
EMAIL_TEXT_INVOICE_URL . ' ' . zen_href_link(FILENAME_ACCOUNT_HISTORY_INFO, 'order_id=' . $zf_insert_id, 'SSL', false) . "\n\n";
it's on line 1069 in 1.5.7c. Just adjust that to point to FILENAME_INVOICE instead.
Re: Catalog Invoice Support Thread
Quote:
Originally Posted by
swguy
In includes/classes/order.php look for the line saying
EMAIL_TEXT_INVOICE_URL . ' ' . zen_href_link(FILENAME_ACCOUNT_HISTORY_INFO, 'order_id=' . $zf_insert_id, 'SSL', false) . "\n\n";
it's on line 1069 in 1.5.7c. Just adjust that to point to FILENAME_INVOICE instead.
Sadly, that's one of the things I'd tried (and failed with) before asking.
It generates a link to [siteurl]/index.php?main_page=invoice&oID=123456 instead of to [siteurl]/invoice.php&oID=123456
Re: Catalog Invoice Support Thread
Yep, you're right.
Instead of
zen_href_link(FILENAME_ACCOUNT_HISTORY_INFO, 'order_id=' . $zf_insert_id, 'SSL', false)
use something like
HTTPS_SERVER . DIR_WS_CATALOG . 'invoice.php?order_id='.$zf_insert_id
Re: Catalog Invoice Support Thread
There was a bug in file inclusion in invoice.php that has been fixed.
Re: Catalog Invoice Support Thread
Great plug-in, essential for my daughter's (very) small wholesale business where all her stockists pay by invoice.
Zencart v 1.5.7c
Minor bug, I noticed that invoice "date added" was showing DATE_TIME_FORMAT instead of date added.
This has apparently affected some other plugins.
The lines below have been removed from includes/languages/english.php in 1.5.7
define('DATE_FORMAT_SHORT', '%m/%d/%Y'); // this is used for strftime()
define('DATE_TIME_FORMAT', DATE_FORMAT_SHORT . ' %H:%M:%S');
Adding them cured it.
Re: Catalog Invoice Support Thread
Thanks. Will update next time.
Re: Catalog Invoice Support Thread
Has anyone yet ported the changes from the new 1.5.8 version of
HTML Code:
/admin/invoice.php
over to The latest version in the plugin is based on
Code:
@version $Id: DrByte 2020 May 20 Modified in v1.5.7 $
and the version in 1.5.8 has changed substantially
Code:
@version $Id: Scott C Wilson 2022 Sep 17 Modified in v1.5.8 $
I tried to port the changes over but there have been too many revisions in the area where the revised code needs to be inserted.
Help needed please :)
Re: Catalog Invoice Support Thread
I will update this mod shortly.
Re: Catalog Invoice Support Thread
Thank you. I will buy you a cup of coffee.
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.