Support » Plugin: WC Pickup Store » Add store description/adress in client mails

  • How to add store description our address in order mail to client ?

    Is possible? Any hook?

    • This topic was modified 2 months, 3 weeks ago by sotnas.

    The page I need help with: [log in to see the link]

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

    (@keylorcr)

    Hi @sotnas

    Please check this previous thread that might help you https://wordpress.org/support/topic/store-detail-in-email-user/

    Regards

    Thank you Keylor.

    only need replace, in your code,
    $store_phone = get_post_meta($store->ID, ‘phone‘, true);
    by
    $store_address = get_post_meta($store->ID, ‘address‘, true);

    ok, i get, but if i need the two fields, address and phone?

    this is correct?

    $new_rows['store_data'] = array(
                        'label' => __('Address', 'text_domain'),
                        'value' => $store_address,
                        'label' => __('Phone Number', 'text_domain'),
                        'value' => $store_phone,
                    );

    Thank you again

    • This reply was modified 2 months, 3 weeks ago by sotnas.
    • This reply was modified 2 months, 3 weeks ago by sotnas.

    Our
    i think more correct

    $new_rows['store_data'] = array(
          'label' => array( 
                       __('Address', 'text_domain'),
                       __('Phone Number', 'text_domain')
           'value' => array (
                      $store_address,
                      $store_phone
            );

    but i don’t know if array inside array is correct…

    Plugin Author Keylor Mendoza

    (@keylorcr)

    In that way, I think that this structure might work better:

    $new_rows['store_data'] = array(
    	'label' => __('Address', 'text_domain')
    	'value' => $store_address
    );
    $new_rows['store_data'] = array(
    	'label' => __('Phone Number', 'text_domain')
    	'value' => $store_phone
    );
Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.