PrestaShop / PrestaShop

PrestaShop is the universal open-source software platform to build your e-commerce solution.
https://www.prestashop-project.org/
Other
8.07k stars 4.78k forks source link

Fixed amount cart rule is duplicated after order splitting #36177

Open MHostinato opened 3 months ago

MHostinato commented 3 months ago

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 commented 3 months ago

Related epic bug thread: #15491

AureRita commented 3 months ago

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