Hi,
Thanks for the details ; it helps !
Can you please edit the file "plugins/hikashoppayment/userpoints/userpoints.php" and replace
if($this->plugin_params->minimumcost > $total)
return false;
if($this->plugin_params->allowshipping == 1)
$calculatedPrice = $total;
else
$calculatedPrice = $total_without_shipping;
By
if($this->plugin_params->allowshipping == 1)
$calculatedPrice = $total;
else
$calculatedPrice = $total_without_shipping;
if($this->plugin_params->minimumcost > $calculatedPrice)
return false;
And also replace
if(!isset($order->full_total)) {
$total = $order->order_full_price;
$total_without_shipping = $total-$order->order_shipping_price;
} else {
$total = $order->full_total->prices[0]->price_value_with_tax;
$total_without_shipping = $order->total->prices[0]->price_value_with_tax;
}
into
if(!isset($order->full_total)) {
$total = $order->order_full_price;
$total_without_shipping = $total-$order->order_shipping_price;
} else {
$total = $order->full_total->prices[0]->price_value_with_tax;
$total_without_shipping = $order->total->prices[0]->price_value_with_tax;
}
if(isset($order->additional['userpoints'])) {
$total -= $order->additional['userpoints']->price_value;
if(!isset($order->full_total))
$total_without_shipping -= $order->additional['userpoints']->price_value;
}
Thanks to these two modification, it should exclude the shipping price when processing the "minimum cost" check and it will provide a right total without shipping in every cases.
Regards,