Add cart rule module validation - #34875
Conversation
9571d63 to
ca4dc4c
Compare
|
Ping @kpodemski, it's ready |
|
Hi @Hlavtox Thank you for your PR, I tested it and it doesn't seems to works as expected as you can see : recording.32.webmThank you |
|
@AureRita Please read the PR description, I specially written this to avoid QA reporting this - Try to change minimum order value for example. Now the rule will be removed on page reload, before, only if you changed something in cart. |
|
Bump @AureRita |
|
ping @AureRita @florine2623 :) |
kpodemski
left a comment
There was a problem hiding this comment.
I'm blocking this PR.
Unfortunately, we have to fix the most common issues first.
florine2623
left a comment
There was a problem hiding this comment.
Hello @Hlavtox ,
I'm not sure I understand well this PR. This is not a bug fix but rather an improvement of an existing feature ?
I don't see a "before and after" as you usually add in the how to test section of a PR x)
The new hook actionValidateCartRule is well available on my shop.
I tested this following part : All of those "Buy X and X to get X", "Buy 2x this and get discount" - whatever, easily.
Works as expected ✅
I tested your module tox_cartrulevalidation.zip and it works as you explained.
Is there something else that should be tested ?
Thanks!
|
Ping @kpodemski could you QA it maybe? |
|
Hello @Hlavtox Some checks haven’t completed yet |
|
@paulnoelcholot Tests green now |
|
Hello @Hlavtox, I tested your PR and it's GOOD for me! 🎉 Thanks! |
|
love it |
New hook
actionValidateCartRulewhich allows you to create absolutely endless possibilities of rules, when the cart rule should be valid. Also, you can use this to speed up prestashop in specific cases by skipping some of the validations. All of those "Buy X and X to get X", "Buy 2x this and get discount" - whatever, easily.Known issues NOT RELATED TO THIS PR