But anytime I change anything, it’s not showing up on the frontend...so I’m not positive. I see the similar sources though. Maybe that will be a good start first clue
If you are still having problems getting prices to display properly then edit the price.phtml template located at:
app/design/frontend/default/yourtheme/template/catalog/product/price.phtml - I am using the modern theme as a building block.
Basically, the default looks like this:
<?php echo Mage::helper('core')->currency($_price) ?>
Simply throw in a str_replace (if you can handle the overhead):
<?php echo str_replace (" ", "", Mage::helper('core')->currency($_price)) ?>
Remember to replace the strings for all other prices i.e. _minimalPrice, _finalPrice.
If you are still having problems getting prices to display properly then edit the price.phtml template located at:
app/design/frontend/default/yourtheme/template/catalog/product/price.phtml - I am using the modern theme as a building block.
Basically, the default looks like this:
<?php echo Mage::helper('core')->currency($_price) ?>
Simply throw in a str_replace (if you can handle the overhead):
<?php echo str_replace (" ", "", Mage::helper('core')->currency($_price)) ?>
Remember to replace the strings for all other prices i.e. _minimalPrice, _finalPrice.
Hope this helps,
Justin.
*Update:
The above solution works for prices but renders the mark-up <span class="nobr">price</span> invalid i.e. <spanclass="nobr">price</span> - which isn’t valid HTML mark-up.
I can seem to find where the span is added to the price, so I guess it happens within core - I think waiting for a fix is the best idea.
Out of interest, does anyone know why HTML theme based mark-up is being added by core and is seemingly incapable of being overridden?
If you are still having problems getting prices to display properly then edit the price.phtml template located at:
app/design/frontend/default/yourtheme/template/catalog/product/price.phtml - I am using the modern theme as a building block.
Basically, the default looks like this:
<?php echo Mage::helper('core')->currency($_price) ?>
Simply throw in a str_replace (if you can handle the overhead):
<?php echo str_replace (" ", "", Mage::helper('core')->currency($_price)) ?>
Remember to replace the strings for all other prices i.e. _minimalPrice, _finalPrice.
Hope this helps,
Justin.
*Update:
The above solution works for prices but renders the mark-up <span class="nobr">price</span> invalid i.e. <spanclass="nobr">price</span> - which isn’t valid HTML mark-up.
I can seem to find where the span is added to the price, so I guess it happens within core - I think waiting for a fix is the best idea.
Out of interest, does anyone know why HTML theme based mark-up is being added by core and is seemingly incapable of being overridden?
J.
Yeah - core spitting out HTML formatting sucks, but you can get still use the above str_replace call with a small modification, just catch the “$space” instead of any “space” like this:
@Ures: Yes, and not limited to currency sign! There are a lot of things that would be a lot easier if unified. Another magento challenge is the different shipping addresses, VAT numbers, etc. etc.