php - Missing digits in magento Price on frontend -



php - Missing digits in magento Price on frontend -

im using next code include cost products on custom page:

<?php echo mage::helper('tax')->getprice($_product, $_product->getfinalprice(), null);?>

the cost shows on frontend should apart under 1 instance. beingness if product cost ends in 0 (or 2) within decimal places illustration cost of £3.00 displayed £3, £3.50 displayed £3.5 & £3.99 display is.

is there improve way me pull product price?

the cost should called float, perhaps it's info conversion issue db? can forcefulness column float field db stores 2 decimal places well? maybe create float(7,2)?

php magento

Comments

Popular posts from this blog

javascript - mongodb won't find my schema method in nested container -

Hibernate criteria by a list of natural ids -

ios - Lagging ScrollView with UIWebview inside -