This is an old revision of the document!


How to exclude price block from the logged in users?

The Setup is: 1. Hide prices for all “not logged in” customers 2. For logged in users: Fetch product prices via API from external ERP system for each user.

How to exclude the price block “Mage_Catalog_Block_Product_View_Type_Simple” And “Mage_Catalog_Block_Product_Price” from template: “frontend/base/default/template/rodin/product/price.phtml” so that the logged in users see their own prices directly from API call and not cache?

How do you price for logged in users? are they different prices based on customer group? Or are they different for each user? Currently, litemage can only do cache based on customer group, not individual users.

For logged in users, you can make those price block as private ESI block and not cacheable. but this may need custom change, cannot directly do by configuration. Because for non-logged-in users you do not want to have this logic.

This will require a custom project to achieve what you want if you do have different pricing at each user level.

  • Admin
  • Last modified: 2017/12/11 20:28
  • by Jackson Zhang