VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: jux on December 12, 2012, 16:23:52 PM

Title: COM_VIRTUEMART_MAIL_SUBJ_SHOPPER_Z
Post by: jux on December 12, 2012, 16:23:52 PM
Hello guys, I have set up a new payment in order for my customer to pay per check (cheque).
I have set it up as "standard" but now when a customer confirm me the order I received an email with object:
COM_VIRTUEMART_MAIL_SUBJ_VENDOR_Z
and he receives an email with:
COM_VIRTUEMART_MAIL_SUBJ_SHOPPER_Z

could you please let me know how to resolve this issue?

thank you

[attachment cleanup by admin]
Title: Re: COM_VIRTUEMART_MAIL_SUBJ_SHOPPER_Z
Post by: bytelord on December 12, 2012, 16:27:41 PM
Hello,

VM and Joomla version? What language you are using? Did you check if they are already translated?

Regards
Title: Re: COM_VIRTUEMART_MAIL_SUBJ_SHOPPER_Z
Post by: PetervanDriel on January 03, 2013, 13:19:12 PM
Same issue here. I created extra statusses in VM2.0.16.
These new statusses get all an email subject "COM_VIRTUEMART_MAIL_SUBJ_VENDOR_"
When I create an override in Joomla Languages, it doesn't work.

The solution so far is to add it to the language file of Virtuemart, but that doesn't allow me easily create a new status only via backend!
Title: Re: COM_VIRTUEMART_MAIL_SUBJ_SHOPPER_Z
Post by: Milbo on January 03, 2013, 14:23:56 PM
That the override of joomla does not work is nasty. Of course it was meant like that. The langkey is always "COM_VIRTUEMART_MAIL_SUBJ_VENDOR_" + orderstatus.
Title: Re: COM_VIRTUEMART_MAIL_SUBJ_SHOPPER_Z
Post by: PetervanDriel on January 03, 2013, 14:28:07 PM
See attached screenshot how I made my overrides.
If the Constante is not declared in the language file, it does not work...

[attachment cleanup by admin]
Title: Re: COM_VIRTUEMART_MAIL_SUBJ_SHOPPER_Z
Post by: Milbo on January 03, 2013, 14:35:51 PM
yeh, for me a joomla "bug", or feature. It is a matter of philosophy if you want to allow people to load extra language keys. Nasty for us, but understandable. A typical case we should write and make loud noise. "hey guys, the override is only for override, why not also for adding extra language keys?".
Title: Re: COM_VIRTUEMART_MAIL_SUBJ_SHOPPER_Z
Post by: alatak on January 03, 2013, 19:55:02 PM
Hello
QuoteThese new statusses get all an email subject "COM_VIRTUEMART_MAIL_SUBJ_VENDOR_"
When I create an override in Joomla Languages, it doesn't work.
In this particular case of sending emails, Joomla loads the overrides from the administration
Declare your keys there , and it will work
Title: Re: COM_VIRTUEMART_MAIL_SUBJ_SHOPPER_Z
Post by: Milbo on January 03, 2013, 19:56:15 PM
ahh thanks valerie, so joomla does it correct. good.
Title: Re: COM_VIRTUEMART_MAIL_SUBJ_SHOPPER_Z
Post by: PetervanDriel on January 03, 2013, 20:07:00 PM
Quote from: alatak on January 03, 2013, 19:55:02 PM
Hello
QuoteThese new statusses get all an email subject "COM_VIRTUEMART_MAIL_SUBJ_VENDOR_"
When I create an override in Joomla Languages, it doesn't work.
In this particular case of sending emails, Joomla loads the overrides from the administration
Declare your keys there , and it will work

So, if you look to the picture I attached, it looks ok?
Title: Re: COM_VIRTUEMART_MAIL_SUBJ_SHOPPER_Z
Post by: alatak on January 03, 2013, 20:29:39 PM
Hello

You must declare the keys in the administration override language file.
The picture does not tell where you declare them.
Title: Re: COM_VIRTUEMART_MAIL_SUBJ_SHOPPER_Z
Post by: PetervanDriel on January 03, 2013, 22:25:12 PM
Quote from: alatak on January 03, 2013, 20:29:39 PM
You must declare the keys in the administration override language file.

Stupid question from my side... But If I simply copy the file from the overrides to the admin-overrides, that is enough? Or how should the file be formatted?
Title: Re: COM_VIRTUEMART_MAIL_SUBJ_SHOPPER_Z
Post by: alatak on January 03, 2013, 22:41:13 PM
Hello
yes that will work
Title: Re: COM_VIRTUEMART_MAIL_SUBJ_SHOPPER_Z
Post by: maxispin on October 02, 2013, 20:36:10 PM
This is a bit frustrating thing because first you have to create a new status code, and then do the same in override or language file.

With VM 1 (and Joomla 1.5.) no such problem and worked like a charm.
Title: Re: COM_VIRTUEMART_MAIL_SUBJ_SHOPPER_Z
Post by: alatak on October 03, 2013, 09:23:24 AM
Hello
VM1 was not native multilanguage ecommerce component .
Title: Re: COM_VIRTUEMART_MAIL_SUBJ_SHOPPER_Z
Post by: maxispin on October 03, 2013, 09:30:33 AM
Hello Alatak,
I understand your point but I can't understand how Status name field differs from Product name field.
Title: Re: COM_VIRTUEMART_MAIL_SUBJ_SHOPPER_Z
Post by: jux on October 09, 2013, 18:21:55 PM
ok but your answers does not help me

I have an issue with my french virtuemart translation

I have created a new payment (pay by check) with status = Z


when myself and customer are receiving email on, the title it is written =
COM_VIRTUEMART_MAIL_SUBJ_SHOPPER_Z
COM_VIRTUEMART_MAIL_SUBJ_VENDOR_Z


So I went into my french language : fr-FR.com_virtuemart.ini in order to add those 2 lines below those ones:
COM_VIRTUEMART_MAIL_SUBJ_SHOPPER_C="[%3$s], Commande confirmée au %1$s, d'un total de %2$s"
COM_VIRTUEMART_MAIL_SUBJ_SHOPPER_P="[%3$s], Commande en attente %1$s, total %2$s"
COM_VIRTUEMART_MAIL_SUBJ_SHOPPER_R="[%3$s], Commande remboursée %1$s, total %2$s"
COM_VIRTUEMART_MAIL_SUBJ_SHOPPER_S="[%3$s], Commane expédiée de %1$s, total %2$s"
COM_VIRTUEMART_MAIL_SUBJ_SHOPPER_U="[%3$s], Commande confirmée %1$s, total %2$s"
COM_VIRTUEMART_MAIL_SUBJ_SHOPPER_X="[%3$s], Commande annulée %1$s, total %2$s"
COM_VIRTUEMART_MAIL_SUBJ_VENDOR_C="[%3$s], commande confirmée par %1$s,%2$s au total"
COM_VIRTUEMART_MAIL_SUBJ_VENDOR_P="[%3$s], Commande enregistrée pour %1$s, total %2$s"
COM_VIRTUEMART_MAIL_SUBJ_VENDOR_R="[%3$s], Commande remboursée pour %1$s, total %2$s"
COM_VIRTUEMART_MAIL_SUBJ_VENDOR_S="[%3$s], Commande expédiée pour %1$s, total %2$s"
COM_VIRTUEMART_MAIL_SUBJ_VENDOR_U="[%3$s], Commande confirmée par %1$s, total %2$s"
COM_VIRTUEMART_MAIL_SUBJ_VENDOR_X="[%3$s], Commande annulée pour %1$s, total %2$s"

COM_VIRTUEMART_MAIL_SUBJ_SHOPPER_Z="[%3$s], Commane expédiée de %1$s, total %2$s"
COM_VIRTUEMART_MAIL_SUBJ_VENDOR_Z="[%3$s], Commande annulée pour %1$s, total %2$s"

But when I add those 2 lines the translation goes into english instead to be display in French only, i do not understand why ?

could you please help me?
Title: Re: COM_VIRTUEMART_MAIL_SUBJ_SHOPPER_Z
Post by: jjk on October 10, 2013, 16:43:36 PM
Did you place your language key/string in both, the frontend and the backend french override files? As Alatak mentioned earlier in this forum thread, the ones for the emails are taken from the backend (administrator) language files. So the override should be in ...\administrator\language\overrides. If you use French and English, you should create overrides for both languages.

The already existing status lines are in both:
...\administrator\language\fr-FR\fr-FR.com_virtuemart.ini
...\language\fr-FR\fr-FR.com_virtuemart.ini
Title: Re: COM_VIRTUEMART_MAIL_SUBJ_SHOPPER_Z
Post by: jux on October 31, 2013, 22:07:21 PM
Hello so i have tried to insert those 2 lines:
COM_VIRTUEMART_MAIL_SUBJ_SHOPPER_Z="[%3$s], Commane expédiée de %1$s, total %2$s"
COM_VIRTUEMART_MAIL_SUBJ_VENDOR_Z="[%3$s], Commande annulée pour %1$s, total %2$s"

into
..\administrator\language\fr-FR\fr-FR.com_virtuemart.ini
...\language\fr-FR\fr-FR.com_virtuemart.ini

but issue is :
Virtuemart frontent goes in english (instead to be in french)
Virtuemart backen is all in english (instead to be in french)

Email confirmation of the order is not send anymore???

please let me know how to correct that please
Title: Re: COM_VIRTUEMART_MAIL_SUBJ_SHOPPER_Z
Post by: jux on October 31, 2013, 22:13:37 PM
and i have tried to put the fr-FR.com_virtuemart.ini into:  ...\administrator\language\overrides.

but it still not working and the strangest part is:

* My customer and myself are not receiving the confirmation email?

when i cancel the order i receive the information by mail that the order have been cancelled?

please give me your help

thank you