3

We realized that the group price are cached and after log out, regular customer can see the discount, till we refresh the cache. How to solve this?

6
  • Can you expand on what you are using for caching. This sounds like it may be a full page caching matter - varnish perhaps? In which case things like price need to be hole punched to get the customer specific data. – John Cuthbert Dec 14 '15 at 9:57
  • Lesti_Fpc is what we use – Zinat Dec 14 '15 at 10:02
  • I think you have to clear caches inside System->Cache Management – Akhil Gupta Dec 14 '15 at 10:02
  • I have done that, it fix the issue, but again after login as special customer and log out, the special prices are visible to all – Zinat Dec 14 '15 at 10:04
  • Please post the solution you found as an answer – 7ochem Dec 14 '15 at 12:35
2

In Lesti_FPC's system.xml file change the "0" to "1" in below section to activate it.

<customer_groups>
      <label>Customer Group Caching</label>
      <frontend_type>select</frontend_type>          
      <source_model>adminhtml/system_config_source_yesno</source_model>
      <sort_order>70</sort_order>
      <show_in_default>1</show_in_default>
      <show_in_website>0</show_in_website>
     <show_in_store>0</show_in_store>
</customer_groups>

Then go to System => Configuration => Advanced => System => Lesti FPC, set the Customer Group Caching to YES.

1
  • works like a charm – Zinat Dec 14 '15 at 16:37
1

It seems flat catalog is enabled in your website:

Inside System->Index Management->Product Prices ->Reindex Data

also set mode as Update on save

1
  • That's also not permanent solution. I tried it, it fixes till the moment special customer is not logged in,after log out still special prices are visible – Zinat Dec 14 '15 at 10:15

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.