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

Prestashop does not generate new cart rule when its total amount is not totally used when cart splits in 2 orders #29588

Open
2 tasks done
mamorecab opened this issue Sep 8, 2022 · 2 comments
Labels
1.7.7.8 Affects versions Bug Type: Bug Cart rules Label: Which BO under menu is concerned Discounts Label: Which BO under menu is concerned FO Category: Front Office Major Severity: major bug > https://build.prestashop.com/news/severity-classification Needs Specs Status: issue needs to be specified Shipping Component: Which BO section is concerned Verified The issue has been reproduced

Comments

@mamorecab
Copy link

mamorecab commented Sep 8, 2022

Prerequisites

Describe the bug and add screenshots

When a customer use a discount code in a purchase and its total amount it is higher than the total order AND the cart splits in 2 orders cause of there are products with different shippers, Prestashop does not generate a new cart rule with the amount remaining in the original cart rule. And of course Prestashop does not send an email to the customer when this occurs neither.

The option "partial use" is activated of course.

Expected behavior

That Prestashop create and send a new discount with the amount remaining of the discount when a order with products with diferent shippers is made to the customer.
As it does when the cart does not split into different orders.

Steps to reproduce

  1. Create a cart rule with the "option partial" use and with and amount to discount(not percent).
  2. Do an order with products with different shippers. The total price of the order must be below the discount in step 1.
  3. Check in the email that Prestashop has not sent you any discount code with the reamining amount.

PrestaShop version(s) where the bug happened

1.77.8

PHP version(s) where the bug happened

7.3

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

No response

@mamorecab mamorecab added Bug Type: Bug New New issue not yet processed by QA labels Sep 8, 2022
@AureRita
Copy link
Contributor

AureRita commented Sep 9, 2022

Hi @mamorecab

Thank you for your report, I reproduced your issue on 1.7.7.8 as you can see :

Untitled_.Sep.9.2022.2_28.PM.mp4

And yes we can see there is none discount code sent
image

Currently :
image

What you wqant :
image

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 FO Category: Front Office Needs Specs Status: issue needs to be specified Shipping Component: Which BO section is concerned Discounts Label: Which BO under menu is concerned Cart rules Label: Which BO under menu is concerned ps_emailalerts Module: Mail Alerts 1.7.7.8 Affects versions Verified The issue has been reproduced and removed New New issue not yet processed by QA labels Sep 9, 2022
@Hlavtox Hlavtox removed the ps_emailalerts Module: Mail Alerts label Jul 28, 2023
@Hlavtox
Copy link
Contributor

Hlavtox commented Jul 28, 2023

@AureRita Removing label, nothing to do with ps_emailalerts module.

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 Bug Type: Bug Cart rules Label: Which BO under menu is concerned Discounts Label: Which BO under menu is concerned FO Category: Front Office Major Severity: major bug > https://build.prestashop.com/news/severity-classification Needs Specs Status: issue needs to be specified Shipping Component: Which BO section is concerned Verified The issue has been reproduced
Projects
None yet
Development

No branches or pull requests

3 participants