I added a php function to magento price template this way
I added this code:
<?php
function Convert2farsi ($srting)
{
$search= array("0","1","2","3","4","5","6","7","8","9");
$replace= array("A","B","C","D","E","F","G","H","I","J");
$int= str_replace($search,$replace,$srting);
return$int;
}
?>
to app/design/frontend/shopper/default/template/catalog/product/price.phtml
and changed this line price.phtml:
<?php $_convertedPrice = $_store->roundPrice($_store->convertPrice($_product->getPrice())); ?>
to this:
<?php $_convertedPrice = $_store->roundPrice($_store->convertPrice(Convert2farsi ($_product->getPrice()))); ?>
Problems:
Products with Custom Options wont take effect of this code and are showing in their past way.
In each category just one product is shown and the others are missing.
Product prices won't show on category hover mode and give this error on hover:
cannot redeclare Convert2farsi () previously declared in .../price.phtml line 28 and 34