News:

Support the VirtueMart project and become a member

Main Menu

User Registration email change subject

Started by xenofon, July 25, 2016, 13:09:35 PM

Previous topic - Next topic

xenofon

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

Jumbo!

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

GJC Web Design

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
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

xenofon

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.

GJC Web Design

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
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

xenofon

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

Jumbo!