Public Ticket #5000179

price calculation conflict when using B2BKing alongside the WPC Composite Products (WP-Clever) plugin

Closed
Comments
3 Tickets
Evera Decor started the conversation 4 weeks ago on October 19, 2026 at 9:27am

I am experiencing a price calculation conflict when using B2BKing alongside the WPC Composite Products (WP-Clever) plugin.

■ Issue Summary:
I have a composite product called "Pack de muestras" (Sample Pack) with a fixed base price of €13.99. The product is configured using the "Only base price" setting in WPC Composite Products so that the individual child components selected inside the pack should not add any extra cost.

■ What happens in the Cart:
When a logged-in B2B user (assigned to a group like PROFESIONAL ORO / PLATA) adds this sample pack to the cart:
1. The main composite product correctly shows €13.99.
2. B2BKing intercepts the individual component items selected inside the pack and overrides their price, adding their regular/B2B individual prices to the total.
3. As a result, the cart subtotal skyrockets to €127.87 (€13.99 base price + €113.88 for component items) instead of remaining at €13.99.

Even though WPC Composite Products is configured to ignore component prices, B2BKing's price filters seem to force individual B2B prices onto the child items in the cart.

Could you please advise on how to prevent B2BKing from overriding component item prices when they are part of a fixed-price composite product?

Thank you for your help!

2,765
KingsPlugins replied 4 weeks ago on October 20, 2026 at 10:04am

Hi there,

Thanks for reaching out,

I looked into this and into how B2BKing interacts with WPC Composite Products. I have a code snippet that I believe can solve it - it tells B2BKing to ignore the WPC component cart items.

You can add this to your theme's functions.php file or through any code snippets plugin:

Code snippet (backup)

Once added, please empty your cart and add the sample pack again.

 

The exact behavior may depend however on your specific setup, settings, other plugins, etc. If the snippet doesn't solve it, It would be great if we could check this directly on the site. For that, we would need a backend login to the site or a staging clone site.

Let me know if that works for you,

Kind Regards,
Stefan

Sign In