Resolvedget delivery time in a template file

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #35019
    webdesignbart.be
    Participant

    Hello,

    How can I get the chosen delivery time in a php template file?

    For example: $pickup_time = $order->get_pickup_time();

    Kind regards, Bart

    #35021
    webdesignbart.be
    Participant

    I’ve got it. Perhaps there are others looking for this, so:

    To retrieve the pickup time:
    get_post_meta($order->id, ‘thwdtp_pickup_time’, true);

    To retrieve the pickup date:
    get_post_meta($order->id, ‘thwdtp_pickup_datepicker’, true);

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in and have valid license to reply to this topic.

License required for the following item
Login and Registration Log in · Register