Support » Plugin: Registrations for WooCommerce » Date Not Showing in Woocommerce Order

  • Resolved chenryahts


    On the order confirmation screen and when I look up the order from /my-account, it shows the date as {"type":"single","date":"2017-01-25"} instead of just the date.

    Also, while I put a start and end time in for the variation, they don’t appear to actually show anywhere. Do I need to add some code to get it to also display the time for the class, or am I missing something?

    Thank you for any help you can provide!

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Allyson Souza


    Hi @chenryahts,

    I need to add a filter to de date displayed in some places, I’m planning an update as soon as possible. And at the moment do you need to code your own product template getting the time to be displayed to your users.

    Thanks for your feedback!

    Plugin Author Allyson Souza


    Sorry @chenryahts, I need to see if it’s possible to filter attribute values in other places than Additional Information tab, at the moment WooCommerce don’t have filter to other places like order details (admin and front-end), so I need to think in other solution or make a pull request (and be accepeted) for new filters in WooCommerce.

    Okay, I’m working on this now, but I can’t find where the time is saved in the database. I don’t see it listed with the product variation postmeta.

    Any help you could provide would be great, and thank you again for your responses so far.

    Plugin Author Allyson Souza


    You can retrieve the start time and end time using:

    get_post_meta( $variation_id , '_event_start_time', true );
    get_post_meta( $variation_id , '_event_end_time', true );

    Or you can use registration_schedule() function (defined in class-wc-product-registrations.php), that receive a variation ID as parameter:

    $product->registration_schedule( $available_variations[ $count ]['variation_id'] );

    Ah ha, nevermind, I found it.

    Thanks again!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Date Not Showing in Woocommerce Order’ is closed to new replies.