-1

How can I update the delivery date in Woocommerce Subscription?

In the documentation I did not find anything related. I thought I'd get the Metabox and upgrade via pure SQL, but there must be a better way.

LoicTheAztec
  • 229,944
  • 23
  • 356
  • 399
Guilherme Costa
  • 310
  • 2
  • 9

1 Answers1

0

Solved!

 $g = wc_get_order_item_meta($item_id,'_tmcartepo_data');
            $g[1]['value'] = 'Segunda';//Dia de Entrega
            $g[2]['value'] = '28/08/2018';//Data de Entrega
            wc_update_order_item_meta($item_id,'_tmcartepo_data',$g);
Guilherme Costa
  • 310
  • 2
  • 9