I am having some issues with the VM2 Invoicing.
For some reason my "confirmed" emails are going out with the invoice written into the email and attached as a pdf which is fine but also underneath the email is the "Details" and the "Terms of Service" from the "Vendor" page.
How can i stop all this being written at the bottom of the emails please ?
thanks
Please anyone ?
You have to edit the file
/components/com_virtuemart/views/invoice/tmpl/mail_html_footer.php
edit line 38
echo $this->vendor->vendor_name .'<br />'.$this->vendor->vendor_phone .' '.$this->vendor->vendor_store_name .'<br /> '.$this->vendor->vendor_store_desc.'<br />'.$this->vendor->vendor_legal_info;
delete this:
'<br /> '.$this->vendor->vendor_store_desc.'<br />'.$this->vendor->vendor_legal_info
now will be in line 38
echo $this->vendor->vendor_name .'<br />'.$this->vendor->vendor_phone .' '.$this->vendor->vendor_store_name;
! Save as an override saving the changed file to:
your template/html/com_virtuemart/invoice
if there is no directory com_virtuemart/invoice in your /html -> create it.
This should it be.
Carlos
thanks for helping with this, it seems something isnt right though now.
i did the override edit as suggested and now it doesnt send an invoice at all and when i try and update the customer order the admin page changes to the invoice with this error at the bottom :
Parse error: syntax error, unexpected $end in /home/xxxxxx/public_html/theclocksheddemo/templates/it_theshop/html/com_virtuemart/invoice/mail_html_footer.php on line 39
Please anyone ? this cant be normal in a VM installation can it ?
Hi,
As carlos told you replace line 38 with
echo $this->vendor->vendor_name .'<br />'.$this->vendor->vendor_phone .' '.$this->vendor->vendor_store_name .
yep well i tried it again and i still get the same result. the code you mentioned isnt on line 38 though so wonder if this is the issue ?
the content of the file mail_html_footer is below after removing the bit you told me to, and it now doesnt send any invoice at all. when i try and send one manually using the "update status" it turns the admin page into an invoice with the following error at the bottom :
Parse error: syntax error, unexpected $end in /home/ginger/public_html/theclocksheddemo/components/com_virtuemart/views/invoice/tmpl/mail_html_footer.php on line 75
<?php
/**
*
* Layout for the shopping cart, look in mailshopper for more details
*
* @package VirtueMart
* @subpackage Cart
* @author Max Milbers
*
* @link http://www.virtuemart.net
* @copyright Copyright (c) 2004 - 2010 VirtueMart Team. All rights reserved.
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php
* VirtueMart is free software. This version may have been modified pursuant
* to the GNU General Public License, and as distributed it includes or
* is derivative of works licensed under the GNU General Public License or
* other free or open source software licenses.
*
*/
// Check to ensure this file is included in Joomla!
defined('_JEXEC') or die('Restricted access');
/* TODO Chnage the footer place in helper or assets ???*/
if (empty($this->vendor)) {
$vendorModel = VmModel::getModel('vendor');
$this->vendor = $vendorModel->getVendor();
}
//$link = shopFunctionsF::getRootRoutedUrl('index.php?option=com_virtuemart');
$link = JURI::root().'index.php?option=com_virtuemart';
echo '<br/><br/>';
//$link='<b>'.JHTML::_('link', JURI::root().$link, $this->vendor->vendor_name).'</b> ';
// echo JText::_('COM_VIRTUEMART_MAIL_VENDOR_TITLE').$this->vendor->vendor_name.'<br/>';
/* GENERAL FOOTER FOR ALL MAILS */
echo JText::_('COM_VIRTUEMART_MAIL_FOOTER' ) . '<a href="'.$link.'">'.$this->vendor->vendor_name.'</a>';
echo '<br/>';
echo $this->vendor->vendor_name .'<br />'.$this->vendor->vendor_phone .' '.$this->vendor->vendor_store_name .
Hello,
I am sorry for that the line previous has a syntax error. The write one will be (line 38).
echo $this->vendor->vendor_name .'<br />'.$this->vendor->vendor_phone .' '.$this->vendor->vendor_store_name .'<br /> '.$this->vendor->vendor_store_desc.'<br />';
Remove only vendor legal info.
Regards
Ideal - yes that works - in fact i removed the whole of that last line 38 which gets rid of the shop description etc, i cant imagine why anyone would want all that in the invoice but thanks for pointing me in the right direction - i wish there was a simple way of editing the way the invoice looks now !
cheers for help
In VM 2.022 the file mail_html_footer.php is missing the tag of vendore_legal_info
echo $this->vendor->vendor_name .'<br />'.$this->vendor->vendor_phone .' '.$this->vendor->vendor_store_name .'<br /> '.$this->vendor->vendor_store_desc.'<br />';
Why is it not included anymore as in 2.020 ?