Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

受注管理で購入処理中の受注を作成すると購入確認画面の商品がその受注の商品となってしまう #1452

Closed
shhirose opened this issue Feb 5, 2016 · 1 comment
Labels
Milestone

Comments

@shhirose
Copy link
Contributor

shhirose commented Feb 5, 2016

開発コミュニティより(http://xoops.ec-cube.net/modules/newbb/viewtopic.php?topic_id=16989&forum=5)

  1. 管理画面の受注登録で適当な商品を受注登録する。
      この際にステータスを「購入処理中」にする。
      ここで登録された受注は dtb_order.pre_order_id がNULLとなり、
      status が8となる
  2. フロント側で適当な商品をカートに入れ、「レジに進む」をクリックする
      ここで、以下の受注データの取得SQLが発行されており、これで取得された商品の
      決済画面が表示される。

  SELECT ..... FROM dtb_order t0
WHERE t0.pre_order_id IS NULL
AND t0.status = 8
AND ((t0.del_flg = 0)) LIMIT 1

  1の手順で登録した受注が条件に該当するため、カートに入れた商品とは異なる商品の
  決済画面となる。
  また、1で受注登録された商品が削除処理済みの場合、商品情報が取得できないため、
  決済画面はエラーで表示できずに終了する。

@shhirose shhirose changed the title 受注管理で購入処理中の受注を作成するとフロントで購入商品がその受注の商品となってしまう 受注管理で購入処理中の受注を作成すると購入確認画面の商品がその受注の商品となってしまう Feb 5, 2016
@nanasess nanasess added the bug label Feb 5, 2016
nanasess added a commit to nanasess/ec-cube that referenced this issue Feb 5, 2016
chihiro-adachi pushed a commit that referenced this issue Feb 9, 2016
@nanasess
Copy link
Contributor

Merged from #1453

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants