VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: nanozombi on May 21, 2018, 02:27:58 AM

Title: EMail with COM_VIRTUEMART_MAIL_SUBJ_SHOPPER_D header
Post by: nanozombi on May 21, 2018, 02:27:58 AM
Hi,
I have just set up a site with VM last version and I found that when I deny an order, it sends the user an email with the header: COM_VIRTUEMART_MAIL_SUBJ_SHOPPER_D

I checked the en-GB.com:virtuemart.ini file and found that there are only these strings:
Line 535: COM_VIRTUEMART_MAIL_SUBJ_SHOPPER_C="[%3$s], Confirmed order at %1$s, total %2$s"
   Line 536: COM_VIRTUEMART_MAIL_SUBJ_SHOPPER_P="[%3$s], Order is pending at %1$s, total %2$s"
   Line 537: COM_VIRTUEMART_MAIL_SUBJ_SHOPPER_R="[%3$s], Refunded order by %1$s, total %2$s"
   Line 538: COM_VIRTUEMART_MAIL_SUBJ_SHOPPER_S="[%3$s], Shipped order from %1$s, total %2$s"
   Line 539: COM_VIRTUEMART_MAIL_SUBJ_SHOPPER_U="[%3$s], You confirmed an order at %1$s, total %2$s"
   Line 540: COM_VIRTUEMART_MAIL_SUBJ_SHOPPER_X="[%3$s], Cancelled order by %1$s, total %2$s"

But no SHOPPER_D, which is why it sends the email without the translation. I guess this line was not added by mistake to the ini file, what do you think?
How can I solve this?

Thank you very much,
NZB
Title: Re: EMail with COM_VIRTUEMART_MAIL_SUBJ_SHOPPER_D header
Post by: Jörgen on May 22, 2018, 11:35:05 AM
_D is for the order status You have created. This has to be matched in the language files. Virtuemart can not know what You are calling a new order status.
Create COM_VIRTUEMART_MAIL_SUBJ_SHOPPER_D in all Your languages. You will have a couple of other strings connected to this that needs to be created, COM_VIRTUEMART_MAIL_SUBJ_VENDOR_D, etc, You will figure it out.

regards

Jörgen @ Kreativ Fotografi
Title: Re: EMail with COM_VIRTUEMART_MAIL_SUBJ_SHOPPER_D header
Post by: Cpointcc on May 22, 2018, 21:04:09 PM
Yes, that did the trick.  Thank you for your help with this topic.
Title: Re: EMail with COM_VIRTUEMART_MAIL_SUBJ_SHOPPER_D header
Post by: StefanSTS on September 24, 2018, 05:28:10 AM
The language variables for status D and F were missing in the core translation.
They will be added.

STS