Custom fields in product page - by Pablo

This topic has 6 replies, 2 voices, and was last updated 7 years, 10 months ago ago by Eva Kemp

  • Avatar: Pablo
    Pablo
    Participant
    June 9, 2016 at 14:21

    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

    5 Answers
    Avatar: Eva
    Eva Kemp
    Support staff
    June 9, 2016 at 14:53
    Avatar: Pablo
    Pablo
    Participant
    June 9, 2016 at 16:38

    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

    Avatar: Eva
    Eva Kemp
    Support staff
    June 9, 2016 at 17:03

    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.

    Avatar: Pablo
    Pablo
    Participant
    June 10, 2016 at 16:57

    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!

    Avatar: Eva
    Eva Kemp
    Support staff
    June 10, 2016 at 17:35

    Hello,

    This is functions.php in the child theme and it’s correct.
    Add the code in there.

    Regards,
    Eva Kemp.

  • Viewing 6 results - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.Log in/Sign up

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.