This topic has 10 replies, 3 voices, and was last updated 6 years, 8 months ago ago by Olga Barlow
Hello,
I’m trying to modify the single product page for Woocommerce but all modifications in the source files in the XSTORE theme /woocommerce don’t work…
Please help,
Yohann
Hello,
Please make changes in php files via child theme https://www.8theme.com/documentation/docs/child-theme/ https://codex.wordpress.org/Child_Themes
What exactly do you want to change?
Regards
I want to display some custom taxonomies on single product page
Where exactly on the page do you want to display it? Please provide some screenshots.
Regards
I want to display 4 lines (one for each custom fields), under the SKU line, before Social Sharing.
See screenshot 1: https://metamkine2.propulsee.com/wp-content/uploads/2018/04/1.png
But I’ve got a second problem with the description text.
URL : https://metamkine2.propulsee.com/product/test/
See screenshot 2 : https://metamkine2.propulsee.com/wp-content/uploads/2018/04/2.png
thanks Yohann
Here is an example of code that should be added in functions.php file of child theme:
add_action('woocommerce_single_product_summary', 'et_custom_meta_content', 50);
function et_custom_meta_content () {
global $post;
echo $post->ID; // show here your custom field content instead of this
}
Regards
Great this works!
And if a want to link this to the related archive custom type ?
Please describe your question in more details with screenshots.
Also, note the additional customization in the source code is out of our support scope https://themeforest.net/page/item_support_policy
Regards
OK, I understand, BUT :
But I’ve got a second problem with the description text.
URL : https://metamkine2.propulsee.com/product/test/
See screenshot 2 : https://metamkine2.propulsee.com/wp-content/uploads/2018/04/2.png
Hello,
This issue comes from WooCommerce WPML plugin and persists even with the default theme because plugin enabled styles for the admin panel http://prntscr.com/j7eqtd Contact WPML support to solve the issue.
Regards
You must be logged in to reply to this topic.Log in/Sign up