Open rafaelpatro opened 6 years ago
My template file above sometimes shows a null $product
. This is weird because I'm setting data in parent block.
My layout _catalog_categorydefault inside _productlist block:
<block type="core/template" name="catalog.addtocart.logged" template="catalog/product/list/addtocart.phtml">
<action method="unsetData"><key>cache_lifetime</key></action>
</block>
Hi guys
I'm trying to set a dynamic Add to Cart button without success. I put my custom block in dynamic blocks and I declared the block inside _productlist layout. When in login sometimes my code appears and sometimes not. Dynamic config are not working for me.
In catalog/product/list.phtml I put this:
In my template catalog.addtocart.logged I put this:
What I'm doing wrong?