Hello, i've just tested this with OPC disabled and it seems to be a VM bug. The reason for this bug is that VM does not fill:
$_orderData->order_payment = $_prices['paymentValue'];
$_orderData->order_payment_tax = $_prices['paymentTax'];
in:
\administrator\components\com_virtuemart\models\orders.php
but uses only $_prices['salesPricePayment'] which is not used in vm2.0.22 order store functions.
you can add a new function within OPC system plugin in /plugins/system/opc/opc.php (will be available in the next release)
- Code: Select all
// triggered from: \administrator\components\com_virtuemart\models\orders.php
public function plgVmOnUserOrder(&$_orderData)
{
// fix vm2.0.22 bug
if (empty($_orderData->order_payment) && (empty($_orderData->order_payment_tax)))
{
if (!class_exists('VirtueMartCart'))
require(JPATH_VM_SITE . DS . 'helpers' . DS . 'cart.php');
$cart = VirtueMartCart::getCart();
$prices = $cart->getCartPrices();
if (!empty($prices['salesPricePayment']))
{
$_orderData->order_payment = (float)$prices['salesPricePayment'];
}
}
}
Best Regards,
Stan