WordPress.org

Forums

WooCommerce - excelling eCommerce
How to add product category on Order (4 posts)

  1. adamsoleymani
    Member
    Posted 2 years ago #

    Hi,
    I want to know if there is a way to add product category on Order?
    So when I have to look at item on the order form, I know what category they can from.

    Thanks

    http://wordpress.org/extend/plugins/woocommerce/

  2. bheadrick
    Member
    Posted 2 years ago #

    If you were asking about the customer-facing order display, yes that's easy. Now modifying the admin panel - that's a bit more tricky.

    There's no hooks or templates for this, so you basically have to remove the meta box and replace it with a customized one.

    remove_meta_box( 'woocommerce-order-items', 'shop_order','normal');
    then re_add it with your own function:

    add_meta_box( 'woocommerce-order-items', __('Order Items <small>– Note: if you edit quantities or remove items from the order you will need to manually change the item\'s stock levels.</small>', 'woocommerce'), 'your-function-here', 'shop_order', 'normal', 'high');

    Copy the contents of the woocommerce_order_data_meta_box function in writepanel-order_data.php into your own function (put it inside your theme's functsion.php ) and then you can add a category column.

  3. adamsoleymani
    Member
    Posted 2 years ago #

    I am asking about the customer-facing and backend user order display.

  4. Jairbarcenas
    Member
    Posted 1 year ago #

    I am trying to put my products on category order from chairs to table tops. But, it seems all my products are scattered around, and I don't want that. I want them to be neat and in category order on my shop, and front page.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WooCommerce - excelling eCommerce
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.