SOLVED: Quick View not supporting 3rd party product types (Composite Product)

Browser: Chrome 110
OS: macOS / Windows / Linux / etc.

Bricks version 1.10.2

Just implemented the Quick View feature after upgrading to the latest version, it works perfectly for normal product types, but when it comes to ‘composite’ products like the ones created by WPC Composite Products for WooCommerce (by WPClever), while the quick view pop shows the content fine, however, pressing the add to cart button doesn’t actually add the product to cart (even though the button changes from ‘add to cart’ to ‘adding’), instead, it takes the users to the single product page.

I hope there’ll be a fix for this soon.

Many thanks.

Hi @bricksbuilder001 ,

Can you please provide admin access and send to help@bricksbuilder.io (Include this forum thread as reference)
We need to check if the integration can be done in Bricks or not.

Regards,
Jenn

I have sent it over. Thanks.

Hi @bricksbuilder001

As per my email reply, please use this Code on a code element.

It will init the required JS when the AJAX popup loaded.

document.addEventListener( 'bricks/ajax/popup/loaded', (event) => {
    if (typeof wooco_init_selector == 'undefined' || typeof wooco_init_selector !== 'function') {
        return
     }

    const popupId = event.detail.popupId

    // Do your stuff here
    if (popupId == 53466) {
     wooco_init_selector()
    }
})

Regards,
Jenn

Can confirm that it’s working.

Will or should this be included in the next Bricks release?

Many thanks!

Hi @bricksbuilder001 ,

Currently, we don’t have plans to integrate Bricks with WooCommerce’s third-party plugins due to the vast number of WooCommerce plugins available. It would be more efficient if the plugin developers could implement the integration within their own code

Regards,
Jenn

1 Like