Advertisement
dgwatkins

compsupp-2793.diff

Jul 26th, 2018
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 0.71 KB | None | 0 0
  1. diff --git a/includes/class.yith-orders.php b/includes/class.yith-orders.php
  2. index 80e349c..ea8ae63 100644
  3. --- a/includes/class.yith-orders.php
  4. +++ b/includes/class.yith-orders.php
  5. @@ -282,6 +282,10 @@ if ( ! class_exists( 'YITH_Orders' ) ) {
  6.                         );
  7.  
  8.                         $suborder_id       = wp_insert_post( $order_data );
  9. +
  10. +                       // Propagate order language to sub-orders.
  11. +                       update_post_meta( $suborder_id, 'wpml_language', get_post_meta( $parent_order_id, 'wpml_language', true ) );
  12. +
  13.                         $suborder          = wc_get_order( $suborder_id );
  14.                         $parent_line_items = $parent_order->get_items( 'line_item' );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement