-
Notifications
You must be signed in to change notification settings - Fork 25
Open
Milestone
Description
概要(Overview)
EC-CUBE/ec-cube#2158 の修正により、個別税率が正しく取得できなくなっているようです。
src/Eccube/Doctrine/EventSubscriber/TaxRuleEventSubscriber.phpのpostLoad()にて、$entity->getProduct()がNULLになってしまいます。
[個別税率が反映されるページ]
商品一覧
購入確認
(受注データには反映されています)
[個別税率が反映されないページ]
商品詳細
カート
商品詳細については、ProductRepository.phpのget()内で、ProductClassesをselectしているために起こっているようです。
期待する内容(Expect) or 要望 (Requirement)
src/Eccube/Doctrine/EventSubscriber/TaxRuleEventSubscriber.phpのpostLoad()にて、$entity->getProduct()が正しく取得できること。
再現手順(Procedure)
管理画面で個別税率を設定して、フロントで商品詳細を表示
環境 (environment)
EC-CUBE: 3.0.14
PHP: 7.0
DB:
MySQL 5.7