Archived topic
Sections in WooCommerce Product Page ?
12 replies · Started by Dhruv on July 27, 2015
Hey Tom,
Can I use Sections Add-on on woocoomerce single product post ?
Dhruv
Currently there's no easy solution for this - but I'm working on it.
I had the same problem on this site using Easy Digital Downloads - what I've done for now is create regular pages for my products and then set up 301 redirects from the product pages to my pages.
This is high on my to-do list though.
I am waiting for this feature in sections addon :)
This is possible in the latest version of Sections/GP Premium!
Something like this should do the trick:
add_filter( 'generate_sections_post_types','generate_add_section_post_types' );
function generate_add_section_post_types()
{
return array( 'page','post','product' );
}
Adding PHP: https://generatepress.com/knowledgebase/adding-php-functions/
Any update for this yet? I tried solution above, but doesnt work! Thanks
(frontend, anyway - I can see them backend!)
Ah, interesting. It seems the WooCommerce template overrides the Sections template.
I'll have to play with this some more to see if it's possible to tell WooCommerce to take a back seat to Sections.
Thanks, appreciate it - I want the WC categories to display in the same format and styling as all the other 'pages' with the header section - otherwise I'm going to get duplicate content issues if I create them all as separate pages showing the same category content :(
Thanks!!
One option is to create them as separate pages with the WC shortcodes in Sections, then use 301 redirects from the category pages to your static pages. That will prevent the duplicate content issues.
Any news on this?
I would also like to use sections in WooCommerce.
Will it be included soon?
Uwe
No new news on this unfortunately. With the upcoming release of Gutenberg, we'll likely be looking to move from Sections to Gutenberg blocks.
Any news, Tom? :-S
We'll be releasing our block plugin (Sections replacement) shortly :)
