LoginSignup
0
1

More than 5 years have passed since last update.

CS-Cart:商品の返金申請をするとエラーが表示される。

Last updated at Posted at 2018-05-14

再現手順(返金申請が可能な商品)

  1. 商品を注文する。
  2. 注文後、"注文詳細"ボタンをクリック。
  3. "商品の交換または返金を申請"をクリック。
  4. 対象の商品と返金申請の理由を選択する。
  5. コメントを入力し、"返品"をクリックする。
  6. エラーが表示される(返金申請メールは送信される)。
Warning: Illegal string offset 'status' in
/app/addons/mail_tpl_jp/tpl_variants/addons_rma_slip_notification.php on line 45

対象ファイル

/app/addons/mail_tpl_jp/tpl_variants/addons_rma_slip_notification.php

修正方法

45行目の$tpl_return_status = $return_statuses[$tpl_return_status_info['status']]['description'];$tpl_return_status = $return_statuses[$tpl_return_status_info]['description'];に変更する。

※$tpl_return_status_infoには、ステータスを表す文字(例 'R')がセットされるが、その文字列に対しインデックス'status'を取得しようとしてエラーになる。

bug_fix.png

重要度

エラーメッセージは表示されるが、返金申請事態の処理は正しく行われているように見えるため(申請受付メールも送信される)、絶対に修正しないといけないレベルの問題ではない。

現に、最新バージョンの cscart_v4.7.2_JP_1patched_20180427 でも、このエラーは修正されていない。

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1