hello I think the comma in orders over 1,000 euro are causing a problem for my moneybookers payment module.
Does anyone know how I can get the order total to just be 1000 rather than 1,000?
Thanks.
hello I think the comma in orders over 1,000 euro are causing a problem for my moneybookers payment module.
Does anyone know how I can get the order total to just be 1000 rather than 1,000?
Thanks.
Thanks, that works for the comma not being displayed on the site, but the comma is still being passed on as the value in my moneybookers module :/
i may not know how yet, but i soon will....i hope :)
This isn't specific to moneybookers, but DrByte's post might give you a place to look.
http://www.zen-cart.com/forum/showthread.php?t=99618
Thanks. At a guess this is the line causing the problem.
Anyone know how this would be corrected?
Code:$total_cost = number_format(($order->info['total']) * $currencies->get_value($mb_gway_currency), $currencies->get_decimal_places($mb_gway_currency));
full php file is attached.
Last edited by timdwyer42; 18 Jan 2010 at 11:04 PM.
See capture360.net/index.php/topic,104.0.html
Thanks alot man. After looking at the new module rather than replace the whole module ( I was getting blank pages )
I just changed
to thisCode:$total_cost = number_format(($order->info['total']) * $currencies->get_value($mb_gway_currency), $currencies->get_decimal_places($mb_gway_currency));
and it seems to be working perfectly. Thanks again (and for creating the module in the first place).Code:$total_cost = number_format(($order->info['total']) * $currencies->get_value($mb_gway_currency), $currencies->get_decimal_places($mb_gway_currency), '.', '');
Bookmarks