バージョン選択

フォーラム

メニュー

オンライン状況

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

サイト内検索

バグ報告 > フロント機能 > 在庫が無い商品規格のリスト項目に『(商品規格名)product.text.out_of_stock』と表示される

フロント機能

新規スレッドを追加する

フラット表示 前のトピック | 次のトピック
投稿者 スレッド
sako1982
投稿日時: 2018/10/16 23:30
対応状況: −−−
新米
登録日: 2012/7/31
居住地: 千葉
投稿: 7
Re: 在庫が無い商品規格のリスト項目に『(商品規格名)product.text.out_of_stock』と表示される
src\Eccube\Entity\Product.php
Line:112の以下の箇所で規格1の在庫がない場合に在庫切れ文字列を付与するために
「product.text.out_of_stock」を指定していますが、日本語リソースに同IDが存在していないことが原因と思われます。

$this->classCategories1[$ProductClass->getClassCategory1()->getId()] = $ProductClass->getClassCategory1()->getName().($ProductClass->getStockFind() ? '' : trans('product.text.out_of_stock'));

【messages.en.php内の定義】
 'product.text.out_of_stock' => '(Out of stock)'

【messages.ja.yaml内の定義】
 front.product.out_of_stock_label: (品切れ中)

【修正案】
src\Eccube\Entity\Product.php
Line:112
「product.text.out_of_stock」を「front.product.out_of_stock_label」に変更。

src\Eccube\Resource\locale\messages.en.php
Line:1790
「product.text.out_of_stock」を「front.product.out_of_stock_label」に変更。

※上記修正案について、どなたか詳しい方にアドバイスいただけましたら幸いです。
フラット表示 前のトピック | 次のトピック


題名 投稿者 日時
   在庫が無い商品規格のリスト項目に『(商品規格名)product.text.out_of_stock』と表示される sako1982 2018/10/16 16:58
   » Re: 在庫が無い商品規格のリスト項目に『(商品規格名)product.text.out_of_stock』と表示される sako1982 2018/10/16 23:30
       Re: 在庫が無い商品規格のリスト項目に『(商品規格名)product.text.out_of_stock』と表示される nyorai 2018/10/18 17:01
         Re: 在庫が無い商品規格のリスト項目に『(商品規格名)product.text.out_of_stock』と表示される sako1982 2018/10/18 20:42

 



ログイン


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

統計情報

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

投稿数ランキング

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.