Woocommerce not/different storing variation information?
-
Since today i found out woocommerce doesnt seem te be storing the variation information in the usual way. In the dashboard order screen, it used to show the variation ID below an order item. Not anymore.
When approaching the items to an order and then displaying for example the variation id, the variation id returns null (0).
So i made a print version, to be certain there are no other missing links and print the result to the header:
function now() {
$order = wc_get_order( 21921 );
$product_name = ”;
$items = $order->get_items();
foreach ( $items as $item ) {
$id = $item->get_variation_id();
print_r($id);
}
}
add_action(‘wp_head’,’now’);When i fill in an old order id (before the updates) it displays the variation id. Since yesterday, it returns zero (0) for above.
It is a problem, as i need the variation info for a custom plugin. Can you help me what i am missing here?
- The topic ‘Woocommerce not/different storing variation information?’ is closed to new replies.