Template Path to <template>/html/com_virtuemart/invoice/ not found

Started by Thomas Kuschel, March 13, 2012, 10:17:44 AM

Previous topic - Next topic

Thomas Kuschel

Hi,
I put the views to the invoice into my joomla template, but it didn't work. (/template/mytemplate/html/com_virtuemart/invoice/*.php); all other com_virutuemart views did work
So, after debugging, I found out that within the function "renderMail" the origin path to the /view/$viewName/tmpl/ is added as LIFO, even though the path already exists!!! -  so the template path wasn't found any more.

I have commented out the line 180 in /components/com_virtuemart/helpers/shopfunctionsf.php (line 180):
//Todo, do we need that? refering to http://forum.virtuemart.net/index.php?topic=96318.msg317277#msg317277
//TK 20120309 LOYTEC patch next line: we do not need the template loaded - because of LIFO, the default user template is overwritten.
//$view->addTemplatePath(JPATH_VM_SITE.'/views/'.$viewName.'/tmpl');


Please check this out! -
now it works for me, and I can change all the invoice - mail stuff in my template!

Thomas Kuschel

p.s. SORRY - same bug as in http://forum.virtuemart.net/index.php?topic=98841.0

Thomas Kuschel