This topic has 6 replies, 2 voices, and was last updated 8 years, 5 months ago ago by Eva Kemp
Hi guys I’m working in a site for a Bookstore and my customer needs a custom field “Author” in the product page, in a same level that SKU and categories, even more, they want the field Author appears before than SKU.
Can you help me?
thanks
Hello,
This is default Woocommerce template and you have to edit their files.
Contact their support or refer to these articles:
http://www.themelocation.com/how-to-display-custom-field-value-on-product-page-in-woocommerce/
https://wordpress.org/plugins/woocommerce-custom-product-data-fields/
http://www.kriesi.at/support/topic/woocommerce-adding-custom-field-on-single-product-page-issue/
http://www.remicorson.com/mastering-woocommerce-products-custom-fields/
Regards,
Eva Kemp.
Thanks Eva
Just a quick question:
in all the sites that you link me, when it says “in your theme functions.php file”, which file it’s referring? is in the theme folder? or in the child theme folder?
Sorry was three questions!
thanks a lot
Hello,
It means in the theme folder, but if you don’t want to lose modifications after theme update you can add the code in child functions.php.
Regards,
Eva Kemp.
Thanks again Eva, a few last question
in the function.php
are only this lines of code:
<?php add_action( 'wp_enqueue_scripts', 'theme_enqueue_styles' );
function theme_enqueue_styles() {
wp_enqueue_style( 'child-style', get_stylesheet_uri(), array( 'bootstrap', 'parent-style' ) );
}
it’s all right?
is in this file where I need work to add the code what says in the plugin documentation?
WooCommerce Custom Product Data Fields
thanks a lot!
Hello,
This is functions.php in the child theme and it’s correct.
Add the code in there.
Regards,
Eva Kemp.
You must be logged in to reply to this topic.Log in/Sign up