Created a new file .../templates/<default template>/html/com_virtuemart/invoices/mail_html_shopper.php
but its not getting picked up... so had to change core file in .../components/com_virtuemart/views/invoices/tmpl/ :(
Hi,
the right path should be /templates/<your_joomla_template>/html/com_virtuemart/invoices/mail_html_shopper.php
vm and joomla versions?
Regards
Quote from: bytelord on October 24, 2012, 15:34:41 PM
Hi,
the right path should be /templates/<your_joomla_template>/html/com_virtuemart/invoices/mail_html_shopper.php
vm and joomla versions?
Regards
I have the right path - same as the one you posted.
vm & joomla versions as per signature : vm 2.012b J 2.5.6
Hello,
You said <default template> for that reason i said <your_joomla_template>, working for me, have you select other template override from the vm backend configuration?
Regards
Ah I see , thank you for the clarification.
Yes, I have several vm template overrides are working, just this one that isn't.
Hi,
This one is when customers confirm the order ... am i right?
So that template will be used when customer confirm the order (order status Confirmed by shopper - U).
Regards
Its used when the order is set to confirmed C in the admin area...
and that's probably where I'm going wrong. I'll create a template override on the admin side.
Thank you.
Hmm, no thats not it, the same template is used for both cases.
ok, give me some time to take a better look
Regards
Hi,
I have a similar problem (maybe the same) with VM 2.0.12f and Joomla!v2.5.7
All template overrides are working perfectly except the pdf attached in email when an order is confirmed, which instead of using the overrided files is using the component files. However, when I use the create invoice button in backend it uses the overrided files as it is supposed to do.
By the moment I will try this temporary patch https://forum.virtuemart.net/index.php?topic=100543.0 (https://forum.virtuemart.net/index.php?topic=100543.0)
Regards!
the order emails used to be sent from another file in earlier versions of vmart 2.0
Make sure those OLD files are not still there
Quote from: PRO on November 01, 2012, 22:18:26 PM
the order emails used to be sent from another file in earlier versions of vmart 2.0
Make sure those OLD files are not still there
Hi PRO,
Which files should I check for?
Thanks in advance.
Hello,
mail_html_shopper.php is used and is for the customer orders ... i test it and works just fine. So there is no issue with that.
the other you could check is from the backend if you have configured your mail send as html or raw... because if raw enabled then the file is mail_raw_shopper.php
I think you placed on the wrong place ... i have to say it again, the right path is /templates/<your_joomla_template_you_use>/html/com_virtuemart/invoices/mail_html_shopper.php
Regards
Hi bytelord,
first thanks for your help :)
Email is set to HTML.
I have the issue with invoice*.php, but only when the order status is changed to any state which will send the email. In that case the attached PDF is created using the /components/com_virtuemart/views/invoice files instead of being created using /templates/the_template_I_use/html/com_virtuemart/invoice files.
Curiosly if I push the 'Invoice' button on the backend orders list (under the big printer icon) the override is working perfectly.
Again, thanks!
Hi,
When you click the pdf button from the be the url is /index.php?option=com_virtuemart&view=invoice&layout=invoice&format=pdf&tmpl=component&virtuemart_order_id=9&order_number=xxxxxxx&order_pass=xxxxxx
So, the PDF view is been regenerated for an existing order...but
When order is been placed for first time and status changed to the preferred status that send the pdf invoice, pdf generation take place ... when you resend that mails ... just resend the file located under {safe_path}\{vmfiles}\invoices\xxxx.pdf
So, if you make your changes inside your template and try to "play" with an already existing order just resend the file under {safe_path}\{vmfiles}\invoices\xxxx.pdf ... so there is no regeneation ... try to place a new order or delete the file for testing purposes in a testing installation to be regenerated.
Not sure if am right, but please test.
Regarsd
Hi,
I've just tried you suggestions but no luck :(
First, I've restored the original invoice template files (I've modified them before) and I did a new order. The confirmation email was build perfectly but when I changed the order status I received an email with the right body but with the wrong PDF format.
Thanks!
Take a look over here: http://forum.virtuemart.net/index.php?topic=100543.0;topicseen
Thanks for the link. I've tried that and now its ok.
Regards!