-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
Preconditions
- Magento 2.2
- Multiple Stores
2.1. default store A with catalog_prices excl. tax
2.2. second store B with catalog-prices incl.tax - different solr cores for each store
Steps to reproduce
- Reindex Solr
- After full reindex search a product and take a look at auto/productsuggestions window in both stores
Expected result
- Prices in store A product suggestions should be displayed excl. tax
- Prices in store B product suggestions should be displayed incl. tax
Actual result
- Prices in store A product suggestions are displayed excl. tax
- Prices in store B product suggestions are displayed excl. tax!!!
It seems to be a problem with TaxHelper and StoreResolver,
public function getPriceDisplayType($store = null) { return $this->_config->getPriceDisplayType($store); }
If no store is set here (which isn't the case while indexing), magento is trying to get the store in \Magento\Store\Model\StoreResolver, this returns the default store A Id even if Store B is indexing,
seems to be a problem with magento itself and/or store emulation but i am not sure about that.
Patrick
Metadata
Metadata
Assignees
Labels
No labels