Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Contributor Ewout

    (@pomegranate)

    Hi there,
    I don’t have access to that plugin, but you could contact WooThemes and ask where the pickup location is stored (under which meta_key). Then you can display it with the following code:

    <?php
    $shipping_method = get_post_meta($wpo_wcpdf->export->order->id,'_shipping_method',true);
    if ($shipping_method == 'local_pickup') {
    	echo get_post_meta($wpo_wcpdf->export->order->id,'_local_pickup_address',true);
    }
    ?>

    Where you replace ‘_local_pickup_address’ with the meta key in which Local Pickup Plus stores the address, and ‘local_pickup’ with the shipping method slug (which they also should be able to give you).

    Let me know if you have any questions!

    Thread Starter me2you

    (@me2you)

    Hi, Ewout

    I can write you a letter on [email protected] to the post about solving this problem?

    Plugin Contributor Ewout

    (@pomegranate)

    sure, go ahead!

    Plugin Contributor Ewout

    (@pomegranate)

    Anyone looking to do the same thing: you can display the pickup address with the function that is also used on the “thank you” page:

    <?php
    global $wc_local_pickup_plus;
    $local_pickup_plus = $wc_local_pickup_plus->order_pickup_location( $wpo_wcpdf->export->order->id );
    ?>
    Thread Starter me2you

    (@me2you)

    Enwout, you are best! Thanks!

    I’m hoping to do the same thing, have the pickup location + notes appear on emails that go out to clients. I’ve tried the code above, but it doesn’t seem to work. Are there any updates to this?
    Thanks!

    Plugin Contributor Ewout

    (@pomegranate)

    Hello Microsqueek,
    The above code is specific for the Local Pickup Plus plugin from WooThemes, so you do need the exact same plugin for this to work.
    I do not own a recent copy of this plugin, so things might have changed. I suggest to contact the plugin authors about this, you may also give them a link to this thread so they have some context to the question.

    Hope that helps!

    Ewout

    Hi Ewout,

    Do you have any idea on how I can add local pick up as a shipping option when creating an admin order from the dashboard. The option is available during check out in the front end but I can’t seem to find it in the custom field options in the orders page and I do not know the custom meta field name for this plugin.

    Please help.

    Thanks

    Plugin Contributor Ewout

    (@pomegranate)

    Hello Otilox,
    I suggest that you contact WooThemes with this question, as this does not really have something to do with the PDF Invoices plugin.

    Good luck and share your findings when you have an answer!

    Ewout

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘How add Local Pickup address Local Pickup Plus plugin’ is closed to new replies.