Hi,
We made a new implementation of the integration plugin with AlphaUserPoints but the plugin is not finished yet.
For the moment you can edit the plugin "plugins/hikashoppayment/alphauserpoints/alphauserpoints.php" and replace the code:
function onAfterOrderUpdate(&$order,&$send_email){
$method = $this->getMethod();
if(!isset($order->order_status))
return true;
$this->_giveAndGiveBack($order, $method, 0);
}
By
function onAfterOrderUpdate(&$order,&$send_email){
$method = $this->getMethod();
if(!isset($order->order_status))
return true;
if( !empty($order->order_type) && $order->order_type != 'sale' )
return true;
$this->_giveAndGiveBack($order, $method, 0);
}
And the code:
function onAfterOrderCreate(&$order,&$send_email){
$app =& JFactory::getApplication();
if($app->isAdmin()) {
return true;
}
By:
function onAfterOrderCreate(&$order,&$send_email){
$app =& JFactory::getApplication();
if($app->isAdmin()) {
return true;
}
if( !empty($order->order_type) && $order->order_type != 'sale' )
return true;
It will not process points for other things that the HikaShop orders.
Regards,