Page 1 of 1
plg_phocapdf_virtuemart_email_v1.0.1
Posted: 26 Oct 2011, 16:16
by BSE
Hallo Jan,
i've a short question:
Where can i find the auto. includet Text + subject in Email-Form from VM-Email-Plugin (plg_phocapdf_virtuemart_email_v1.0.1) to translate it... cant find file location to change this strings.
like marked text:
http://imageshack.us/photo/my-images/82 ... lugin.jpg/
mfg BSE
Re: plg_phocapdf_virtuemart_email_v1.0.1
Posted: 27 Oct 2011, 21:34
by Jan
Hi, this you can set in parameters of the plugin.
Jan
Re: plg_phocapdf_virtuemart_email_v1.0.1
Posted: 28 Oct 2011, 08:46
by BSE
Hallo Jan,
i'm lil stupid but i cant find params for this plugin. (Phoca Invoice, Delivery Note, Receipt + donated Email Plugin to send invoices via email "plg_phocapdf_virtuemart_email_v1.0.1")
my plugins:
http://imageshack.us/photo/my-images/408/pluginse.jpg/
...
In component "Phoca E-Mail" i cant also change it.
In VM Order-Details -> Delivery -> i can klick on - send invoice via email (Image-button) - a popup is shown with all informations to send email + attachment.
OR
Do u mean to change params in XML File [plugins/phocapdf/virtuemart.xml]?
Code: Select all
<param name="delivery_email_invoice_msg" type="phocaeditor" hide="image,article,pagebreak,readmore,phocagallery,phocadownload" safehtml="true" default="Dear Customer, <br /><br />Thank you for your order dated {OrderDate}. Enclosed you will find PDF invoice.<br /> The items you ordered will be shipped within a week.<br/>We assure you that your order will be performed to your entire satisfaction.<br /></br />Yours sincerely<br /><br />{Footer}" label="PLG_PHOCAPDF_VM_FIELD_DELIVERY_EMAIL_INVOICE_MSG_LABEL" description="PLG_PHOCAPDF_VM_FIELD_DELIVERY_EMAIL_INVOICE_MSG_DESC" />
But if i change "default" value ... i got no changes in auto. defined text on - send invoice via email -
Whats my fail?
mfg BSE
Re: plg_phocapdf_virtuemart_email_v1.0.1
Posted: 28 Oct 2011, 10:02
by BSE
OMfG
i'm so stupid
components -> phocapdf -> plugin -> tab(email)
Problem solved!
BTW:
exists a "smarty" { } to insert customer first+lastname ? like {customername}
mfg BSE
Re: plg_phocapdf_virtuemart_email_v1.0.1
Posted: 28 Oct 2011, 11:27
by BSE
So...
To add (ger) "Anrede" / (eng) "???salutation or honorific???" like {Anrede}
to auto inssert email-form-text... i added in
[plugins/phocapdf/virtuemart/virtuemarthelper.php]
after:
Code: Select all
if ($r['type'] == 'invoice') {
$subjectI = $pluginP->get('delivery_email_invoice_subject', 'Invoice Nr.: ');
$r['subject'] = $subjectI . sprintf("%08d", $delivery_id) . ' (' . $r['orderfrom']. ')' ;
$message = $pluginP->get('delivery_email_invoice_msg', 'Dear Customer...}');
$message = str_replace('{OrderId}', sprintf("%08d", $order_id), $message);
$message = str_replace('{OrderDate}', $dbo->order_date, $message);
$message = str_replace('{Footer}', $r['emailfooter'], $message);
following code:
Code: Select all
$message = str_replace('{Anrede}', $dbu->title.' '.$dbu->first_name.' '.$dbu->last_name, $message);
same for:
Code: Select all
} else if ($r['type'] == 'receipt') {
and
(
BTW also solved)
Re: plg_phocapdf_virtuemart_email_v1.0.1
Posted: 28 Oct 2011, 22:35
by Jan
Ok