Author Topic: Change Subject Mail  (Read 1060 times)

nicodya

  • Beginner
  • *
  • Posts: 28
  • A beginner
  • Skype Name: nicodya
Change Subject Mail
« on: March 06, 2018, 15:23:19 pm »
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

  • UK Web Developer & Consultant
  • Global Moderator
  • Super Hero
  • *
  • Posts: 27348
  • Always on vacation
    • Jenkin Hill Internet
Re: Change Subject Mail
« Reply #1 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"
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.4.3.10045 on Joomla 3.9.5 PHP 7.0.33
Testing VM 3.4.5.10045 on Joomla 3.9.5

nicodya

  • Beginner
  • *
  • Posts: 28
  • A beginner
  • Skype Name: nicodya
Re: Change Subject Mail
« Reply #2 on: March 06, 2018, 15:56:43 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

  • UK Web Developer & Consultant
  • Global Moderator
  • Super Hero
  • *
  • Posts: 27348
  • Always on vacation
    • Jenkin Hill Internet
Re: Change Subject Mail
« Reply #3 on: March 06, 2018, 17:17:53 pm »
You will have to create those in a language override file.  https://docs.joomla.org/J3.x:Language_Overrides_in_Joomla
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.4.3.10045 on Joomla 3.9.5 PHP 7.0.33
Testing VM 3.4.5.10045 on Joomla 3.9.5

baoquocmt159

  • Jr. Member
  • **
  • Posts: 57
  • Skype Name: cpo.smartbits
Re: Change Subject Mail
« Reply #4 on: January 22, 2019, 08:31:42 am »
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

  • Beginner
  • *
  • Posts: 4
  • Skype Name: sherrieblossom
  • VirtueMart Version: 3.2.14
Re: Change Subject Mail
« Reply #5 on: March 08, 2019, 23:53:57 pm »
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!

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

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 8837
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 2.6.22 & 3.2.14
Re: Change Subject Mail
« Reply #6 on: March 09, 2019, 09:20:51 am »
no -- because the replacement var needs changing

I do it this way

components\com_virtuemart\views\invoice\view.html.php ~ line 310
Code: [Select]
   //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 http://www.gjcwebdesign.com
VM3 AusPost Shipping Plugin - e-go Shipping Plugin - VM3 Postcode Shipping Plugin - Radius Shipping Plugin - VM3 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
http://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation