• Hello,

    How can I (as an admin) assign an author for each single product? Just like I assign author/contributor for single posts in wordpress? The functionality is not there by default, so how can I add the functionality?

    And if possible, how can I display the author name in the meta info in single product page?

    Thank you!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Luminus Alabi

    (@luminus)

    Automattic Happiness Engineer

    @yipiash,

    Products do not have an author as it is irrelevant for eCommerce purposes.

    If you’re running a multi-vendor marketplace and therefore want to show which vendor is selling a particular product, you’ll want to install a plugin that actually makes your WooCommerce powered store into a marketplace.

    There are a couple available including the WooCommerce Product Vendors extension.

    Thread Starter Yanur Islam Piash

    (@yipiash)

    Hello,

    I understand what you are saying. The thing is, I am selling LearnDash courses with Woocommerce. And I am using another extension to facilitate the multiple instructors functionality. So I need to create a Product from the admin panel and assign it to an instructor.

    I tried using this snippet:

    add_action('init', 'wpse_74054_add_author_woocommerce', 999 ); 
    function wpse_74054_add_author_woocommerce() { add_post_type_support( 'product', 'author' ); }

    It does now enable me to assign an author for a product. But when I go to select the author, it only shows the admins of my site from the drop-down menu. The instructors aren’t appearing so that I can select them. Only the admins are available to choose.

    I know it’s a bit complex customization. But it would really empower my ability if I could solve this.

    Thank you!

    Luminus Alabi

    (@luminus)

    Automattic Happiness Engineer

    @yipiash,

    This looks like something you’d need to reach out to a developer for or see if Learndash has something to help with this.

    If you don’t have a go-to developer, you can contact one of the services we recommend on the WooCommerce Customizations Page

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Set Author for Single Product’ is closed to new replies.