Switching currency for new products
I have a multi-currency toggle switch in my magento store. The currency change happens everywhere when I switch except for the new products slider. how can i fix this?
+3
Haya
source
to share
2 answers
To fix this behavior, you need to disable caching for that particular block. This can be done by adding the parameter cache_lifetime = "1" to our shortcode.
{{block type="catalog/product_new" template="catalog/product/new.phtml" cache_lifetime="1"}}
I found it here - http://nwdthemes.com/2014/10/16/magento-new-products-block-change-currency/
+2
Sergey Korzhov
source
to share
Add a cache block to the xml layout page (cms.xml or page.xml) where the new product is blogging.
<block type="catalog/product_new" name="newproducts" products_count="20" template="catalog/product/new.phtml">
<action method="setCacheLifetime"><s>0</s></action> // add this line
+2
Tufail shaikh
source
to share