バージョン選択

フォーラム

メニュー

オンライン状況

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

サイト内検索

質問 > 管理機能 > お届け時間の条件設定

管理機能

新規スレッドを追加する

フラット表示 前のトピック | 次のトピック
投稿者 スレッド
umebius
投稿日時: 2020/1/13 7:31
対応状況: −−−
登録日: 2016/7/22
居住地:
投稿: 2085
Re: お届け時間の条件設定
src/Eccube/Form/Type/Shopping/ShippingType.phpで
お届け時間の選択肢を作っています。

取り除きたい選択肢は、下記の$DeliveryTimesに含めないようにするのが考え方になります。

$ShippingDeliveryTime = null;
                $DeliveryTimes = [];
                $Delivery = $Shipping->getDelivery();
                if ($Delivery) {
                    $DeliveryTimes = $Delivery->getDeliveryTimes();
                    $DeliveryTimes = $DeliveryTimes->filter(function (DeliveryTime $DeliveryTime) {
                        return $DeliveryTime->isVisible();
                    });

                    foreach ($DeliveryTimes as $deliveryTime) {
                        if ($deliveryTime->getId() == $Shipping->getTimeId()) {
                            $ShippingDeliveryTime = $deliveryTime;
                            break;
                        }
                    }
                }


----------------
EC-CUBEカスタマイズ・高速化・脆弱性対策・SEO ご相談ください。

2系・3系から4系へのバージョンアップ実績豊富

フラット表示 前のトピック | 次のトピック


題名 投稿者 日時
   お届け時間の条件設定 gingercat 2020/1/13 0:32
   » Re: お届け時間の条件設定 umebius 2020/1/13 7:31
     Re: お届け時間の条件設定 gingercat 2020/1/13 18:06
       Re: お届け時間の条件設定 umebius 2020/1/13 21:13
         Re: お届け時間の条件設定 gingercat 2020/1/15 21:31

 



ログイン


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

統計情報

総メンバー数は88,886名です
総投稿数は110,000件です

投稿数ランキング

1
seasoft
7367
2
468
3217
3
AMUAMU
2712
4
nanasess
2313
5
umebius
2085
6
yuh
1819
7
h_tanaka
1646
8
red
1570
9
mcontact
1295
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.