0

On category pages, we have a custom code that the prices are only seen to login customers but the customer session is not working on category pages. After customer login for some categories pages still in the header not showing customer logged In (signout link not coming), and the prices still not visible.

For some category pages, it is working and the signout option is visible in the header. Also after logout still on some category pages, the customer is logged in and signout option is visible in the header and prices are visible but the customer is already logout. When I disabled FPC from the backend it is working fine but disabling FPC make the page loading speed very slow.

8
  • Check out this approach: magento.stackexchange.com/a/322480/59652 It works for me. – zlep Jun 3 at 19:19
  • You can use magento.stackexchange.com/a/206197/4564. but remove object manager . use class from __construtct – Amit Bera Jun 4 at 2:47
  • You should use HTTP_CONTEXT to check whether customer is logged in or not, as customer session has issues with FPC sometimes. – Rahul Barot Jun 4 at 4:33
  • Custom code to hide/show price is working fine, the main problem is the customer not showing logged in after login on some page. i.e in the header still sign In option is visible after login. The main problem is FPC , how to solve this issue – Ranjeet Singh Jun 4 at 4:59
  • @RanjeetSingh might you are not using the default magento login link and template. It may be shown from custom template. Can you please confirm this. – Rahul Barot Jun 4 at 5:01

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.