All products are visible to everyone (B2C), but only B2B users can purchase.
We set B2B prices via B2BKing Price Lists (by B2B groups).
Some products have a Regular price, some don’t (we don’t sell those in retail).
When logged in as B2B, on product/archive pages if the Regular price is empty, the price shows 0.00. However, after adding to cart, the price is correct from the price list.
It seems dynamic pricing on product/archive pages doesn’t apply when the Regular price is empty, even though the cart uses the correct list price.
Question: How can we ensure B2B users always see the B2BKing price list price on product and archive pages, even when the Regular price is empty—while B2C can continue to use the Regular price when it exists?
We can provide any additional info (settings, etc.). Site: vascoshop.lt.
For B2B users, when there's a difference between the price shown on product/archive pages and the price in cart, this typically points to a caching issue or some kind of conflict.
I noticed from your screenshots that you have the LiteSpeed plugin active.
When using caching with dynamic pricing (where different users see different prices), it's important to either disable caching for logged-in users or ensure each user has their own unique cache. Otherwise, you can run into issues like users seeing incorrect prices.
Please try checking if clearing Litespeed cache or deactivating the Litespeed plugin solves that. If so, it indicates that's the issue - the solution would be going in LiteSpeed settings and deactivating caching for logged in users.
Following up on the pricing display issue. I tested your recommendation regarding LiteSpeed Cache:
Cleared the entire LiteSpeed cache.
Fully disabled the LiteSpeed Cache plugin.
Unfortunately, the situation did not change – for B2B users, on product and archive pages (loop), the price still shows as 0.00 when the Regular price is empty. However, once the same product is added to the cart, the correct B2BKing Price List price is applied.
Our setup in short:
WooCommerce + WoodMart theme.
B2BKing Pro; B2B prices are set via Price Lists by B2B groups.
All products are visible to B2C, but only B2B users can purchase.
Some products do not have a Regular price (since they are not offered for retail).
It seems that on product/archive templates, the price is not replaced with the Price List value when Regular price is empty, even though the logic works correctly in the cart.
My questions:
Does B2BKing have a specific setting that would force Price List prices to be displayed for B2B users on product/archive pages whenever the Regular price is empty?
If a programmatic solution is needed, could you please provide an official code snippet that:
Ensures B2B users always see their Price List price (single product + archive/loop), even if Regular price is empty;
Works with WoodMart (which uses overridden content-product.php templates);
Uses the correct WooCommerce hooks/filters (woocommerce_get_price_html, woocommerce_product_get_price, or others you recommend);
Calls the proper B2BKing function/method to retrieve the correct Price List price based on the logged-in user’s group.
If needed, I can provide additional details (specific product IDs, groups) or staging site access. Our site is vascoshop.lt.
Thank you in advance for your guidance on how to properly force Price List prices to display for B2B users on product and archive pages.
Hi,
Here’s our setup:
All products are visible to everyone (B2C), but only B2B users can purchase.
We set B2B prices via B2BKing Price Lists (by B2B groups).
Some products have a Regular price, some don’t (we don’t sell those in retail).
When logged in as B2B, on product/archive pages if the Regular price is empty, the price shows 0.00. However, after adding to cart, the price is correct from the price list.
It seems dynamic pricing on product/archive pages doesn’t apply when the Regular price is empty, even though the cart uses the correct list price.
Question: How can we ensure B2B users always see the B2BKing price list price on product and archive pages, even when the Regular price is empty—while B2C can continue to use the Regular price when it exists?
We can provide any additional info (settings, etc.). Site: vascoshop.lt.
Thanks,
Vladislav
Attached files: da79f458-2f19-4af1-811e-07e5132d0f4a.jpg
e3a78a20-5820-4bb3-9533-117d8a428b71.jpg
Hi Vladislav,
For B2B users, when there's a difference between the price shown on product/archive pages and the price in cart, this typically points to a caching issue or some kind of conflict.
I noticed from your screenshots that you have the LiteSpeed plugin active.
When using caching with dynamic pricing (where different users see different prices), it's important to either disable caching for logged-in users or ensure each user has their own unique cache. Otherwise, you can run into issues like users seeing incorrect prices.
Here's more information on configuring caching properly with B2BKing: https://woocommerce-b2b-plugin.com/docs/users-see-wrong-content-b2c-users-see-b2b-content-or-prices/
Please try checking if clearing Litespeed cache or deactivating the Litespeed plugin solves that. If so, it indicates that's the issue - the solution would be going in LiteSpeed settings and deactivating caching for logged in users.
Kind regards,
Stefan
Following up on the pricing display issue. I tested your recommendation regarding LiteSpeed Cache:
Cleared the entire LiteSpeed cache.
Fully disabled the LiteSpeed Cache plugin.
Unfortunately, the situation did not change – for B2B users, on product and archive pages (loop), the price still shows as 0.00 when the Regular price is empty. However, once the same product is added to the cart, the correct B2BKing Price List price is applied.
Our setup in short:
WooCommerce + WoodMart theme.
B2BKing Pro; B2B prices are set via Price Lists by B2B groups.
All products are visible to B2C, but only B2B users can purchase.
Some products do not have a Regular price (since they are not offered for retail).
It seems that on product/archive templates, the price is not replaced with the Price List value when Regular price is empty, even though the logic works correctly in the cart.
My questions:
Does B2BKing have a specific setting that would force Price List prices to be displayed for B2B users on product/archive pages whenever the Regular price is empty?
If a programmatic solution is needed, could you please provide an official code snippet that:
Ensures B2B users always see their Price List price (single product + archive/loop), even if Regular price is empty;
Works with WoodMart (which uses overridden content-product.php templates);
Uses the correct WooCommerce hooks/filters (woocommerce_get_price_html, woocommerce_product_get_price, or others you recommend);
Calls the proper B2BKing function/method to retrieve the correct Price List price based on the logged-in user’s group.
If needed, I can provide additional details (specific product IDs, groups) or staging site access. Our site is vascoshop.lt.
Thank you in advance for your guidance on how to properly force Price List prices to display for B2B users on product and archive pages.
Best regards,
Vladislav