Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

Removing decimal and comma from total


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




Link to comment
Share on other sites


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

  • Create New...