WIP: The Woocommerce cart contents loop cannot hide the specified product

I’ve created a custom cart page template with Cart contents loop following Bricks’ official tutorial. However, I’ve encountered an issue: it’s not compatible with third-party plugins like WPC Product Bundles and WPC Composite Products when it comes to hiding specific products. However, when using the default cart items element, it works as expected.

For example, I’ve configured WPC Composite Products to hide component products and only display the parent product in the cart, but all component products are still showing up in my custom cart item.

When I reached out to the WPC plugin author, they mentioned that —— “ We use the standard WooCommerce filter hook ‘woocommerce_cart_item_visible’ to determine whether to hide or show sub-products. They should also use this hook to make their plugin/theme compatible with other plugins. ”

So, is it possible to add the standard WooCommerce filter hook ‘woocommerce_cart_item_visible’ to the cart content loop?

Hi @Ying ,

Thank you so much for reporting the issue.

Yes, the Cart content query loop didn’t fire this hook currently.

I have recorded this in the bug tracker.

Regards,
Jenn

Hi Jenn, any updates on this?

Hello, any updates? this is a very annoying bug.

Hi @gabrieluntura , @AndreiGirban @Ying

We have a fix ready for testing.

You could send your admin credentials to help@bricksbuilder.io so I can apply the fix for you. (Kindly include this forum thread as a reference)

Regards,
Jenn

1 Like