Forums / General Questions / Custom MOD in the Works Help Needed

Custom MOD in the Works Help Needed

Results 1 to 2 of 2
08 Feb 2012, 02:54
#1
ryanb4614 avatar

ryanb4614

Totally Zenned

Join Date:
Feb 2008
Posts:
556
Plugin Contributions:
0

Custom MOD in the Works Help Needed

I am trying to creat a mod that sends a certain email when someone checksout. I have the developer that helped me looking into this but he is not 100% sure. I would like someone on her to take a look.
I am getting the following error in the debug:
PHP Fatal error: Call to undefined method order::send_price_email() in /includes/modules/checkout_process.php on line 98

on line 98 it is the following code:
// BOF : PRICE Notice
$order->send_price_email();
// EOF : PRICE Notice

This is causing the customers not to be able to continue the checkout, it brings them to a page not found. I removed the code above and they can checkout...
08 Feb 2012, 06:16
#2
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Posts:
21,876
Plugin Contributions:
6

Re: Custom MOD in the Works Help Needed

It seems self-evident that you are trying to create a new send_price_email() method, and it does not exist in $order. Where does it exist?