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

    Is possible? Any hook?

    • This topic was modified 4 years, 11 months 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://www.ads-software.com/support/topic/store-detail-in-email-user/

    Regards

    Thread Starter sotnas

    (@sotnas)

    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 4 years, 11 months ago by sotnas.
    • This reply was modified 4 years, 11 months ago by sotnas.
    Thread Starter sotnas

    (@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)
  • The topic ‘Add store description/adress in client mails’ is closed to new replies.