Support » Plugin: YITH Pre-Order for WooCommerce » Assign order to “Pre-Order”

  • I’ve set a product to “pre-order” after some people have already ordered, is there a way to move their orders to the “pre-order” tab?

    Thanks!

Viewing 1 replies (of 1 total)
  • Plugin Author YITHEMES

    (@yithemes)

    Hello,
    I’m sorry but this can be done only by code.
    For each order that should have the preorder you should add this meta

    update_post_meta( $order_id, '_order_has_preorder', 'yes' );

    For example if you want move the orders with id 34,35,40 inside the file functions.php of your theme you should add

    update_post_meta( 34, '_order_has_preorder', 'yes' );
    update_post_meta( 35, '_order_has_preorder', 'yes' );
    update_post_meta( 40, '_order_has_preorder', 'yes' );

    update a page of your site and remove the snippets.

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.