News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

Order Mail override not working (I am not a newbie, did search for hours!)

Started by seagul, February 18, 2013, 22:02:17 PM

Previous topic - Next topic

seagul

Hello,

my order mail override is not working. I have setup already 4 virtuemart stores and it the mail override worked in all other stores. but not in this one... :-(
I have copied the templates from
component/com_virtuemart/views/invoice/tmpl/mail_html_header.php to my Template
templates/my_template/html/com_virtuemart/invoice/mail_html_header.php
Joomla 2.5.9
VM 2.0.18a

The strange thing is that the link-preview shows my changes:
index.php?option=com_virtuemart&view=invoice&layout=mail_html&tmpl=component&order_number=xxx&order_pass=p_xxx

but not the email!

Any hints. Caching is deactivated.

Thanks!!!
Seagul


PRO

tmpl/mail.html.php

does your file use the new format? including the other files?

// Shop desc for shopper and vendor
         if ($this->recipient == 'shopper') {
             echo $this->loadTemplate('header');
         }
// Message for shopper or vendor
         echo $this->loadTemplate($this->recipient);
// render shipto billto adresses
         echo $this->loadTemplate('shopperaddresses');
// render price list
         echo $this->loadTemplate('pricelist');
// more infos
         echo $this->loadTemplate($this->recipient . '_more');
// end of mail
         echo $this->loadTemplate('footer');
         ?>



seagul

yes, it uses this format in tmpl/mail_html.php

// Shop desc for shopper and vendor
if ($this->recipient == 'shopper') {
    echo $this->loadTemplate('header');
}
// Message for shopper or vendor
echo $this->loadTemplate($this->recipient);
// render shipto billto adresses
echo $this->loadTemplate('shopperaddresses');
// render price list
echo $this->loadTemplate('pricelist');
// more infos
echo $this->loadTemplate($this->recipient . '_more');
// end of mail
echo $this->loadTemplate('footer');
?>


is it mail.html.php or mail_html.php?


PRO


seagul

it works, when I edit the original one.

All my other template overrides for the shop work. I started the shop development with a virtuemart-version in mid-October 2012. So, it was probably version 2.0.10 or 2.0.12.