• Resolved wpraj

    (@wpraj)


    I would like to add a product meta box in the admin pages where the admin can select the products and assign to that page.

    I have seen product-category meta box but as we don’t have any categories so I would like to display only products in that meta box.

    Please let me know if there is any meta box added to woocommerce already or I have to build from scratch. I did some research and found product data meta box but I want only products listed in a box with checkboxes.

    Any suggestion is highly appreciated. Thanks in advance.

    https://www.ads-software.com/plugins/woocommerce/

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Contributor Mike Jolley

    (@mikejolley)

    > I would like to add a product meta box in the admin pages where the admin can select the products and assign to that page.

    I really don’t follow what you’re asking here. Are you talking about a post to post relationship? Because thats not a core feature we offer.

    Thread Starter wpraj

    (@wpraj)

    Sorry my bad. No it’s not post to post relationship. It might be page to post relationship.

    So I have created a page and in admin I would like to have a meta box in right hand side bar with all the products listed. Then I can select which product I would like to display on that particular page.

    Plugin Contributor Mike Jolley

    (@mikejolley)

    Ok. So we don’t do that, but you can use shortcodes https://docs.woothemes.com/document/woocommerce-shortcodes/

    Thread Starter wpraj

    (@wpraj)

    I can use shortcode like

    [products ids="1, 2, 3, 4, 5"]

    I would like to know if I will be getting back the following information.

    1.Product image(a custom field)
    2.Product title
    3.Product url.

    Many thanks.

    Plugin Contributor Mike Jolley

    (@mikejolley)

    It will be output in a grid like on your shop page.

    Thread Starter wpraj

    (@wpraj)

    Great. Thanks again for your help.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Display product meta box in woocommerce admin pages’ is closed to new replies.