• Resolved patrickrobles

    (@patrickrobles)


    Hi,
    I’m trying to get the store details so i can put it in the email to be sent to the customer.
    Can you help me on how can this happen?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Keylor Mendoza

    (@keylorcr)

    Hey @patrickrobles

    The plugin saves the store name as order meta with the key _shipping_pickup_stores so you could use a WP function like get_page_by_title( $page_title, $output, $post_type ); to get the order data. Then you could insert it to the order email as you desire. I recommend you to use an action like woocommerce_email_after_order_table to insert it after order table.

    Let me know if you need anything else.

    Regards

    Plugin Author Keylor Mendoza

    (@keylorcr)

    Hey @patrickrobles, if you don’t have any more problems and this is done, I will mark it as resolved. Don’t hesitate to open a new topic if you have any doubt.

    chiragzinzuvadiya

    (@chiragzinzuvadiya)

    Hi Keylor,

    I’ve tried above solution but it didn’t work for me I think it doesn’t add the store name in the database so when I’m trying to fetch the value it returns as empty string and in the mail instead of store name it displays the only label we’ve set for an option like below.

    Shipping: Pickup at a Store

    So can you please help me to resolve this issue?

    Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Store details in email’ is closed to new replies.