PrestaShop/PrestaShop

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

オープン

#36,539 opened on 2024/07/12

 (3 件のコメント) (0 件のリアクション) (0 人の担当者)PHP (4,734 件のフォーク)batch import
9.0.xBOBugGood first issueMajorMultistoreProducts PageReadyTax rulesVerified

Repository metrics

Stars
 (7,621 個のスター)
PR merge metrics
 (平均マージ 26d 17h) (30d で 116 merged PRs)

説明

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

コントリビューターガイド