Author Topic: [solved] Order confirmation mail  (Read 1561 times)

raunhar

  • Jr. Member
  • **
  • Posts: 241
[solved] Order confirmation mail
« 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.


jenkinhill

  • UK Web Developer & Consultant
  • Global Moderator
  • Super Hero
  • *
  • Posts: 28308
  • Always on vacation
    • Jenkin Hill Internet
Re: Order confirmation mail
« Reply #1 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
Code: [Select]
/* 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 />';
Kelvyn

Jenkin Hill Internet,
Lowestoft, Suffolk, UK

Unsolicited PMs/emails will be ignored.

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

Currently using VirtueMart 3.8.9.10473 on Joomla 3.9.28 PHP 7.4.14

raunhar

  • Jr. Member
  • **
  • Posts: 241
Re: Order confirmation mail
« Reply #2 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.

GJC Web Design

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 10422
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 3.6.8
Re: Order confirmation mail
« Reply #3 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
GJC Web Design
VirtueMart and Joomla Developers - php developers http://www.gjcwebdesign.com
VM3 AusPost Shipping Plugin - e-go Shipping Plugin - VM3 Postcode Shipping Plugin - Radius Shipping Plugin - VM3 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
http://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

raunhar

  • Jr. Member
  • **
  • Posts: 241
Re: Order confirmation mail
« Reply #4 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.

GJC Web Design

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 10422
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 3.6.8
Re: Order confirmation mail
« Reply #5 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?
GJC Web Design
VirtueMart and Joomla Developers - php developers http://www.gjcwebdesign.com
VM3 AusPost Shipping Plugin - e-go Shipping Plugin - VM3 Postcode Shipping Plugin - Radius Shipping Plugin - VM3 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
http://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

raunhar

  • Jr. Member
  • **
  • Posts: 241
Re: Order confirmation mail
« Reply #6 on: September 17, 2014, 12:08:18 pm »
thanks a lot.
I works fine