wp-rest-blocks icon indicating copy to clipboard operation
wp-rest-blocks copied to clipboard

Support WooCommerce Blocks

Open CHEWX opened this issue 4 years ago • 4 comments

Hi, Any plans to support Woo blocks? I guess you may have to do them on a case by case basis?

CHEWX avatar Aug 25 '21 11:08 CHEWX

@CHEWX Can you provide more information? What is not currently supported about woo blocks? Are woo blocks are registered on the server?

spacedmonkey avatar Sep 02 '21 10:09 spacedmonkey

Related: https://github.com/woocommerce/woocommerce-gutenberg-products-block/issues/4672

spacedmonkey avatar Sep 02 '21 11:09 spacedmonkey

Example below:

blockName : "woocommerce/featured-product"
attrs
editMode : false
mediaId : 106
mediaSrc : "https://example.com/wp-content/uploads/2021/08/image.jpg"
overlayColor : "primary"
productId : 28
className : ""

This is the extent of the woocommerce/featured-product obviously you cannot do anything with that without have the attrs of productId, which would mean another API call. Be good if the price, description and title were pulled through to attrs as per the rendered HTML.

CHEWX avatar Sep 02 '21 11:09 CHEWX

Thanks for the feedback. The issue is not related to our plugin, it is related to the fact none of the woocommerce blocks are server aware. I have reported the issue upstream, see woocommerce/woocommerce-gutenberg-products-block#4672

spacedmonkey avatar Sep 02 '21 12:09 spacedmonkey