Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

Show Tier Pricing with currency
 
jimcee
Jr. Member
 
Total Posts:  29
Joined:  2009-02-16
Brighton, UK
 

I have a magento store that I am showing price breaks of a product.

Currrently uses this:
<?php echo $price =Mage::helper('core')->currency($value['price']); ?>

but price highlighted needs to be down to 4 decimal points, currently 2.

IMAGE 1

====

I need to show 4 decimal points of the price…

<?php echo $tierprice=number_format($value['price'], 4, '.', '') ?>

This does it - to 4 decimal points, but does not show currency symbol:

IMAGE 2

====

I’ve tried -

<?php echo $tierprice =Mage::helper('core')->currency($value['price'], 4, '.', '') ?>

and

<?php echo $tierprice =Mage::helper('core')->currency(($value['price'], 4, '.', '')); ?>

Doesn’t work.

>> Any ideas to to rewrite the code with the currency added to the line above?

Image Attachments
image.pngimage1.pngimage1.png
 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top