Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Need advice on Modifying Cart Count to show 0.00 rather than just 0.


vampirehunter

Recommended Posts

I have some code on my page header which is showing the shopping cart total, so that customer can see their total in the basket on every page.

 

<?php echo $cart->count_contents().' item(s)  <strong> £' . $cart->show_total() . '</strong>'; ?>

 

But at the moment, i am only getting a £0 showing rather than a £0.00

 

What would i need to modify to get it to show £0.00?

 

I tried this

 

$currencies->format($cart->show_total())

 

but i get £0.000

 

 

ive set my default currency to GBP, set to 2 decimal places in admin.

 

thanks

Link to comment
Share on other sites

But at the moment, i am only getting a 0 showing rather than a 0.00

 

What would i need to modify to get it to show 0.00? Also, do i have to manually add a £ sign?

 

I tried this which gives a £ sign but gives £0.000 rather than £0.00

 

$currencies->format($cart->show_total())

 

 

 

ive set my default currency to GBP, set to 2 decimal places in admin.

 

thanks

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...