バージョン選択

フォーラム

メニュー

オンライン状況

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

サイト内検索

質問 > フロント機能 > EC-CUBEペイメントLite4での在庫なしでのシステムエラー

フロント機能

新規スレッドを追加する

フラット表示 前のトピック | 次のトピック
投稿者 スレッド
yt1969
投稿日時: 2022/5/25 19:40
対応状況: −−−
一人前
登録日: 2018/3/3
居住地:
投稿: 91
Re: EC-CUBEペイメントLite4での在庫なしでのシステムエラー
うわ、ほんとですね。。

Uncaught PHP Exception Symfony\Component\Debug\Exception\FatalThrowableError: "Call to a member
  function getDelivery() on bool" at
  /Users/xx/web/EC/onlineshop/app/Plugin/EccubePaymentLite4/Service/PurchaseFlow/Processor/MemberCheckForRegularPurchaseValidator.php
  line 47


MemberCheckForRegularPurchaseValidator.phpの
46:        // 定期商品ではない場合は処理をスキップ
47:        if ($Order->getShippings()->first()->getDelivery()->getSaleType()->getName() !== '定期商品') {
48:            return;
49:        }

ここで在庫0になったら$Order->getShippings() が値を返さないから落ちちゃう。

Order.phpのここって在庫に左右されるんですかね??
        /**
         * Get shippings.
         *
         * @return \Doctrine\Common\Collections\Collection|\Eccube\Entity\Shipping[]
         */
        public function getShippings()
        {
            $criteria = Criteria::create()
            ->orderBy(['name01' => Criteria::ASC, 'name02' => Criteria::ASC, 'id' => Criteria::ASC]);

            return $this->Shippings->matching($criteria);
        }

もはや違う問題? 私にはわかりません。。

追記:これと関係ある? Avoid using Doctrine’s Collection::matching method

→ 正規ルートとして開発元となるイプシロンに問合せしていただいたほうがよろしいかと思います。


ちなみに当方では定期購入とかやってないんで、下記2つの「$Order->getShipping()」が使われているif判定を削除してreturnだけ残して逃げようかなと思います。
app/Plugin/EccubePaymentLite4/Service/PurchaseFlow/Processor/MemberCheckForRegularPurchaseValidator.php
app/Plugin/EccubePaymentLite4/Service/PurchaseFlow/Processor/ProductClassRegularCycleValidator.php

…イプシロンの決済プラグイン、EccubePaymentLite4に変わってから当方には不要な定期購入のへんで色々面倒なことになって。。もう。。。
フラット表示 前のトピック | 次のトピック


題名 投稿者 日時
   EC-CUBEペイメントLite4での在庫なしでのシステムエラー maruchan 2022/5/25 15:19
   » Re: EC-CUBEペイメントLite4での在庫なしでのシステムエラー yt1969 2022/5/25 19:40
       Re: EC-CUBEペイメントLite4での在庫なしでのシステムエラー maruchan 2022/5/26 13:16
         Re: EC-CUBEペイメントLite4での在庫なしでのシステムエラー yt1969 2022/5/26 23:59
           Re: EC-CUBEペイメントLite4での在庫なしでのシステムエラー yt1969 2022/11/11 14:47

 



ログイン


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

統計情報

総メンバー数は89,074名です
総投稿数は110,023件です

投稿数ランキング

1
seasoft
7367
2
468
3217
3
AMUAMU
2712
4
nanasess
2314
5
umebius
2085
6
yuh
1819
7
h_tanaka
1646
8
red
1570
9
mcontact
1296
10
tsuji
958
11
fukap
907
12
shutta
835
13
tao_s
799
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.