Hi,
I have a plugin that is requesting product prices from an API.
When the user logs in, goes to the PDP, we see the API price(s). We are putting the product into the cart, the sum at the cart is correct, offcanvas as well. We go to cart or checkout, the prices are correct API prices, we can buy the items.
However when the user is logging out and then logging in again, the prices are the correct API prices everywhere, except for the checkout. There we see standard shop prices again.
When I change the quantity of any one product (or delete one), suddenly all products are recalculated again and the expected API prices are applied. What am I missing? Some link seems to be broken in this chain when we are logging out. In my opinion that doesn’t seem like consistent behaviour - I’m not even sure if it is not a tiny little bug.
Do you have any idea where I should be looking in order to keep the API prices intact, even when we log out?
Thanks in advance.