PrestaShop/PrestaShop

Multistore - product listing doesn't show the correct price if using different taxes

Offen

#36.539 geöffnet am 12.07.2024

 (3 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)PHP (4.734 Forks)batch import
9.0.xBOBugGood first issueMajorMultistoreProducts PageReadyTax rulesVerified

Repository-Metriken

Stars
 (7.621 Sterne)
PR-Merge-Metriken
 (Durchschn. Merge 26T 17h) (116 gemergte PRs in 30 T)

Beschreibung

Prerequisites

Describe the bug and add attachments

Backend showing wrong tax on multistore when in listing. Based on 20% tax and 21% tax for second store.

Path to file src/Core/Grid/Query/ProductQueryBuilder.php

public function getSearchQueryBuilder

WRONG! ->addSelect('p.id_tax_rules_group')

GOOD ->addSelect('ps.id_tax_rules_group')

Expected behavior

No response

Steps to reproduce

  1. setup 2 multistore
  2. setup 2 taxes
  3. setup taxes per stores
  4. update product in one store
  5. go to second and price in listing showing wrong (detail good)

PrestaShop version(s) where the bug happened

8.1.0

PHP version(s) where the bug happened

8.1.0

If your bug is related to a module, specify its name and its version

No response

Your company or customer's name goes here (if applicable).

No response

Contributor Guide