Post by wm_asia » Wed Dec 17, 2008 6:30 am

Have problem with bigger amounts (above 1000 euro) where the comma comes in place and ideal denies the input.

a piece of the code.

$output = '
    currency->format($this->order->get('total'), $currency, FALSE, FALSE) .';[/b]
    var PSPID = "teakea";
    var AM;


The var amount is the value extracted....what would be a good replacement that always forms
the numbers output without a comma ?  (ammounts lower 1000 are ok...as the comma is inserted above)

I the checkout page.,...disabling the comma in the total sum would also work...

Newbie

Posts

Joined
Wed Dec 17, 2008 6:03 am

Post by hm2k » Wed Dec 17, 2008 6:37 am

We had an issue similar to this in 0.7.8, we fixed it a while back, try 0.7.9 RC5 and see if the problem is resolved.

Thanks.

UK Web Hosting


User avatar
Global Moderator

Posts

Joined
Tue Mar 11, 2008 9:06 am
Location - UK

Post by wm_asia » Wed Dec 17, 2008 2:48 pm

Thanks for your reply....

I dont see otherwise so many ideal topics as its a Dutch payment system only.
For this reason i think its more the ideal.php that needs some extra coding
to replace the javascript variable 1,800 to 1800 as example.

Else is working properly..

Thanks

Newbie

Posts

Joined
Wed Dec 17, 2008 6:03 am

Post by Qphoria » Wed Dec 17, 2008 3:00 pm

See ".$this->currency->format($this->order->get('total')," is where the bug was

It was returning "1,000,000" instead of "1000000". So if you upgrade to 0.7.9 you shouldn't need any javascript fixes

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by wm_asia » Wed Dec 17, 2008 5:07 pm

Ok.... i will first talk with the shop owner as me and him ae not one and the same person.
I think updating to the latest version cant harm but it cost always a lot time to figure
things out...and mostly i prefer a small modification instead.

Tried a javascript update but cant get it to work that easy...
Just in case..here is the ideal code.


$output = '

";
$output .= '
label {width: 120px; text-align: left;}
button.iDEALeasy {background-color: #FFFFFF;}



document.write("");
document.write("");






Newbie

Posts

Joined
Wed Dec 17, 2008 6:03 am

Post by wm_asia » Wed Dec 17, 2008 5:49 pm

removing the format works....


$output = '
order->get('total').';
var AM;

if (isNaN(Amount)){
        alert("Amount not a number: " + Amount + " !");
AM = ""
}else{
AM = Math.round(parseFloat(Amount)*100);
}

Newbie

Posts

Joined
Wed Dec 17, 2008 6:03 am
Who is online

Users browsing this forum: No registered users and 6 guests