empty order_payment value in database after update to 2.0.22b [solved]

Started by Bollek, August 29, 2013, 15:48:32 PM

Previous topic - Next topic

Bollek

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


alatak

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

Bollek

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?

alatak

Hello

Can you send me via PM credentials on your website, and i will check.

alatak

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;

Bollek

hi,

thank you very much alatak,  that solved the problem.
You are a genius ;D.

bollek