VirtueMart Forum

VirtueMart 2 + 3 + 4 => Plugins: Payment, Shipment and others => Topic started by: alwarren on January 02, 2013, 01:23:21 AM

Title: Publisher's shipping plugin
Post by: alwarren on January 02, 2013, 01:23:21 AM
After a payment is confirmed by the paypal pro plugin, we need to send an email to our publisher. The email must contain an attached text file with the order details. Upon receipt of the email, the publisher prints the book(s) and ships it. Shipping charges are included in the price of the book. I have a class that builds the text file in the correct format and sends the email with the attachment. However, I have to inject code into the existing payment plugin to do that. What would be a better approach? Would a custom shipping module be more appropriate? Thanks.
Title: Re: Publisher's shipping plugin
Post by: veeco on January 02, 2013, 10:56:49 AM
i think you should 'inject' your code in payment plugin (paypal) instead of shipping plugin...look for onPaymentNotification function...
Title: Re: Publisher's shipping plugin
Post by: alwarren on January 03, 2013, 04:24:16 AM
Quote from: veeco on January 02, 2013, 10:56:49 AM
i think you should 'inject' your code in payment plugin (paypal) instead of shipping plugin...look for onPaymentNotification function...

There is no onPaymentNotification in the Jcpaypalpro plugin, vmPSPlugin, or vmPlugin.
Title: Re: Publisher's shipping plugin
Post by: veeco on January 04, 2013, 08:47:01 AM
sorry.. i mean plgVmOnPaymentNotification