To display our prices correctly in a slider on Magento I use this line:
<?php $first_amount_before_split = number_format($this->helper('tax')->getPrice($_product, $_product->getFinalPrice()), '2', '.', ','); $my_array = explode(".", $first_amount_before_split);?>
And I echo that line with: <span class="main-price"><?php echo $my_array[0]; ?>,-</span>
But prices above 1000 are displayed as: 1,100,- and I want to display this as 1.100,-
So I would like to change the symbol , for a .
How can I achieve that?