インターネット、WEBサイトの設置運用サービス

2019/07

24

HOME > プログラム変更履歴 > アドレスフォーマット変更 > checkout_process.php

checkout_process.php

/checkout_process.php

注文データのお客様名customers_name、配送先名delivery_name、請求先名billing_nameの姓、名前の入れ替え

注文データでは氏名の姓、名を合成(name)しているためアドレスフォーマで変換されないため、注文履歴、請求書、納品書で逆表示を補正する。

83行目
$sql_data_array = array('customers_id' => $customer_id,
'customers_name' => $order->customer['lastname'] . ' ' . $order->customer['firstname'],
'customers_company' => $order->customer['company'],
'customers_street_address' => $order->customer['street_address'],
'customers_suburb' => $order->customer['suburb'],
'customers_city' => $order->customer['city'],
'customers_postcode' => $order->customer['postcode'], 
'customers_state' => $order->customer['state'], 
'customers_country' => $order->customer['country']['title'], 
'customers_telephone' => $order->customer['telephone'], 
'customers_email_address' => $order->customer['email_address'],
'customers_address_format_id' => $order->customer['format_id'], 
'delivery_name' => trim($order->delivery['lastname'] . ' ' . $order->delivery['firstname']),
'delivery_company' => $order->delivery['company'],
'delivery_street_address' => $order->delivery['street_address'], 
'delivery_suburb' => $order->delivery['suburb'], 
'delivery_city' => $order->delivery['city'], 
'delivery_postcode' => $order->delivery['postcode'], 
'delivery_state' => $order->delivery['state'], 
'delivery_country' => $order->delivery['country']['title'], 
'delivery_address_format_id' => $order->delivery['format_id'], 
'billing_name' => $order->billing['lastname'] . ' ' . $order->billing['firstname'], 
'billing_company' => $order->billing['company'],
'billing_street_address' => $order->billing['street_address'], 
'billing_suburb' => $order->billing['suburb'], 
'billing_city' => $order->billing['city'], 
'billing_postcode' => $order->billing['postcode'], 
'billing_state' => $order->billing['state'], 
'billing_country' => $order->billing['country']['title'], 
'billing_address_format_id' => $order->billing['format_id'],