Thank you for your guidance.
I am getting closer to achieve the results.
I coded the plugin. and now my code should work after the order is confirmed.
I post the code I wrote using your help. Unfortunately the event does not trigger on confirmed order.
Will you please check where did I mistake?
<?php
defined('_JEXEC') or die('Restricted access');
?>
<?php
class plgChristopher extends JPlugin
{
function plgChristopher(&$subject, $config){
parent::__construct($subject, $config);
if(!isset($this->params)){
$plugin =& JPluginHelper::getPlugin('hikashop', 'christopher');
jimport('joomla.html.parameter');
$this->params = new JParameter( $plugin->params );
}
}
function onAfterOrderUpdate(&$order,&$send_email){
if(@$order->order_status=='confirmed'){
$customerEmail = $_REQUEST;
$to = $customerEmail;
$from = "This email address is being protected from spambots. You need JavaScript enabled to view it.";
$subject = "Your payment has been verified";
$message = "This is a test";
mail($to, $subject, $message);
}
}
}
?>
As you see I used the same coding rules of the history plugin. The plugin installed ok.
I want to send a simple email after the payment, using the email address I get from the IPN answer.
I followed your instructions and still have problem.
The event does not trigger.
Would be thankful to help me in this matter.
Thank you very much
?>