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?