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

Change currency from US Dollar to Points
 
sherrie
Moderator
 
Avatar
Total Posts:  1655
Joined:  2007-12-14
Waterloo, ON
 

Does anyone have any idea how I would change the currency from US Dollar to a points system? I don’t need it to convert anything, it just needs to read as 500 points instead of $500.00.

 
Magento Community Magento Community
Magento Community
Magento Community
 
Brandlive_br
Guru
 
Avatar
Total Posts:  653
Joined:  2008-05-19
Buenos Aires, Argentina
 

Maybe you can look at /lib/Zend/Locale/Data/es_AR.xml

(I’ve used es_AR ‘cause it’s my locale, but there you can find the rest of all).

--
Damián

 
Magento Community Magento Community
Magento Community
Magento Community
 
sherrie
Moderator
 
Avatar
Total Posts:  1655
Joined:  2007-12-14
Waterloo, ON
 

I did that to remove the $ sign but I was hoping to find out where in the template the currency sign is brought in so that I can add the word Points after the cost.

 
Magento Community Magento Community
Magento Community
Magento Community
 
Brandlive_br
Guru
 
Avatar
Total Posts:  653
Joined:  2008-05-19
Buenos Aires, Argentina
 

Look at:

/app/design/frontend/[yourpackage]/[yourhteme]/template/catalog/product/price.phtml.

Look that you gonna find something like this

<?php echo Mage::helper('core')->currency($_price,true,true?>

If you canghe that value for:

<?php echo Mage::helper('core')->currency($_price,false,true?>

You gonna get just the number, without currency and without decimals.

--
Damián

 
Magento Community Magento Community
Magento Community
Magento Community
 
sherrie
Moderator
 
Avatar
Total Posts:  1655
Joined:  2007-12-14
Waterloo, ON
 

Ah, perfect! That corrected it on all the catalog pages and I was able to add the word Points behind it. Now I just need to figure out where it is being pulled for the cart and checkout and it’ll be good to go!

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top