[Drupal Ubercart] How to format a price?

By webmaster | 05th November 2012 | 1 min read

You might wish to know how to format a price using PHP which could be useful while theming Ubercart invoices in your Drupal site. Its extremely easy to do that. Read on to find out more.

The uc_currency_format function should be the standard Drupal Ubercart function used to format prices. Follow the example to implement it in your theme.

price); 
?>

Hope that helps.

The easiest way to solve a Drupal issue is to hand it to the Drupal experts. We can provide a wide range of Drupal services to help you maintain and manage your Drupal websites. Get in touch with us to know more.