Hi,
i'm using VM 2.0.22b and Joomla 2.5.14. I put 3 percentage to the total sale as payment method costs and when a customer orders something all is calculatet well, but after the order nothing is written in table "#__virtuemart_orders" (column: order_payment) of the database. The rest is ok, only the column "order_payment" is empty and therefore customer doesn't see the costs for the payment method in the invoice mail.
Is this a bug or just my false configuration?
bollek
Check this http://www.rupostel.com/phpBB3/viewtopic.php?f=5&t=632&sid=d23fb77a735d1ee54cc65a9089cc9114
Hello
I have fixed this issue for the next version
if you are using Paypal, go line 1058
and replace that line
$cart_prices[ $_psType.'Value'] = $feeNoVat;
with
$cart_prices[ $this->_psType .'Value'] = $feeNoVat;
The problem is the same for standard
but line 387
hi,
thanks for the replies.
@agps
i checked the link, but i don't use the opc plugin ;)
@alatak
yep, i'm using payal,
i changed the lines in ./plugins/vmpayment/standard/standard.php and ./plugins/vmpayment/paypal/paypal.php, which you mentioned, but "order_payment" is still emtpy in the database.
Have i misunderstood your workaround?
Hello
Can you send me via PM credentials on your website, and i will check.
Hello
Ok i found
You need also to add after those lines
$NewTotalAmount=($cartTotalAmount+ $method->cost_per_transaction) / (1 -$cost_percent_total);
$fee=$NewTotalAmount-$cartTotalAmount;
$cart_prices['salesPrice' . $_psType] = $fee;
$cart_prices[$this->_psType . 'Tax'] = 0;
$cart_prices[$this->_psType . '_calc_id'] = 0;
this line
$cart_prices[ $this->_psType .'Value'] = $fee;
hi,
thank you very much alatak, that solved the problem.
You are a genius ;D.
bollek