WooCommerce product pages with Pro

Hi! Is it possible to edit WooCommerce pages using the Pro visual editor? I enabled the Products type in Pro’s settings, but the content is displayed inside the WooCommerce markup. Ideally I would like to rewrite the whole page, recreating the page and basics like the add to card button.

Hey @kolyasapphire,

Yes, you can use Cornerstone to edit the product pages but the content will be displayed on the right side of the product image as that is how the product template is structured.

if you wanna be able to edit the products content layout, it is possible with custom development, but this would be outside the scope of support we can offer. You may wish to consult a developer to assist you with this. X is quite extensible with child themes, so there are plenty of possibilities.

Thanks for understanding. Take care!

In case anyone else finds this, here is a working solution.

Replace id with product’s id and template-blank-4.php with your template file. And use child’s functions.php

function rewrite_product_template() {
 
if (  is_product() && get_the_id() == 12345 ) {
    add_filter( 'template_include', function() {
        return get_template_directory() . '/template-blank-4.php';
    });
}
}
 
add_action( 'template_redirect', 'rewrite_product_template' );

@kolyasapphire thanks a lot for taking out the time to share the solution with community members. :slight_smile:

1 Like

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.