1

I have a strange behavior on a Magento 2.2.10 (but may be it's the same on other version)

I have created 2 more customers groups (G1 and G2), each one with a set of products prices different from normal prices.

The customer fill is cart, then subscribe, and there with a custom field I can change their group on certain conditions.

If condition is ok, the customer changes group (for example G1) and prices (in a customer_save_before event).

The cart is updated, the new prices are here, it's working.

BUT !

But if they come back to the product page, the price is still the normal price.

If I logout and then login back (on an incognito window), and go to the product page, now I have the good prices. But if again I change the customer group (to G2 for example), I still have G1 prices on the product I've viewed.

I guess there's a customer cache issue here, but anyone have an idea how to work around this ? I want my caches on.

Thanks.

  • I have the same issue, still not resolved. Did you find a solution? When the incorrect Product Prices are shown, the user must Hard-Refresh in order to see the correct prices .. which is aweful. Turning off Full Page Caching seems like the only solution ... which is silly. – Jagoman May 27 at 10:37
  • @Jagoman Sorry, but no, I haven't. Perhaps finding the request and filter it if there's a varnish cache in front to not be cached ? Or, as you said, turnig of FPC (which is a very bad performance idea unfortunatly) – Jean-Marc SALIS May 29 at 15:04
  • I switched the Full Page Cache back from "Varnish Cache" to "Built-in Cache". It resolved the issue. I would prefer Varnish, but hey, FPC is still working. – Jagoman Jun 4 at 22:19

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.