VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: raunhar on September 16, 2014, 09:02:11 AM

Title: [solved] Order confirmation mail
Post by: raunhar on September 16, 2014, 09:02:11 AM
The mail that is sent to the buyer, has the following at the footer:
Thank you for purchasing at shop Name
Shop Name
555-555-1212 shop Name


From where can I modify the content of this mail.

I had removed the dummy telephone number from the Vendor Information page.

Title: Re: Order confirmation mail
Post by: jenkinhill on September 16, 2014, 10:51:59 AM
Edit invoice/tmpl/mail_html_footer.php and use the edited file as an override. The code you should edit is

/* 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 .'<br /> '.$this->vendor->vendor_store_desc.'<br />';
Title: Re: Order confirmation mail
Post by: raunhar on September 16, 2014, 11:46:20 AM
I modified the line:
echo $this->vendor->vendor_name .'<br />'.$this->vendor->vendor_phone .' '.$this->vendor->vendor_store_name .'<br /> '.$this->vendor->vendor_store_desc.'<br />';

by removing ".$this->vendor->vendor_phone .' '.$this->vendor->vendor_store_name .'<br /> " .
but after that, the invoice did not get mailed either to vendor or the buyer.

even the page that is generated after the checkout, does not show up.
Title: Re: Order confirmation mail
Post by: GJC Web Design on September 16, 2014, 17:28:41 PM
If thats all you did and the mails stopped one has to assume your syntax has a problem
Title: Re: Order confirmation mail
Post by: raunhar on September 17, 2014, 06:54:30 AM
so, what is the solution.
I tried removing just ".$this->vendor->vendor_phone .'" , and the same result.
Title: Re: Order confirmation mail
Post by: GJC Web Design on September 17, 2014, 11:58:05 AM
the solution is to get your syntax correct

unchanged file -> everything works....

changed file-> stuff broke

solution - make your changes correctly

just do

//echo $this->vendor->vendor_name .'<br />'.$this->vendor->vendor_phone .' '.$this->vendor->vendor_store_name .'<br /> '.$this->vendor->vendor_store_desc.'<br />';

what happens?
Title: Re: Order confirmation mail
Post by: raunhar on September 17, 2014, 12:08:18 PM
thanks a lot.
I works fine