wp-rest-blocks
wp-rest-blocks copied to clipboard
Support WooCommerce Blocks
Hi, Any plans to support Woo blocks? I guess you may have to do them on a case by case basis?
@CHEWX Can you provide more information? What is not currently supported about woo blocks? Are woo blocks are registered on the server?
Related: https://github.com/woocommerce/woocommerce-gutenberg-products-block/issues/4672
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.
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