• Resolved kees78

    (@kees78)


    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?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi @kees78,

    Thanks for reporting this! I want to be sure I’m understanding you correctly. Using the current version of WooCommerce, I am still seeing the variation ID displayed on orders in the expected location:


    Link to image: https://d.pr/i/4hfvat

    Is this not the behavior you are seeing on your site? Or am I misunderstanding where you are looking and expecting to see the variation ID?

    Could you please provide us with a screenshot so that we can see what you are describing?

    If you don’t already have a screenshot service installed, here are a few options:

    * https://skitch.com/
    * https://getcloudapp.com/
    * https://awesomescreenshot.com/

    Could you also please send us a copy of your site’s System Status? You can find it via WooCommerce > Status. Select “Get system report” and then “Copy for support”. Once you’ve done that, you can paste it in your response.

    Thread Starter kees78

    (@kees78)

    Hi,

    I actually found the solution. It has to do with an outdated jquery library that the theme uses. I installed a plugin called “Enable jQuery Migrate Helper” and the problem disappeared.

    Hope this might help others,

    Kind regards,

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Woocommerce not/different storing variation information?’ is closed to new replies.