VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: xenofon on July 25, 2016, 13:09:35 PM

Title: User Registration email change subject
Post by: xenofon on July 25, 2016, 13:09:35 PM
Hi,

I'm developing an eshop with woman clothes.

My  questtion is very simple and i am sure that someone can give me a straight answer, i just can't find where is this coding field to change.

I want to change the subject of a registration email that a shoppers receives after his/her registration.

It says Hello ..... etc and it shows the username of the shopper. I want to change that and give the fullname of the shopper. Which is the right .php file and the line that i have to change ?

I look the mail_html_reguser.php file but it doesn't provide the subject section.

thank you in advance,
Xenofon Kaloudis
Title: Re: User Registration email change subject
Post by: Jumbo! on July 25, 2016, 13:35:33 PM
You can change subject line by overriding the language constants.

Registration - Admin Mail Subject:
COM_VIRTUEMART_VENDOR_NEW_SHOPPER_SUBJECT="A new shopper %s registered  at your shop %s"

Registration - User Mail Subject:
COM_VIRTUEMART_NEW_SHOPPER_SUBJECT="Your registration %s at %s"

You can find them in - components/com_virtuemart/language/en-GB/en-GB.com_virtuemart.ini

You can override them using Joomla! Language Override Manager - https://docs.joomla.org/J3.x:Language_Overrides_in_Joomla
Title: Re: User Registration email change subject
Post by: GJC Web Design on July 25, 2016, 13:59:46 PM
but to change from user name to full name you will need to change the
public function renderMailLayout($doVendor, $recipient) {

}

in com_virtuemart\views\user\view.html.php
Title: Re: User Registration email change subject
Post by: xenofon on July 25, 2016, 14:01:12 PM
Hi,

Hi, you didn't understand me, i do not want to override something like the message that override section of Joomla provides me.

This %s that you write me in your message is the "username" for the core code and i want to change this value to the Original name/Fullname of  the shopper

Thank you.
Title: Re: User Registration email change subject
Post by: GJC Web Design on July 25, 2016, 14:06:05 PM
Quotebut to change from user name to full name you will need to change the
public function renderMailLayout($doVendor, $recipient) {

}

in com_virtuemart\views\user\view.html.php
Title: Re: User Registration email change subject
Post by: xenofon on July 25, 2016, 14:17:37 PM
Hi

sorry GJC Web Design, the previous reply was for Jumbo!.

I solved it with your mentioning. Thank you very much for the quick help you gave me.

I just changed to lines 400 & 403 where "username" to "name" and the fullname is showing to the subject of shoppers and Vendor too.

thank you very much.

This topic is CLOSED by now.

Xenofon Kaloudis
Title: Re: User Registration email change subject
Post by: Jumbo! on July 25, 2016, 14:57:41 PM
Oops.. I missed that part. :)