Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support WooCommerce Blocks #24

Open
CHEWX opened this issue Aug 25, 2021 · 4 comments
Open

Support WooCommerce Blocks #24

CHEWX opened this issue Aug 25, 2021 · 4 comments

Comments

@CHEWX
Copy link

CHEWX commented Aug 25, 2021

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

@spacedmonkey
Copy link
Owner

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

@spacedmonkey
Copy link
Owner

Related: woocommerce/woocommerce-blocks#4672

@CHEWX
Copy link
Author

CHEWX commented Sep 2, 2021

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.

@spacedmonkey
Copy link
Owner

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-blocks#4672

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants