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

Basket rule / send a gift with other discounts -> wrong amount #19900

Closed
rricci34 opened this issue Jun 22, 2020 · 10 comments
Closed

Basket rule / send a gift with other discounts -> wrong amount #19900

rricci34 opened this issue Jun 22, 2020 · 10 comments
Labels
1.7.6.5 Affects versions BO Category: Back Office Cart rules Label: Which BO under menu is concerned No change required Resolution: issue closed because expected as is

Comments

@rricci34
Copy link

I noticed a bug on a PS 1.7.6.5 (so blank test).

When creating a basket rule of the type "send a gift" (therefore a product) from a minimum order amount, the reduction amount becomes incorrect if we add a second (or more) basket rule an amount. However, the amount of the reduction is correct if it is the only one to be used.

For information :
I created a basket rule which is a gift product that I defined at 10 € (so that the calculations are simplified)
I created a second basket rule which is an amount of € 10 including tax

Here is what is happening: (I am enclosing screenshots that will be more telling)

The 2 basket rules:
regles-paniers

If 1 rule amount of reduction OK
1-regle-montant-ok

But when I add a second rule the amount becomes wrong (besides I do not understand the latter which is not proportional to the amount of the reduction (after several tests):
montant-reduction-erroneea

@prestashop-issue-bot
Copy link

Thanks for opening this issue! We will help you to keep its state consistent

@sarahdib
Copy link
Contributor

Hello,

Despite our efforts, we were not able to reproduce your issue with the provided information.
Capture d’écran 2020-06-23 à 10 38 42

What is your php version ?
Could you send me a screenshot of the two cart rule created

Thank you!

@sarahdib sarahdib added NMI Status: issue needs more information Cart rules Label: Which BO under menu is concerned BO Category: Back Office 1.7.6.5 Affects versions labels Jun 23, 2020
@rricci34
Copy link
Author

Hello, is one of your discounts a gift product? (Pull imprimé colibris for example) which is added automatically from a certain amount?
The 2nd reduction is a simple amount.
I enclose the screenshots.

1st rule which is a gift:
2020-06-23_10h48_24
2020-06-23_10h48_42
2020-06-23_10h49_16

2nd rule which is an amount :

2020-06-23_10h47_25
2020-06-23_10h47_35
2020-06-23_10h47_47

I just did a new test look at the amount of the reduction is not good:
panier-06-23

I use for information PHP 7.2

@prestascott
Copy link

Hello, i tried to reproduce the bug with the exact same rules that you created and unfortunately, i can't reproduce it:

  • Free gift discount can't be applied because there is no code written in informations tab even if you don't normally have to write one for your case

When i enter a name of the code, here is what happen:

  • 1st rule (free gift discount): it adds the same item but for free -> but you have to enter the code in your cart (FO)
  • 2nd rule: 10€ discount -> works perfectly

Here is a screenshot:
image

@rricci34
Copy link
Author

Hello, this is crazy. I have this bug on a production site and also on this prestashop 1.7.6.5 in a blank room.

I am attaching a video that may be more meaningful and may allow you to see what is missing ...
TY

20-06-24_bug-gift.zip

@prestascott
Copy link

prestascott commented Jun 24, 2020

Do you have specific discounts on your product page?

Can you provide us screenshots about your product page configuration:
Catalog > Products > Product page

  • Basic settings
  • Quantities
  • Shipping
  • Pricing
  • Options

@rricci34
Copy link
Author

Hello, however, I have not changed anything in the basic configuration of this new installation of PS 1.7.6.5. I leave everything by default, without additional module in order to precisely carry out my tests ...

@rricci34
Copy link
Author

I just did a test on 1.7.7 (beta) and it works correctly.
Do you test on PS 1.7.6.5?
Thank you

@rricci34
Copy link
Author

Well, I just did new tests on a fresh 1.7.6.5, and I no longer have this bug. I do not know why but the main thing is that he is no longer there.

Sorry for the delay :/

@prestascott
Copy link

I'm glad that it works!

Since you no longer have this bug, i can close this issue.

@prestascott prestascott added No change required Resolution: issue closed because expected as is and removed NMI Status: issue needs more information labels Jun 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1.7.6.5 Affects versions BO Category: Back Office Cart rules Label: Which BO under menu is concerned No change required Resolution: issue closed because expected as is
Projects
None yet
Development

No branches or pull requests

3 participants