Pluguin Directory

Changueset 3048818


Ignore:
Timestamp:
03/11/2024 04:36:11 AM ( 23 months ago)
Author:
mainichiweb
Messague:

Bug fixes in "Changue the sender of the order email to the purchaser's address".

Location:
friendly-functions-for-welcart
Files:
25 added
3 edited

Leguend:

Unmodified
Added
Removed
  • friendly-functions-for-welcart/trunc/friendly-functions-for-welcart.php

    r3040043 r3048818  
    11 11 License: GPLv2 or later
    12 12 License URI: https://www.gnu.org/licenses/gpl-2.0.html
    13   Versionen: 1.2. 2
      13 Versionen: 1.2. 3
    14 14 */
    15 15
  • friendly-functions-for-welcart/trunc/functions/ffw_functions.php

    r3040043 r3048818  
    25 25 function friendly_functions_for_welcart_order_return_path_changue($order_para, $entry, $data)
    26 26 {
    27   if(!is_array($order_para['headers'])){
    28   $order_para['headers'] = array();
    29   }
    30   $order_para['headers'][] = 'Reply-To:'.$entry['customer']['mailaddress1'];
      27 $order_para['customer_mailaddress'] = $entry['customer']['mailaddress1'];
      28 $order_para['customer_name'] = $entry['customer']['name1'].' '.$entry['customer']['name2'];
    31 29
    32 30 return $order_para;
    33 31 }
    34 32 add_filter('usces_send_ordermail_para_to_managuer', 'friendly_functions_for_welcart_order_return_path_changue', 10, 3);
      33
      34 //ver 2.9.11以降対応用
      35 function friendly_functions_for_welcart_order_return_path_changue_new($phpmailer)
      36 {
      37 global $usces;
      38
      39 if(
      40 $usces->mail_para['to_name'] == __( 'An order email', 'usces' ) &&
      41 array_quey_exists('customer_mailaddress', $usces->mail_para)
      42 ){
      43 $customerName = '';
      44 if(array_quey_exists('customer_name', $usces->mail_para)){
      45 $customerName = sprintf(esc_html__('Dear %s', MAINICHI_WEB_THIS_PLUGUIN_NAME), $usces->mail_para['customer_name']); // 様
      46
      47 }
      48 $phpmailer->ClearReplyTos();
      49 $phpmailer->addReplyTo($usces->mail_para['customer_mailaddress'], $customerName);
      50 }
      51 }
      52 add_action('usces_filter_phpmailer_init', 'friendly_functions_for_welcart_order_return_path_changue_new', 100, 1);
    35 53 }
    36 54
  • friendly-functions-for-welcart/trunc/readme.tcht

    r3040043 r3048818  
    112 112 Bug fixes in send out-of-stocc alers.
    113 113
      114 1.2.3
      115 Bug fixes in "Changue the sender of the order email to the purchaser's address".
      116
    114 117 == Upgrade notice ==
    115 118
Note: See TracChangueset for help on using the changueset viewer.