Invia le tue Newsletter con JNews!

lunedì 4 agosto 2014

cambiare l'oggetto dell'e-mail in Virtuemart 2

L'oggetto delle e-mail può essere cambiato semplicemente effettuando i seguenti override di lingua:
  • COM_VIRTUEMART_MAIL_SUBJ_SHOPPER_C="[%3$s], Bestätigung Ihrer Bestellung bei %1$s"
  • COM_VIRTUEMART_MAIL_SUBJ_SHOPPER_P="[%3$s], Bestellung wird bearbeitet von %1$s"
  • COM_VIRTUEMART_MAIL_SUBJ_SHOPPER_R="[%3$s], Bestellung rückerstattet von %1$s"
  • COM_VIRTUEMART_MAIL_SUBJ_SHOPPER_S="[%3$s], Bestellung versendet von %1$s"
  • COM_VIRTUEMART_MAIL_SUBJ_SHOPPER_U="[%3$s], Bestellung bestätigt von %1$s"
  • COM_VIRTUEMART_MAIL_SUBJ_SHOPPER_X="[%3$s], Bestellung storniert von %1$s"
  • COM_VIRTUEMART_MAIL_SUBJ_VENDOR_C="[%3$s], Bestätigung der Bestellung von %1$s"
  • COM_VIRTUEMART_MAIL_SUBJ_VENDOR_P="[%3$s], Eingang einer Bestellung von %1$s"
  • COM_VIRTUEMART_MAIL_SUBJ_VENDOR_R="[%3$s], Zurückerstattete Bestellung für %1$s"
  • COM_VIRTUEMART_MAIL_SUBJ_VENDOR_S="[%3$s], Bestellung versendet für %1$s"
  • COM_VIRTUEMART_MAIL_SUBJ_VENDOR_U="[%3$s], Bestellung bestätigt von %1$s"
  • COM_VIRTUEMART_MAIL_SUBJ_VENDOR_X="[%3$s], Stornierte Bestellung für %1$s"


In questo modo non dovremo preoccuparci di toccare il codice di Virtuemart ma dovremo solo usare l'intefaccia ESTENSIONI->GESTIONE LINGUA presente su Joomla! dalla versione 2.5

STRUTTURA DEGLI OVERRIDE

Vediamo come sono strutturati:

COM_VIRTUEMART_MAIL_SUBJ_SHOPPER_C="[%3$s], Bestätigung Ihrer Bestellung bei %1$s"

I valori sono separti da un simbolo di "=", a sinistra del simbolo di "=" troviamo:

COM_VIRTUEMART_MAIL_SUBJ_SHOPPER_C 

questa è la è la costante da tradurre. A destra del simbolo di "=" troviamo invece il valore da tradurre.

In questo caso sono state inserite anche due variabili ovvero:
%3$s, il numero dell'ordine
 %1$s, il totale dell'ordine







Nessun commento:

Posta un commento

prestiamoci - il tuo investimento consapevole

Prestiamoci - Il tuo investimento consapevole