I’m using WooCommerce with B2BKing (Pro). Prices are hidden from guest users using B2BKing’s "Hide Prices for Guests" setting. They are shown when a B2B user (trade) logs in.
The issue:
If a user views a product or category page while logged out (so prices are hidden), then logs in, the prices still don’t appear — unless they manually refresh the page.
This happens even when WP Rocket is completely disabled.
We’ve confirmed it’s not a caching issue. It seems WooCommerce or B2BKing isn’t re-evaluating visibility or session state properly on the first load after login.
Expected behaviour:
Once logged in, the user should see prices immediately on the next page they visit. (whether clicking a search history from fibo search, or visiting a fresh product or category page from the menus).
Can you help confirm what might be causing this, or whether there's a way to force B2BKing to re-evaluate price visibility after login?
Based on what you described, that sounds a lot like a caching issue, even though I understand you already looked at that.
B2BKing's price check is very basic (essentially just checking if the user is logged in), so I don't see how that could be coming from B2BKing, something else must be involved.
While you've checked WP Rocket, there could be other caching mechanisms at play:
1. Check your hosting settings for any server-side caching 2. Look for other plugins that might have caching effects like: - Jetpack - WP Optimize - Any other performance/optimization plugins
3. It could also be a conflict with some specific price widget or theme code that may have some unique mechanisms. I would recommend to try deactivating all other site plugins, and to switch the theme to the free official Storefront theme to see if the issue persists.
If you're unable to identify and resolve the issue, I'd be happy to take a closer look. Could you please provide admin access to your site (or preferably a staging site) so we can investigate further?
Hi,
I’m using WooCommerce with B2BKing (Pro). Prices are hidden from guest users using B2BKing’s "Hide Prices for Guests" setting. They are shown when a B2B user (trade) logs in.
The issue:
If a user views a product or category page while logged out (so prices are hidden), then logs in, the prices still don’t appear — unless they manually refresh the page.
This happens even when WP Rocket is completely disabled.
We’ve confirmed it’s not a caching issue. It seems WooCommerce or B2BKing isn’t re-evaluating visibility or session state properly on the first load after login.
Expected behaviour:
Once logged in, the user should see prices immediately on the next page they visit. (whether clicking a search history from fibo search, or visiting a fresh product or category page from the menus).
Can you help confirm what might be causing this, or whether there's a way to force B2BKing to re-evaluate price visibility after login?
Thanks!
Hi Aaron,
Based on what you described, that sounds a lot like a caching issue, even though I understand you already looked at that.
B2BKing's price check is very basic (essentially just checking if the user is logged in), so I don't see how that could be coming from B2BKing, something else must be involved.
While you've checked WP Rocket, there could be other caching mechanisms at play:
1. Check your hosting settings for any server-side caching
2. Look for other plugins that might have caching effects like:
- Jetpack
- WP Optimize
- Any other performance/optimization plugins
3. It could also be a conflict with some specific price widget or theme code that may have some unique mechanisms. I would recommend to try deactivating all other site plugins, and to switch the theme to the free official Storefront theme to see if the issue persists.
If you're unable to identify and resolve the issue, I'd be happy to take a closer look. Could you please provide admin access to your site (or preferably a staging site) so we can investigate further?
Kind regards,
Stefan