Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Best sales in multishop environment are not distinctive to shop #29538

Open
2 tasks done
Tracked by #9723
lmeyer1 opened this issue Sep 6, 2022 · 4 comments · May be fixed by #29547
Open
2 tasks done
Tracked by #9723

Best sales in multishop environment are not distinctive to shop #29538

lmeyer1 opened this issue Sep 6, 2022 · 4 comments · May be fixed by #29547
Labels
1.7.7.8 Affects versions Best-selling products Module: statsbestproducts Bug Type: Bug FO Category: Front Office Minor Severity: minor bug > https://build.prestashop.com/news/severity-classification Module Module Multistore Label: Which BO under menu is concerned Needs Specs Status: issue needs to be specified PR available Solution: issue is being addressed Verified The issue has been reproduced

Comments

@lmeyer1
Copy link
Contributor

lmeyer1 commented Sep 6, 2022

Prerequisites

Describe the bug and add screenshots

If multishop is enabled, I expect the best sales to be different in each shop. They should reflect the sales in the current shop and not the sales in all shops.

Expected behavior

I expect that the best sales product list reflects the sales in the current shop, and thus that it is different for each shop in a multishop installation.

Steps to reproduce

In a multishop installation:
Prerequisites: Ensure, that you have orders in two shops that contain different products.

  1. Go to BO > Shop Parameters > General > Enable Multistore
  2. Go to Advanced Parameters > Multistore > Add a new shop with its url
  3. Go to FO on the default shop > add some products to cart > place an order with an account
  4. Go back to BO with the default shop choosen > Orders > Orders page
  5. Put an or several orders to "Delivered" status
  6. Choose the second shop on BO > there is no orders on it
  7. Open the FO of the second shop
  8. Go back to FO on the default shop > go to footer and click on "Best sales" link in "Products" section (or via yoururl/yourlanguage/best-sales) > see all products in "Best sellers" page
  9. Go to FO on the second shop > go to footer and click on "Best sales" link in "Products" section (or via yoururl/yoururlshop/yourlanguage/best-sales) > see all products in "Best sellers" page
  10. See error, best sellers products are the same

PrestaShop version(s) where the bug happened

1.7.8.6

PHP version(s) where the bug happened

11.3

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

No response

@lmeyer1 lmeyer1 added Bug Type: Bug New New issue not yet processed by QA labels Sep 6, 2022
@sLorenzini
Copy link
Contributor

Hello @lmeyer1,

I reproduce the issue with PrestaShop version 1.7.8.6 & 1.7.7.8.
1.7.7.8:

  • default shop:

default-shop-BO

default-shop-FO

  • second shop:

second-shop-BO

second-shop-FO

1.7.8.6:

  • default shop:

default-shop-BO

default-shop-FO

  • second shop:

second-shop-BO

second-shop-FO

It is not a regresssion. I'll add this to the backlog so it can be fixed.

Please be aware that some issues might take a very long time to be resolved.

We’re waiting for your PR 🚀

Thank you

@sLorenzini sLorenzini added Minor Severity: minor bug > https://build.prestashop.com/news/severity-classification FO Category: Front Office Multistore Label: Which BO under menu is concerned Best-selling products Module: statsbestproducts 1.7.7.8 Affects versions labels Sep 6, 2022
@sLorenzini sLorenzini added this to Not Ready in PrestaShop 1.7.8.x via automation Sep 6, 2022
@sLorenzini sLorenzini added Needs Specs Status: issue needs to be specified Verified The issue has been reproduced and removed New New issue not yet processed by QA labels Sep 6, 2022
@lmeyer1 lmeyer1 linked a pull request Sep 6, 2022 that will close this issue
@prestonBot prestonBot added the PR available Solution: issue is being addressed label Sep 6, 2022
@lmeyer1
Copy link
Contributor Author

lmeyer1 commented Sep 6, 2022

@sLorenzini I think you chose the wrong tag 1.7.8.7, not 1.7.7.8.

@lmeyer1
Copy link
Contributor Author

lmeyer1 commented Sep 6, 2022

@sLorenzini

@lmeyer1 lmeyer1 mentioned this issue 4 minutes ago
#29552

This was an error. Is it possible to remove this mention ?

@hibatallahAouadni hibatallahAouadni added the Module Module label Sep 7, 2022
@hibatallahAouadni hibatallahAouadni removed this from Not Ready in PrestaShop 1.7.8.x Sep 7, 2022
@hibatallahAouadni hibatallahAouadni added this to To do in Native modules integration via automation Sep 7, 2022
@hibatallahAouadni
Copy link
Contributor

Hello @lmeyer1

@sLorenzini I think you chose the wrong tag 1.7.8.7, not 1.7.7.8.

No, she didn't! As we reproduce the problem on an older version, so we only have to add this older version tag (meaning it always reproduces on the current version).
We only use the current version tag for regressions 😉

PS: if you have any questions about how we use labels or treat with issues, feel free to ask me or ping me on Slack:wink:

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1.7.7.8 Affects versions Best-selling products Module: statsbestproducts Bug Type: Bug FO Category: Front Office Minor Severity: minor bug > https://build.prestashop.com/news/severity-classification Module Module Multistore Label: Which BO under menu is concerned Needs Specs Status: issue needs to be specified PR available Solution: issue is being addressed Verified The issue has been reproduced
Projects
Development

Successfully merging a pull request may close this issue.

4 participants