Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Removing decimal and comma from total


Rhekn

Recommended Posts

I am modifying the payment module to work with a new processor. They require the format of the total to be 10000 for $100.00

 

No decimal and no comma when its over 1000.

 

Currently my code for the hidden field is this

 

tep_draw_hidden_field('P', number_format($order->info['total'], 2)) .

 

How do I get it to send 46980 instead of 469.80 or 4,6980? or 469800 instead of 4,698.00

 

Thanks

Ed

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...