Guest Posted December 22, 2002 Share Posted December 22, 2002 I'm having a headache with this one, it won't calculate properly. If I have purchased products for, let's say 300 NOK and shipping are 150 NOK it's ok. BUT if i purchase products for 1000 and shipping are 150 it totals 150 + 1. It won't work with purchases over 1000 NOK. Could someone PLEASE take a look. I would be happy to provide some more help. function confirmation() { global $checkout_form_action; global $order, $currencies; $amount = number_format(($order->info['total'] - $order->info['shipping_cost']) * $currencies->currencies[MODULE_PAYMENT_PAYNET_SETTLEMENTCURRENCY]['value'], 2) + number_format($order->info['shipping_cost'] * $currencies->get_value(MODULE_PAYMENT_PAYNET_SETTLEMENTCURRENCY), 2); $checkout_form_action = 'https://www.paynet.no/terminal?'. 'totam='.$amount. '&ttype='.MODULE_PAYMENT_PAYNET_TTYPE. '&descr='.STORE_NAME. '&utref='.$order->customer['email_address']. '&curry='.MODULE_PAYMENT_PAYNET_SETTLEMENTCURRENCY. '&payid='.MODULE_PAYMENT_PAYNET_PAYID. '&langu=NO'. '&mrurl='.MODULE_PAYMENT_PAYNET_MRURL. '&mcurl='.MODULE_PAYMENT_PAYNET_MCURL. '&maurl='.MODULE_PAYMENT_PAYNET_MAURL. '&mlurl='.MODULE_PAYMENT_PAYNET_MLURL; return $confirmation_string; } Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.