News:

Looking for documentation? Take a look on our wiki

Main Menu

Publisher's shipping plugin

Started by alwarren, January 02, 2013, 01:23:21 AM

Previous topic - Next topic

alwarren

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.

veeco

i think you should 'inject' your code in payment plugin (paypal) instead of shipping plugin...look for onPaymentNotification function...
Work On Doxa Web Developer Indonesia - http://doxadigital.com |

alwarren

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.

veeco

sorry.. i mean plgVmOnPaymentNotification
Work On Doxa Web Developer Indonesia - http://doxadigital.com |