VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: robifree on October 12, 2020, 13:16:53 PM

Title: How to activate html template email registration
Post by: robifree on October 12, 2020, 13:16:53 PM
Hi,
I have some sites developed with VM3, and all of them send the registration email to the user in text format. I can't enable the HTML template.
At the time of user registration, I see that the register function present in the administrator \ components \ com_virtuemart \ models \ user.php file is used and an email is sent in text format.
To send an email in html format I created a custom plugin.
But without creating plugins, can I configure VM to use templates already present, as happens for the order confirmation which also contains the seller's logo?
I already see components \ com_virtuemart \ views \ user \ tmpl \ mail_html_reguser.php, but it doesn't seem to be active, even in new installations.
Can you help me?
Thanks a lot.

Roberto

Joomla 3.9.22 + VM 3.8.4
Title: Re: How to activate html template email registration
Post by: pinochico on October 12, 2020, 14:40:02 PM
QuoteI see that the register function present in the administrator \ components \ com_virtuemart \ models \ user.php file is used and an email is sent in text format.

Yep, I see too.

Before this change, the user registration email was sent from components \ com_virtuemart \ helpers \ shopfuntions and our use of HTML template in all case emails from application VirtueMart Mailing Manager.
Answer from VirtueMart DEV was - It's life, new version, we don't use trigger anymore, you must change self.

I like this info :)

Title: Re: How to activate html template email registration
Post by: robifree on October 12, 2020, 16:56:01 PM
Thanks for the reply.

I read that this was a security measure, but I did't get why there stil was the php file for the generation of the html file.
So is a custom plugin the only possible option to override the email template?
Title: Re: How to activate html template email registration
Post by: pinochico on October 12, 2020, 18:34:23 PM
QuoteSo is a custom plugin the only possible option to override the email template?

Maybe yes, but I don't know yet, we use on every shops VMM for email template and we need to add new function too for VM 3.8.4 :)
Reply and BC and BCC we use in VMM automatically.
Title: Re: How to activate html template email registration
Post by: jenkinhill on October 13, 2020, 13:46:41 PM
I use HTML mail to send registration emails to the shopper and vendor simply by setting VM Configuration/Orders/Email  Order-mail format to use HTML mail.

I use overrides for mail_html_reguser.php and mail_html_regvendor.php to give my own mail layout.
Title: Re: How to activate html template email registration
Post by: robifree on October 13, 2020, 17:47:30 PM
Hi Kelvyn, thanks for the reply.
I selected in VM settings HTML format, but the user's registration email always comes in text format.
Only e-mails sent after the order to the shopper arrive in HTML format.
I attach the screenshot of the VM control panel.

Currently using VM 3.8.4 on Joomla 3.9.22 PHP 7.3
Title: Re: How to activate html template email registration
Post by: jenkinhill on October 13, 2020, 18:19:45 PM
Yes, that config is the same as mine. I'm using VirtueMart 3.8.4 10335  - here is the email I get when using the default VM template instead of my override. I don't know what else could affect this.

(https://i.ibb.co/L98LwD9/email.png)