- This topic has 8 replies, 2 voices, and was last updated 1 year, 8 months ago by
melvin wang.
-
AuthorPosts
-
March 21, 2020 at 4:43 pm #1202172
johnaps
Hello!
I am currently trying out generateblocks! Gudos on the release, always happy for your developments in any kind of plugin!
I just want to ask cause i have an ecommerce store (woocommerce)
Can i use it on product pages? Like lets say elementor lets you costumize the body of product pages just as you want…? is there a way to do this? It would be superawesome i think!!March 22, 2020 at 5:22 am #1204456David
StaffCustomer SupportHi there,
not yet there isn’t. Maybe something for the future 😉
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/March 22, 2020 at 7:34 am #1205612johnaps
Would be great! Maybe a workaround would be to make gutenberg take control of woocommerce product pages? Will look into it…
March 22, 2020 at 8:24 am #1206067David
StaffCustomer SupportYou can enable the Gutenberg editor on Single Products like so:
// WP 5.0 Woo 3.4.1 or later // Edit Woo Product with Gutenberg function db_enable_gutenberg_single_product($editable, $post_type) { if($post_type == 'product'){ $editable = true; } return $editable; } add_filter('use_block_editor_for_post_type', 'db_enable_gutenberg_single_product', 10, 2);
But this will only allow you to edit the Short Description.
I would expect Woo has full product editing in its future scope.
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/March 22, 2020 at 2:05 pm #1206549johnaps
Found this and i am trying it out, leaving it here for other fellow happy generatepressors!~ (looks complete at first glance…)
function wplook_activate_gutenberg_products($can_edit, $post_type){ if($post_type == 'product'){ $can_edit = true; } return $can_edit; } add_filter('use_block_editor_for_post_type', 'wplook_activate_gutenberg_products', 10, 2);
March 22, 2020 at 2:47 pm #1206586Leo
StaffCustomer SupportThanks for sharing 🙂
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/December 6, 2020 at 9:57 pm #1569864melvin wang
Hi Johnnaps,
I’ve enabled gutenberg in Product by using the code below,
function wplook_activate_gutenberg_products($can_edit, $post_type){ if($post_type == 'product'){ $can_edit = true; } return $can_edit; } add_filter('use_block_editor_for_post_type', 'wplook_activate_gutenberg_products', 10, 2);
Everything work well except the “Product Category” & “Product Tag” are missing at the at the product back end for editorial.
Do you have the similar problem and any solution have you tried to make the “product category” and “product tag” appear?
Notes: Im able to configure out the Rankmath, Reviews, and other fields. But only unable to configure the “Product Category” & “Product Tag”
Thanks
December 7, 2020 at 12:41 am #1570003johnaps
I think you can edit them from quick edit on “all products”
December 7, 2020 at 12:52 am #1570013melvin wang
Hi johnaps,
Thanks for your response. I appreciate it very much.
TQ and have a nice day
Regards,
Melvin -
AuthorPosts
- You must be logged in to reply to this topic.