• Resolved schorliee

    (@schorliee)


    Hey there,

    I am not really familiar with PHP and thus not quite sure how to recall or call variables from orders. Basically, I just want to “call” or “retrieve” the name of the location from the local pickup from an order via PHP.

    Is it something like this: “$order->get_location_of_pickup”?

    (My main idea is to add an automated private notice to the order about the location when the customer chose local-pickup.)

    It would be amazing, if you can help me out or show me where I can read about the information of how to retrieve the location of the wc-local-pickup!

    Best,
    schorliee

Viewing 1 replies (of 1 total)
  • Thread Starter schorliee

    (@schorliee)

    Hey guys,

    I already found out how to do it (my bad – should have just scrolled in the forum!)

    For everyone who wants to know:

    $store_name = get_post_meta($order_id, ‘_shipping_pickup_stores’

    Best,
    schorliee!

Viewing 1 replies (of 1 total)
  • The topic ‘How to retrieve wc-localpickup from order – PHP’ is closed to new replies.