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

商品一覧画面で「カートに入れる」ボタンを押下時に規格選択のバリデーションを追加する #4062

Open
okazy opened this issue Dec 25, 2018 · 0 comments
Labels
Milestone

Comments

@okazy
Copy link
Contributor

okazy commented Dec 25, 2018

概要(Overview)

商品一覧画面で「カートに入れる」ボタンを押下時に規格選択のバリデーションを追加する

期待する内容(Expect) or 要望 (Requirement)

jsで規格が選択されているかどうかのチェックを追加する

再現手順(Procedure)

デフォルトテンプレートの商品一覧ページの商品をカートに入れるUIで、規格選択肢がある場合に、選択肢を選ばずにカートに入れるボタンを押すと、ajaxに失敗(レスポンスのHTTPステータスが404)しているようです。
結果、モーダルでは無くalertで「カートへの追加に失敗しました。」と表示されます。

商品詳細ページの場合はJSで確認処理(※1)が入っていますが、一覧ページでは同処理が無い為だと思われます。
※1 :

// 規格1フォームの必須チェック

規格があるかどうかの処理もtwig側では無くJS側に任せて、eccube.js 辺りに入れて同じ処理を使う形にしてしまった方が分かり易い気がしました。

環境 (environment)

  • EC-CUBE: 4.0.1

関連情報 (Ref)

コミュニティサイトにて報告
https://xoops.ec-cube.net/modules/newbb/viewtopic.php?topic_id=21348&forum=8&post_id=89698#forumpost=89698

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

1 participant