what is the block name for price block?

by Elavarasan   Last Updated April 26, 2015 21:04 PM

I want disable cache for price block. I was trying for last 2 days but I can't achieve it yet. I almost read all blogs and articles regarding this. And I realize that there is no block for price thing at all. I just looked up in my layout files and there is no block for this except only one thing,

<block type="catalog/product_price_template" name="catalog_product_price_template" /> 

But when I remove this nothing was happening. Is there any specific block for it ? Or I missed something ?

And I tried template path hints to view the block name. It shows the class name of that block like Mage_Catalog_Product_Price

Please help me guys.

Answers 1

Instead of this

<block type="catalog/product_price_template" name="catalog_product_price_template" />

use this ...........

<block type="catalog/product_price_template" name="catalog_product_price_template" >
         <action method="setCacheLifetime"><s>null</s></action>

I would recommend reviewing your theme/template in more detail. To help facilitate this https://github.com/AOEpeople/Aoe_TemplateHints is great at identifying blocks that are being cached or not.



Cache problem - prevent my module block to be cached

Deepak Rai
Deepak Rai
December 30, 2014 11:02 AM

Related Questions

removing a template from the cache

Updated July 14, 2015 17:04 PM

Cache Hole Punch Block

Updated June 22, 2015 23:04 PM

FPC (lesti) won't holepunch certain area

Updated June 14, 2016 08:03 AM

How to clear cache on page loading magento 2?

Updated December 20, 2017 07:09 AM

Hole punch product price block

Updated February 29, 2016 01:04 AM