plg_phocapdf_virtuemart_email_v1.0.1

Before you ask about IDnR Addon see the VirtueMart - Invoice, Delivery Note and Receipt Addon
BSE
Phoca Newbie
Phoca Newbie
Posts: 8
Joined: 28 Sep 2011, 11:03

plg_phocapdf_virtuemart_email_v1.0.1

Post 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
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47887
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: plg_phocapdf_virtuemart_email_v1.0.1

Post by Jan »

Hi, this you can set in parameters of the plugin.

Jan
If you find Phoca extensions useful, please support the project
BSE
Phoca Newbie
Phoca Newbie
Posts: 8
Joined: 28 Sep 2011, 11:03

Re: plg_phocapdf_virtuemart_email_v1.0.1

Post 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
BSE
Phoca Newbie
Phoca Newbie
Posts: 8
Joined: 28 Sep 2011, 11:03

Re: plg_phocapdf_virtuemart_email_v1.0.1

Post by BSE »

OMfG :oops:

i'm so stupid :x

components -> phocapdf -> plugin -> tab(email)

Problem solved!

BTW:
exists a "smarty" { } to insert customer first+lastname ? like {customername}

mfg BSE
BSE
Phoca Newbie
Phoca Newbie
Posts: 8
Joined: 28 Sep 2011, 11:03

Re: plg_phocapdf_virtuemart_email_v1.0.1

Post 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

Code: Select all

	} else {


(BTW also solved)
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47887
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: plg_phocapdf_virtuemart_email_v1.0.1

Post by Jan »

Ok
If you find Phoca extensions useful, please support the project
Post Reply