Zen Cart Logo
Forums / All Other Contributions/Addons / Catalog Invoice Support Thread

Catalog Invoice Support Thread

Views: 18,566

Results 21 to 40 of 77
5 Feb 2021, 10:48 PM
#21
sunriseimports avatar

sunriseimports

New Zenner

Join Date:
Mar 2007
Posts:
24
Plugin Contributions:
0

Catalog Invoice Support Thread

how to use logo from admin on invoice instead of logo from shop front end
just installed catalog invoice
zencart 56
php 7.2

5 Feb 2021, 11:03 PM
#22
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,695
Plugin Contributions:
56

Re: Catalog Invoice Support Thread

Copy the admin logo to the images folder under your template. (call it, say, includes/templates/YOUR_TEMPLATE/images/admin_logo.png or whatever the filetype is).
In invoice.php on line 96, change HEADER_LOGO_IMAGE to the filename you used above ("admin_logo.png").

You don't want to directly link to the image logo- that would reveal the name of your admin.

6 Feb 2021, 12:51 AM
#23
sunriseimports avatar

sunriseimports

New Zenner

Join Date:
Mar 2007
Posts:
24
Plugin Contributions:
0

Re: Catalog Invoice Support Thread

thank you so much for quick reply
replace code like that

<td class="pageHeading" align="right"><?php echo zen_image($template->get_template_dir(admin_logo.png, DIR_WS_TEMPLATE, $current_page_base,'images'). '/' . HEADER_LOGO_IMAGE, HEADER_ALT_TEXT); ?></td> </tr> very strange it is not show up admin_logo.pnp which i just made it . instead of showing zencart logo dont know where is it from this is link <https://www.xxxx.com/shop56c/includes/templates/template_default/images/xlogo.gif.pagespeed.ic.JTEz3omf5M.png>
6 Feb 2021, 1:45 AM
#24
sunriseimports avatar

sunriseimports

New Zenner

Join Date:
Mar 2007
Posts:
24
Plugin Contributions:
0

Re: Catalog Invoice Support Thread

it worked sorry my mistake browser cache problem thanks again

25 Jun 2021, 12:00 AM
#25
carbonless avatar

carbonless

Zen Follower

Join Date:
Jan 2007
Location:
Illinois, USA
Posts:
329
Plugin Contributions:
0

Re: Catalog Invoice Support Thread

the 1.5.7c upgrade removed the invoice option from the customer side. Anyone know of a fix?

25 Jun 2021, 7:11 AM
#26
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,695
Plugin Contributions:
56

Re: Catalog Invoice Support Thread

Reinstall my plugin. :)

25 Jun 2021, 11:06 PM
#27
carbonless avatar

carbonless

Zen Follower

Join Date:
Jan 2007
Location:
Illinois, USA
Posts:
329
Plugin Contributions:
0

Re: Catalog Invoice Support Thread

I reinstalled and along with a blank "My Account" page, I get the following error:

[25-Jun-2021 23:05:12 UTC] PHP Fatal error: Uncaught Error: Call to a member function isMobile() on null in /includes/templates/ntobs20/templates/tpl_account_default.php:16
Stack trace:
#0 /includes/templates/ntobs20/common/tpl_main_page.php(195): require()
#1 /index.php(94): require('/home/feadmin/p...')
#2 {main}
thrown in /includes/templates/ntobs20/templates/tpl_account_default.php on line 16

[25-Jun-2021 23:05:12 UTC] Request URI: /index.php?main_page=account, IP address: xxxxxx
--> PHP Fatal error: Uncaught Error: Call to a member function isMobile() on null in /includes/templates/ntobs20/templates/tpl_account_default.php:16
Stack trace:
#0 /includes/templates/ntobs20/common/tpl_main_page.php(195): require()
#1 /index.php(94): require('/home/...')
#2 {main}
thrown in /includes/templates/ntobs20/templates/tpl_account_default.php on line 16.

26 Jun 2021, 10:56 AM
#28
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,695
Plugin Contributions:
56

Re: Catalog Invoice Support Thread

The template file provided was based on responsive_classic. If you don't use responsive_classic, make the relevant changes to your own template file.

  • Compare what I gave you to what's in responsive classic.
  • Apply those changes to your template file.
26 Jun 2021, 2:17 PM
#29
carbonless avatar

carbonless

Zen Follower

Join Date:
Jan 2007
Location:
Illinois, USA
Posts:
329
Plugin Contributions:
0

Re: Catalog Invoice Support Thread

swguy:

The template file provided was based on responsive_classic. If you don't use responsive_classic, make the relevant changes to your own template file.

  • Compare what I gave you to what's in responsive classic.
  • Apply those changes to your template file.

Thank you. So the only element I moved from your file to my template file was this line

<!-- Invoice -->
<td class="accountOrderViewButton alignRight"><?php echo '<a href="' . FILENAME_INVOICE . '.php?oID=' . $orders['orders_id'] . '" target="_blank">' . zen_image_button(BUTTON_IMAGE_INVOICE_SMALL, BUTTON_INVOICE_SMALL_ALT) . '</a>' . '  '; ?></td>

and it enabled the mod to function correctly.

24 Jul 2021, 8:50 PM
#30
hairydog avatar

hairydog

Zen Follower

Join Date:
Sep 2006
Posts:
165
Plugin Contributions:
0

Re: Catalog Invoice Support Thread

swguy:

Catalog Invoice allows your customers to create their own invoices from past orders on their My Account page
Is there a way to change the invoice link in the email sent out to the customer so that it uses this new invoice page?

At present it goes to the entirely unsatisfactory account history page.

I think the change has to go into classes/order.php somewhere a bit after line 1000 but I'm not sure what or where

24 Jul 2021, 9:03 PM
#31
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,695
Plugin Contributions:
56

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.

24 Jul 2021, 9:35 PM
#32
hairydog avatar

hairydog

Zen Follower

Join Date:
Sep 2006
Posts:
165
Plugin Contributions:
0

Re: Catalog Invoice Support Thread

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

24 Jul 2021, 9:53 PM
#33
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,695
Plugin Contributions:
56

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

16 Oct 2021, 12:22 PM
#34
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,695
Plugin Contributions:
56

Re: Catalog Invoice Support Thread

There was a bug in file inclusion in invoice.php that has been fixed.

11 Nov 2021, 1:58 PM
#35
wyliecoyoteuk avatar

wyliecoyoteuk

New Zenner

Join Date:
Feb 2019
Location:
Birmingham UK
Posts:
32
Plugin Contributions:
0

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.

11 Nov 2021, 3:14 PM
#36
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,695
Plugin Contributions:
56

Re: Catalog Invoice Support Thread

Thanks. Will update next time.

2 Feb 2023, 7:32 PM
#37
brent avatar

brent

Totally Zenned

Join Date:
Mar 2005
Location:
United Kingdom
Posts:
606
Plugin Contributions:
0

Re: Catalog Invoice Support Thread

Has anyone yet ported the changes from the new 1.5.8 version of html /admin/invoice.php over to ```html
/invoice.php


The latest version in the plugin is based on ```
@version $Id: DrByte 2020 May 20 Modified in v1.5.7 $ 
``` and the version in 1.5.8 has changed substantially ```
@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 :)

2 Feb 2023, 7:55 PM
#38
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,695
Plugin Contributions:
56

Re: Catalog Invoice Support Thread

I will update this mod shortly.

3 Feb 2023, 6:48 AM
#39
brent avatar

brent

Totally Zenned

Join Date:
Mar 2005
Location:
United Kingdom
Posts:
606
Plugin Contributions:
0

Re: Catalog Invoice Support Thread

Thank you. I will buy you a cup of coffee.

3 Feb 2023, 12:32 PM
#40
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,695
Plugin Contributions:
56

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.