Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

SECPAY and Currency Display - Help


Nev

Recommended Posts

SECPAY does not seem to like the comma in the number format when the value is over 999.00 eg 1,000.00

 

tep_draw_hidden_field('amount', number_format($order->info['total'] * $currencies->get_value(MODUL

E_PAYMENT_SECPAY_CURRENCY), 2))

 

How can I remove the comma, whilst still keeping two decimal places as this is required because adding VAT can give a three decimal value.

 

 

Thanks in advance.

Nev :)

Link to comment
Share on other sites

tep_draw_hidden_field('amount', number_format($order->info['total'] * $currencies->get_value(MODUL

E_PAYMENT_SECPAY_CURRENCY), 2))

 

Replace the above with

 

tep_draw_hidden_field('amount', number_format($order->info['total'] * $currencies->get_value(MODUL

E_PAYMENT_SECPAY_CURRENCY), 2 , '.', ''))

Mark Evans

osCommerce Monkey & Lead Guitarist for "Sparky + the Monkeys" (Album on sale in all good record shops)

 

---------------------------------------

Software is like sex: It's better when it's free. (Linus Torvalds)

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...