I am trying to add a content template for single products using Toolset Block. The Template doesn't show up on WooCommerce Product although the setting "WooCommerce Views plugin default single product template" is enabled, and the content Template is applied to all products, as well the product itself is showing that the Template is used on it.
The Content Template is showing up on Posts if i apply it. Only on WooCommerce it's not working. I am afraid i missed something? is there any function need to be implemented so that it works on WooCommerce products?
I don't have a WRAPPER like following, is this the issue? https://toolset.com/documentation/user-guides/getting-started-woocommerce-views/#woocommerce-styling
If yes how should i do this?
BTW: the Core Template of WooCommerce shows up instead.
Hello,
The problem you mentioned above is abnormal, please try these:
1) In case it is a compatibility problem, please deactivate all other plugins, and switch to wordpress default theme 2019, and test again
2) If the problem is fixed, you can activate other plugin/theme one by one, try to locate the problem plugin/theme
My issue is resolved now. Thank you!
I have declared WooCommerce support wrongly. the right way is here : hidden link
function mytheme_add_woocommerce_support() {
add_theme_support( 'woocommerce' );
}
add_action( 'after_setup_theme', 'mytheme_add_woocommerce_support' );