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

Fixed amount cart rule is duplicated after order splitting #36177

Open
2 tasks done
Tracked by #15491
MHostinato opened this issue May 16, 2024 · 2 comments
Open
2 tasks done
Tracked by #15491

Fixed amount cart rule is duplicated after order splitting #36177

MHostinato opened this issue May 16, 2024 · 2 comments
Labels
8.1.x Branch BO Category: Back Office Bug Type: Bug Cart rules Label: Which BO under menu is concerned Major Severity: major bug > https://build.prestashop.com/news/severity-classification Order Component: Which BO section is concerned Ready Status: Issue is ready to be worked on Verified The issue has been reproduced

Comments

@MHostinato
Copy link
Contributor

Prerequisites

Describe the bug and add attachments

When the customer adds a fixed amount cart rule to his cart, and order splitting happens (when two different products are shipped only by different carriers), the cart rule is applied to both orders.

Expected behavior

Apply the cart only only to one of the orders (first one preferably).
But maybe the order splitting feature may be revisited completely.

Steps to reproduce

  1. create two carriers in backoffice
  2. create to products in backoffice
  3. associate the first carrier to the first product, then associate the second carrier to the second product:
    image
    image
  4. create a fixed amount cart rule:
    image
  5. add the products to the cart in frontoffice, and then add the cart rule, see the calculations are correct:
    image
  6. finalise the checkout process and validate the order
  7. see the cart is splitted and the cart rule has been duplicated on both orders:
    image
    image

PrestaShop version(s) where the bug happened

8.1.1

PHP version(s) where the bug happened

8.1

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).

Hostinato

@MHostinato MHostinato added Bug Type: Bug New New issue not yet processed by QA labels May 16, 2024
@MHostinato
Copy link
Contributor Author

Related epic bug thread: #15491

@AureRita
Copy link
Contributor

Hi @MHostinato ,

Thank you for your report, I reproduce the issue with PrestaShop version 8.1.x, as you can see :

recording.209.webm

Thank you for this clear issue ! 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. If this one is important to you and you cannot wait for it to be fixed on the project’s own time, we strongly suggest you consider contacting a professional to help you.

If you fix the issue on your end, please contribute it back to the project. Remember that the more people contribute, the better PrestaShop becomes for everyone.

Thanks

@AureRita AureRita added Major Severity: major bug > https://build.prestashop.com/news/severity-classification BO Category: Back Office Order Component: Which BO section is concerned Cart rules Label: Which BO under menu is concerned 8.1.x Branch Ready Status: Issue is ready to be worked on Verified The issue has been reproduced and removed New New issue not yet processed by QA labels May 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
8.1.x Branch BO Category: Back Office Bug Type: Bug Cart rules Label: Which BO under menu is concerned Major Severity: major bug > https://build.prestashop.com/news/severity-classification Order Component: Which BO section is concerned Ready Status: Issue is ready to be worked on Verified The issue has been reproduced
Projects
None yet
Development

No branches or pull requests

2 participants