バージョン選択

フォーラム

メニュー

オンライン状況

47 人のユーザが現在オンラインです。 (42 人のユーザが フォーラム を参照しています。)
登録ユーザ: 0
ゲスト: 47
もっと...

サイト内検索

質問 > フロント機能 > 規格ありの商品のみカートに入らない

フロント機能

新規スレッドを追加する

スレッド表示 | 古いものから 前のトピック | 次のトピック | 下へ
投稿者 スレッド
h_tanaka
投稿日時: 2022/12/21 12:51
対応状況: −−−
登録日: 2016/7/22
居住地: 愛媛県
投稿: 1610
Re: 規格ありの商品のみカートに入らない
コンソールエラーは出ていないでしょうか?
次の方法でデバッグするのが良いかと思います。
・Product/detail.twig の add-cart のイベント処理にて js デバッグする
・ProductController の addCart にて随所に log_info() を設置してログ出力する


----------------
EC-CUBE 《プラチナ》ランクパートナー
トエビス株式会社 田中 宏典
EC-CUBEの機能やデザインのカスタマイズ承ります。

yuh
投稿日時: 2022/12/20 11:00
対応状況: −−−
登録日: 2013/1/9
居住地: 大阪
投稿: 1818
Re: 規格ありの商品のみカートに入らない
ログから見ると関係なさそうです。
テンプレートのカスタマイズをしたことがありますか?
おそらく数量や規格IDを正しく取得していないかと思います


----------------


http://ec-lab.net/

tomochika
投稿日時: 2022/1/14 12:58
対応状況: −−−
新米
登録日: 2008/7/18
居住地:
投稿: 6
規格ありの商品のみカートに入らない
[EC-CUBE] 4.1.0 新規インストール
[レンタルサーバ] 自社サーバー
[OS] CentOs 7
[PHP] 7.3.25/FPM
[データベース] MySQL 5.6.45
[WEBサーバ] Apache
[導入プラグインの有無] WebAPI DeliveryPlus4(デフォルトプラグインも含めて停止済)
[現象]
お世話になります。上記環境にて運用中ですが、今回初めて規格有の商品を追加してみたところ、規格有の商品のみカートに入らない現象が発生しております。規格無しの商品は販売種別にかかわらず正常にカートに入ります。

発生するエラーは ポップアップにて「カートへの追加に失敗しました。」と表示されます。もちろんカートには追加されません。
規格を選択し、カートに入れるボタンを押した直近のログは以下になります。

--> extra: { url: /products/add_cart/1, ip: 192.168.100.50, http_method: POST, server: test.XXXXX.jp, referrer: 'https://test.XXXXX.jp/products/detail/1', user_agent: 'Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.93 Safari/537.36', file: /virtual/XXXXX/test/src/Eccube/Log/Logger.php, line: 68, class: Eccube\Log\Logger, function: log, uid: 3b682cb, user_id: 16, session_id: N/A }
Commit executed.
___ APP ____________________________________________________________________________________________
"START TRANSACTION"
___ DOCTRINE _______________________________________________________________________________________
--> extra: { url: /products/add_cart/1, ip: 192.168.100.50, http_method: POST, server: test.XXXXX.jp, referrer: 'https://test.XXXXX.jp/products/detail/1', user_agent: 'Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.93 Safari/537.36', file: /virtual/XXXXX/test/vendor/symfony/doctrine-bridge/Logger/DbalLogger.php, line: 71, class: Symfony\Bridge\Doctrine\Logger\DbalLogger, function: log, uid: 3b682cb, user_id: 16, session_id: N/A }
"COMMIT"
___ DOCTRINE _______________________________________________________________________________________
--> extra: { url: /products/add_cart/1, ip: 192.168.100.50, http_method: POST, server: test.XXXXX.jp, referrer: 'https://test.XXXXX.jp/products/detail/1', user_agent: 'Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.93 Safari/537.36', file: /virtual/XXXXX/test/src/Eccube/EventListener/LogListener.php, line: 133, class: Eccube\EventListener\LogListener, function: onKernelTerminate, uid: 3b682cb, user_id: 16, session_id: N/A }
--> - product_add_cart
PROCESS END
___ APP ____________________________________________________________________________________________
--> extra: { url: /products/add_cart/1, ip: 192.168.100.50, http_method: POST, server: test.XXXXX.jp, referrer: 'https://test.XXXXX.jp/products/detail/1', user_agent: 'Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.93 Safari/537.36', file: /virtual/XXXXX/test/vendor/symfony/doctrine-bridge/Logger/DbalLogger.php, line: 71, class: Symfony\Bridge\Doctrine\Logger\DbalLogger, function: log, uid: 3b682cb, user_id: 16, session_id: '47008747' }
t0.discriminator_type IN ('plugin')
create_date_8, t0.update_date AS update_date_9, t0.discriminator_type FROM dtb_plugin t0 WHERE
version_5, t0.source AS source_6, t0.initialized AS initialized_7, t0.create_date AS
SELECT t0.id AS id_1, t0.name AS name_2, t0.code AS code_3, t0.enabled AS enabled_4, t0.version AS
___ DOCTRINE _______________________________________________________________________________________
--> extra: { url: /products/add_cart/1, ip: 192.168.100.50, http_method: POST, server: test.XXXXX.jp, referrer: 'https://test.XXXXX.jp/products/detail/1', user_agent: 'Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.93 Safari/537.36', file: /virtual/XXXXX/test/vendor/symfony/security/Http/Firewall/ContextListener.php, line: 196, class: Symfony\Component\Security\Http\Firewall\ContextListener, function: onKernelResponse, uid: 3b682cb, user_id: 16, session_id: '47008747' }
--> key: _security_customer
Stored the security token in the session.
___ (!) SECURITY ___________________________________________________________________________________
--> extra: { url: /products/add_cart/1, ip: 192.168.100.50, http_method: POST, server: test.XXXXX.jp, referrer: 'https://test.XXXXX.jp/products/detail/1', user_agent: 'Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.93 Safari/537.36', file: /virtual/XXXXX/test/src/Eccube/EventListener/LogListener.php, line: 124, class: Eccube\EventListener\LogListener, function: onKernelResponse, uid: 3b682cb, user_id: 16, session_id: '47008747' }
--> - product_add_cart
LOGIC END
___ APP ____________________________________________________________________________________________
--> extra: { url: /products/add_cart/1, ip: 192.168.100.50, http_method: POST, server: test.XXXXX.jp, referrer: 'https://test.XXXXX.jp/products/detail/1', user_agent: 'Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.93 Safari/537.36', file: /virtual/XXXXX/test/vendor/symfony/doctrine-bridge/Logger/DbalLogger.php, line: 71, class: Symfony\Bridge\Doctrine\Logger\DbalLogger, function: log, uid: 3b682cb, user_id: 16, session_id: '47008747' }
t0.discriminator_type IN ('plugin')
create_date_8, t0.update_date AS update_date_9, t0.discriminator_type FROM dtb_plugin t0 WHERE
version_5, t0.source AS source_6, t0.initialized AS initialized_7, t0.create_date AS
SELECT t0.id AS id_1, t0.name AS name_2, t0.code AS code_3, t0.enabled AS enabled_4, t0.version AS
___ DOCTRINE _______________________________________________________________________________________
--> extra: { url: /products/add_cart/1, ip: 192.168.100.50, http_method: POST, server: test.XXXXX.jp, referrer: 'https://test.XXXXX.jp/products/detail/1', user_agent: 'Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.93 Safari/537.36', file: /virtual/XXXXX/test/src/Eccube/EventListener/LogListener.php, line: 143, class: Eccube\EventListener\LogListener, function: onKernelException, uid: 3b682cb, user_id: 16, session_id: '47008747' }
--> - 404
___ APP ____________________________________________________________________________________________
--> extra: { url: /products/add_cart/1, ip: 192.168.100.50, http_method: POST, server: test.XXXXX.jp, referrer: 'https://test.XXXXX.jp/products/detail/1', user_agent: 'Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.93 Safari/537.36', file: /virtual/XXXXX/test/vendor/symfony/debug/ErrorHandler.php, line: 500, class: Symfony\Component\Debug\ErrorHandler, function: handleError, uid: 3b682cb, user_id: 16, session_id: '47008747' }
--> exception: "O:14:\"ErrorException\":8:{s:10:\"\0*\0message\";s:172:\"User Deprecated: The \"Symfony\\Component\\HttpKernel\\Event\\GetResponseForExceptionEvent::getException()\" method is deprecated since Symfony 4.4, use \"getThrowable()\" instead.\";s:17:\"\0Exception\0string\";s:0:\"\";s:7:\"\0*\0code\";i:0;s:7:\"\0*\0file\";s:86:\"/virtual/XXXXX/test/vendor/symfony/http-kernel/Event/GetResponseForExceptionEvent.php\";s:7:\"\0*\0line\";i:57;s:16:\"\0Exception\0trace\";a:11:{i:0;a:5:{s:4:\"file\";s:61:\"/virtual/XXXXX/test/src/Eccube/EventListener/LogListener.php\";s:4:\"line\";i:141;s:8:\"function\";s:12:\"getException\";s:5:\"class\";s:63:\"Symfony\\Component\\HttpKernel\\Event\\GetResponseForExceptionEvent\";s:4:\"type\";s:2:\"->\";}i:1;a:5:{s:4:\"file\";s:78:\"/virtual/XXXXX/test/vendor/symfony/event-dispatcher/Debug/WrappedListener.php\";s:4:\"line\";i:126;s:8:\"function\";s:17:\"onKernelException\";s:5:\"class\";s:32:\"Eccube\\EventListener\\LogListener\";s:4:\"type\";s:2:\"->\";}i:2;a:5:{s:4:\"file\";s:72:\"/virtual/XXXXX/test/vendor/symfony/event-dispatcher/EventDispatcher.php\";s:4:\"line\";i:264;s:8:\"function\";s:8:\"__invoke\";s:5:\"class\";s:55:\"Symfony\\Component\\EventDispatcher\\Debug\\WrappedListener\";s:4:\"type\";s:2:\"->\";}i:3;a:5:{s:4:\"file\";s:72:\"/virtual/XXXXX/test/vendor/symfony/event-dispatcher/EventDispatcher.php\";s:4:\"line\";i:239;s:8:\"function\";s:10:\"doDispatch\";s:5:\"class\";s:49:\"Symfony\\Component\\EventDispatcher\\EventDispatcher\";s:4:\"type\";s:2:\"->\";}i:4;a:5:{s:4:\"file\";s:72:\"/virtual/XXXXX/test/vendor/symfony/event-dispatcher/EventDispatcher.php\";s:4:\"line\";i:73;s:8:\"function\";s:13:\"callListeners\";s:5:\"class\";s:49:\"Symfony\\Component\\EventDispatcher\\EventDispatcher\";s:4:\"type\";s:2:\"->\";}i:5;a:5:{s:4:\"file\";s:64:\"/virtual/XXXXX/test/src/Eccube/Event/EventDispatcherWrapper.php\";s:4:\"line\";i:32;s:8:\"function\";s:8:\"dispatch\";s:5:\"class\";s:49:\"Symfony\\Component\\EventDispatcher\\EventDispatcher\";s:4:\"type\";s:2:\"->\";}i:6;a:5:{s:4:\"file\";s:87:\"/virtual/XXXXX/test/vendor/symfony/event-dispatcher/Debug/TraceableEventDispatcher.php\";s:4:\"line\";i:168;s:8:\"function\";s:8:\"dispatch\";s:5:\"class\";s:35:\"Eccube\\Event\\EventDispatcherWrapper\";s:4:\"type\";s:2:\"->\";}i:7;a:5:{s:4:\"file\";s:62:\"/virtual/XXXXX/test/vendor/symfony/http-kernel/HttpKernel.php\";s:4:\"line\";i:219;s:8:\"function\";s:8:\"dispatch\";s:5:\"class\";s:64:\"Symfony\\Component\\EventDispatcher\\Debug\\TraceableEventDispatcher\";s:4:\"type\";s:2:\"->\";}i:8;a:5:{s:4:\"file\";s:62:\"/virtual/XXXXX/test/vendor/symfony/http-kernel/HttpKernel.php\";s:4:\"line\";i:91;s:8:\"function\";s:15:\"handleThrowable\";s:5:\"class\";s:39:\"Symfony\\Component\\HttpKernel\\HttpKernel\";s:4:\"type\";s:2:\"->\";}i:9;a:5:{s:4:\"file\";s:58:\"/virtual/XXXXX/test/vendor/symfony/http-kernel/Kernel.php\";s:4:\"line\";i:201;s:8:\"function\";s:6:\"handle\";s:5:\"class\";s:39:\"Symfony\\Component\\HttpKernel\\HttpKernel\";s:4:\"type\";s:2:\"->\";}i:10;a:5:{s:4:\"file\";s:30:\"/virtual/XXXXX/test/index.php\";s:4:\"line\";i:76;s:8:\"function\";s:6:\"handle\";s:5:\"class\";s:35:\"Symfony\\Component\\HttpKernel\\Kernel\";s:4:\"type\";s:2:\"->\";}}s:19:\"\0Exception\0previous\";N;s:11:\"\0*\0severity\";i:16384;}"
deprecated since Symfony 4.4, use "getThrowable()" instead.
"Symfony\Component\HttpKernel\Event\GetResponseForExceptionEvent::getException()" method is


テスト環境にて、すべてのプラグインを停止。
自分で行いました改造もほぼほぼロールバックした環境にてテストしましたが、エラーは同様でした。
何かアドバイスいただけましたら幸いです。
スレッド表示 | 古いものから 前のトピック | 次のトピック | トップ


 



ログイン


EC-CUBE公式 Amazon Payプラグイン

統計情報

総メンバー数は88,288名です
総投稿数は109,688件です

投稿数ランキング

1
seasoft
7365
2
468
3217
3
AMUAMU
2712
4
nanasess
2303
5
umebius
2085
6
yuh
1818
7
h_tanaka
1610
8
red
1567
9
mcontact
1240
10
tsuji
958
11
fukap
907
12
shutta
835
13
tao_s
796
14 ramrun 789
15 karin 689
16 sumida 641
17
homan
633
18 DELIGHT 572
19
patapata
502
20
flealog
485


ネットショップの壺

EC-CUBEインテグレートパートナー

Copyright© EC-CUBE CO.,LTD. All Rights Reserved.