News:

Looking for documentation? Take a look on our wiki

Main Menu

Change Subject Mail

Started by nicodya, March 06, 2018, 15:23:19 PM

Previous topic - Next topic

nicodya

I can't find "COM_VIRTUEMART_MAIL_SUBJ_SHOPPER" in my files... because I want to rename this string that appear in subject mail...  :-\

This is the website: www.vitocavone.it

Thanks  :)

jenkinhill

These are in the language files, front and backend as the following, depending on the order status:

COM_VIRTUEMART_MAIL_SUBJ_SHOPPER_C="[%3$s], Confirmed order at %1$s, total %2$s"
COM_VIRTUEMART_MAIL_SUBJ_SHOPPER_P="[%3$s], Order is pending at %1$s, total %2$s"
COM_VIRTUEMART_MAIL_SUBJ_SHOPPER_R="[%3$s], Refunded order by %1$s, total %2$s"
COM_VIRTUEMART_MAIL_SUBJ_SHOPPER_S="[%3$s], Shipped order from %1$s, total %2$s"
COM_VIRTUEMART_MAIL_SUBJ_SHOPPER_U="[%3$s], Order received by %1$s, total %2$s"
COM_VIRTUEMART_MAIL_SUBJ_SHOPPER_X="[%3$s], Cancelled order by %1$s, total %2$s"
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

nicodya

#2
Quote from: jenkinhill on March 06, 2018, 15:51:41 PM
These are in the language files, front and backend as the following, depending on the order status:

COM_VIRTUEMART_MAIL_SUBJ_SHOPPER_C="[%3$s], Confirmed order at %1$s, total %2$s"
COM_VIRTUEMART_MAIL_SUBJ_SHOPPER_P="[%3$s], Order is pending at %1$s, total %2$s"
COM_VIRTUEMART_MAIL_SUBJ_SHOPPER_R="[%3$s], Refunded order by %1$s, total %2$s"
COM_VIRTUEMART_MAIL_SUBJ_SHOPPER_S="[%3$s], Shipped order from %1$s, total %2$s"
COM_VIRTUEMART_MAIL_SUBJ_SHOPPER_U="[%3$s], Order received by %1$s, total %2$s"
COM_VIRTUEMART_MAIL_SUBJ_SHOPPER_X="[%3$s], Cancelled order by %1$s, total %2$s"

I created new status:
COM_VIRTUEMART_MAIL_SUBJ_SHOPPER_1
COM_VIRTUEMART_MAIL_SUBJ_SHOPPER_2
COM_VIRTUEMART_MAIL_SUBJ_SHOPPER_3
COM_VIRTUEMART_MAIL_SUBJ_SHOPPER_4
COM_VIRTUEMART_MAIL_SUBJ_SHOPPER_5
COM_VIRTUEMART_MAIL_SUBJ_SHOPPER_6

but I can't find it in language.ini  :(

jenkinhill

Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

baoquocmt159

Quote from: jenkinhill on March 06, 2018, 15:51:41 PM
These are in the language files, front and backend as the following, depending on the order status:

COM_VIRTUEMART_MAIL_SUBJ_SHOPPER_C="[%3$s], Confirmed order at %1$s, total %2$s"
COM_VIRTUEMART_MAIL_SUBJ_SHOPPER_P="[%3$s], Order is pending at %1$s, total %2$s"
COM_VIRTUEMART_MAIL_SUBJ_SHOPPER_R="[%3$s], Refunded order by %1$s, total %2$s"
COM_VIRTUEMART_MAIL_SUBJ_SHOPPER_S="[%3$s], Shipped order from %1$s, total %2$s"
COM_VIRTUEMART_MAIL_SUBJ_SHOPPER_U="[%3$s], Order received by %1$s, total %2$s"
COM_VIRTUEMART_MAIL_SUBJ_SHOPPER_X="[%3$s], Cancelled order by %1$s, total %2$s"

worked, thank so much.

sherrieblossom

Joomla! 3.9.3 Stable
VirtueMart 3.2.14
PHP Version 7.1.26

Is there any way to have the customer's name on the email receipt by configuring this on the backend instead of it? I'm currently getting email notifications with subject :
Confirmed order by [685A03356], COM_VIRTUEMART_SHOPPER_TITLE_(customer name)
In want to omit the part that has COM_VIRTUEMART_SHOPPER_TITLE_
Is there any way to do this without  me having to go into any index or php files. I don't know how to access those but I do know how to access configuration backend. Please give me step by step instructions. Thanks!

Quote from: baoquocmt159 on January 22, 2019, 08:31:42 AM
Quote from: jenkinhill on March 06, 2018, 15:51:41 PM
These are in the language files, front and backend as the following, depending on the order status:

COM_VIRTUEMART_MAIL_SUBJ_SHOPPER_C="[%3$s], Confirmed order at %1$s, total %2$s"
COM_VIRTUEMART_MAIL_SUBJ_SHOPPER_P="[%3$s], Order is pending at %1$s, total %2$s"
COM_VIRTUEMART_MAIL_SUBJ_SHOPPER_R="[%3$s], Refunded order by %1$s, total %2$s"
COM_VIRTUEMART_MAIL_SUBJ_SHOPPER_S="[%3$s], Shipped order from %1$s, total %2$s"
COM_VIRTUEMART_MAIL_SUBJ_SHOPPER_U="[%3$s], Order received by %1$s, total %2$s"
COM_VIRTUEMART_MAIL_SUBJ_SHOPPER_X="[%3$s], Cancelled order by %1$s, total %2$s"

worked, thank so much.

GJC Web Design

no -- because the replacement var needs changing

I do it this way

components\com_virtuemart\views\invoice\view.html.php ~ line 310

   //GJC add shopper name  to subject line
//    $this->subject = vmText::sprintf('COM_VIRTUEMART_MAIL_SUBJ_SHOPPER_'.$orderDetails['details']['BT']->order_status, $vendor->vendor_store_name, strip_tags($this->currency->priceDisplay($orderDetails['details']['BT']->order_total, $this->user_currency_id)), $orderDetails['details']['BT']->order_number );
//GJC add shopper name  to subject line
    $this->subject = vmText::sprintf('COM_VIRTUEMART_MAIL_SUBJ_SHOPPER_'.$orderDetails['details']['BT']->order_status, $vendor->vendor_store_name, strip_tags($this->shopperName), $orderDetails['details']['BT']->order_number );
//GJC add shopper name  to subject line

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