Magento Tips & Tricks

New products block does not change currency

Magento has default new products block. It can be added to cms home page via shortcode

{{block type="catalog/product_new" template="catalog/product/new.phtml"}}

However, if you have multiple currencies and try to switch to different currency new products still show price in old one. This happens due to block cache.

To fix this behaviour you need to disable caching for this particular block. It can be done by adding cache_lifetime=”1″ parameter to our shortcode.

{{block type="catalog/product_new" template="catalog/product/new.phtml" cache_lifetime="1"}}

Why you should set it to 1? It is minimum allowed value (1 second).

Leave a Reply

Your email address will not be published. Required fields are marked *