how to use logo from admin on invoice instead of logo from shop front end
just installed catalog invoice
zencart 56
php 7.2
Printable View
how to use logo from admin on invoice instead of logo from shop front end
just installed catalog invoice
zencart 56
php 7.2
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.
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/include...JTEz3omf5M.png
it worked sorry my mistake browser cache problem thanks again
the 1.5.7c upgrade removed the invoice option from the customer side. Anyone know of a fix?
Reinstall my plugin. :)
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.
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.
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