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
Manage newsletter subscription in a modern ajax way #48
Conversation
avoid multiple bootstrap alerts
I've made a new commit to replace ajaxRender by ajaxDie for Prestashop < 1.7.5 support |
Co-Authored-By: GoT <PierreRambaud@users.noreply.github.com>
Any news from QA ? |
1 similar comment
Any news from QA ? |
f60a1ac
Hey @jf-viguier Please configure your IDE so it auto-add new line at the end of the file :) |
Hello @SD1982, I don't have this behavior. I'm in 1.7.6.2 and you ? |
@jf-viguier I tested your PR also (on 1.7.7.x). I have the same issue: I checked the AJAX query, the
EDIT: oh, same answer from @SD1982 |
Hello @jf-viguier This behavior appears when i test on version 1.7.7 but I just tested on version 1.7.6 like you and indeed it works correctly and as you can see the message is diplayed on top this time and without disabling javascript: Version 1.7.6.x so it probably does not come from your PR what do you think of that @matks , @NeOMakinG |
I think we need @PrestaShop/prestashop-core-developers opinion on this ! If this PR works in 176 but not in 177, is this link to the PR or to the 177 version ? Thanks |
@Robin-Fischer-PS I've already answered this : it's linked to 177 version. |
It does not matter. We are not going to accept a Pull Request that we know it will fail with 177 😉. What kind of professionnals would we be if we accept something that we know will fail with next release when it's scheduled for 1 or 2 months in the future ? Until we know why it fails with 177 we cannot merge this PR. It does not mean we will not merge this PR. It means we need more exploration. |
Thanks @matks I understand. I just means that my pr is not the source of the bug. I guess that other ajax requests have this bug in 177 ? |
@jf-viguier Fixed with commit da17e14 This PR can now go through QA again, for both 176 and 177 checks 💪 |
Thanks @matks for the fix, you rocks |
LGTM in 1.7.6.x and 1.7.7.x Thanks @jf-viguier |
Thanks @jf-viguier |
@Progi1984 when this will pr be released ? |
Newsletter subscription seems no more in ajax in hummingbird theme. Can someone confirm ? |
This is more elegant and avoid full page reload, see PrestaShop/PrestaShop#17054
Newsletter subscription uses an old fashion "post to home page" form with several issues :
Notice : I've changed the version number to 2.5.2 to launch upgrade : I must register a new hook actionFrontControllerSetMedia to load my new js file.