magento-turpentine icon indicating copy to clipboard operation
magento-turpentine copied to clipboard

Wishlist button caching problem

Open glor4eg opened this issue 8 years ago • 2 comments

I have a problem with a hole punch for wishlist button. That's how button is being added to catalog/product/search pages: <block type="core/template" name="addto_wishlist" template="catalog/product/wishlist.phtml"/>

This is how i'm setting up a hole punch <default> <reference name="addto_wishlist"> <action method="setEsiOptions"> <params> <access>private</access> <flush_events> <wishlist_item_save_after/> <wishlist_item_delete_after/> <controller_action_layout_render_before_catalogsearch_result_index /> </flush_events> </params> </action> </reference> </default>

And this is what happens when you use add/remove to wishlist button. At first page visiting button becomes cached and after page reloading it stays in the same condition - like we didn't add the product to wishlist (but header icon changes - so header hole is being punched well, but it was set up in the same way). Please see this screencast http://take.ms/gpdOE

glor4eg avatar Sep 28 '16 14:09 glor4eg

I think you should update the <default> tag to the correct controller_action of the page where you have the wishlist button. Please let me know if it helps

hmphu avatar Oct 08 '16 05:10 hmphu

@hmphu unfortunately it didn't help

glor4eg avatar Oct 08 '16 15:10 glor4eg