Skip to content

Autosuggest/Product Suggestions tax is not included in (final) price #49

@alpha-buerobedarf

Description

@alpha-buerobedarf

Preconditions

  1. Magento 2.2
  2. Multiple Stores
    2.1. default store A with catalog_prices excl. tax
    2.2. second store B with catalog-prices incl.tax
  3. different solr cores for each store

Steps to reproduce

  1. Reindex Solr
  2. After full reindex search a product and take a look at auto/productsuggestions window in both stores

Expected result

  1. Prices in store A product suggestions should be displayed excl. tax
  2. Prices in store B product suggestions should be displayed incl. tax

Actual result

  1. Prices in store A product suggestions are displayed excl. tax
  2. 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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions