Author Topic: How to activate html template email registration  (Read 220 times)

robifree

  • Beginner
  • *
  • Posts: 3
  • Front-end developer
  • VirtueMart Version: 3.8.4
How to activate html template email registration
« 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

pinochico

  • 3rd party VirtueMart Developer
  • Full Member
  • *
  • Posts: 709
    • MiniJoomla
  • Skype Name: support-easysoftware
  • VirtueMart Version: 3
Re: How to activate html template email registration
« Reply #1 on: October 12, 2020, 14:40:02 pm »
Quote
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.

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 :)

www.minijoomla.org  - new portal for Joomla!, Virtuemart and other extensions
XML Easy Feeder - feeds from products, orders and database table
Virtuemart Email Manager - customs email templates

robifree

  • Beginner
  • *
  • Posts: 3
  • Front-end developer
  • VirtueMart Version: 3.8.4
Re: How to activate html template email registration
« Reply #2 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?

pinochico

  • 3rd party VirtueMart Developer
  • Full Member
  • *
  • Posts: 709
    • MiniJoomla
  • Skype Name: support-easysoftware
  • VirtueMart Version: 3
Re: How to activate html template email registration
« Reply #3 on: October 12, 2020, 18:34:23 pm »
Quote
So 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.
www.minijoomla.org  - new portal for Joomla!, Virtuemart and other extensions
XML Easy Feeder - feeds from products, orders and database table
Virtuemart Email Manager - customs email templates

jenkinhill

  • UK Web Developer & Consultant
  • Global Moderator
  • Super Hero
  • *
  • Posts: 27886
  • Always on vacation
    • Jenkin Hill Internet
Re: How to activate html template email registration
« Reply #4 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.
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 VM 3.8.5 10338 on Joomla 3.9.22 PHP 7.4.9

robifree

  • Beginner
  • *
  • Posts: 3
  • Front-end developer
  • VirtueMart Version: 3.8.4
Re: How to activate html template email registration
« Reply #5 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

jenkinhill

  • UK Web Developer & Consultant
  • Global Moderator
  • Super Hero
  • *
  • Posts: 27886
  • Always on vacation
    • Jenkin Hill Internet
Re: How to activate html template email registration
« Reply #6 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.

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 VM 3.8.5 10338 on Joomla 3.9.22 PHP 7.4.9