Page 1 of 1
Completely deactivate delivery note
Posted: 14 Nov 2011, 17:58
by designinside
Hi!
I am very happy with this virtuemart addon, but I have a question:
How can I change the behaviour to send only the invoice by mail? I don´t need the delivery note.
I have implemented all like in you tutorial and want to use automatic function for sending the invoice.
Thanks.
Completely deactivate delivery note
Posted: 16 Nov 2011, 02:46
by designinside
Ok, how to disable attachment of delivery note to e-mail was discussed before here:
viewtopic.php?f=27&t=13576&p=56720
I have done this and some more (with the great help of Jan!
) to don´t send the delivery note and don´t show it in the account maintenance in the frontend. So I wrote a short How To. So you can share this.
Change some Lines in plugins/phocapdf/virtuemart/virtuemarthelper.php.
disable delivery note creation
around line 124
Change:
Code: Select all
$linkPDFDeliveryNote[] = PhocaPDFVirtueMartHelper::renderPDFIcon($sess, URL, 'deliverynote', 'order.order_print', 'createPDFDelivery', $order_id, $value->delivery_id);
to:
-----------------------------------------------------
let the delivery note disappear in the frontend
around line 144
Change:
Code: Select all
if (!empty($linkPDFDeliveryNote)) {
$h .= '<td>'.JText::_('PLG_PHOCAPDF_VM_DELNOTE').'</td>';
$i .= '<td>'.implode($linkPDFDeliveryNote, ' ').'</td>';
}
to:
Code: Select all
//if (!empty($linkPDFDeliveryNote)) {
// $h .= '<td>'.JText::_('PLG_PHOCAPDF_VM_DELNOTE').'</td>';
// $i .= '<td>'.implode($linkPDFDeliveryNote, ' ').'</td>';
//}
-----------------------------------------------------
disable attachment of delivery note to e-mail
around line 206
Change:
Code: Select all
$data['attachment'][1] = 1;
$data['attachmentfile'][1] = $r['adelnote'];
to:
Code: Select all
//$data['attachment'][1] = 1;
//$data['attachmentfile'][1] = $r['adelnote'];
Done!
So if you don´t need delivery notes in your virtuemart shop try this!
Re: Completely deactivate delivery note
Posted: 16 Nov 2011, 15:52
by Jan
Hi, thank you for the guide.
Jan