-
Notifications
You must be signed in to change notification settings - Fork 93
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
Fix upgrade module to v4 #107
Conversation
thanks @Progi1984, can you add my 3 pr in this module to 4.2.2 version ? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@kpodemski seems like your feedback has been dealt with 👍
@kpodemski is it ok now ? |
@jf-viguier great, thanks 👍 |
Hello @jf-viguier I'm really sorry but it seems I have an issue with installing the productcomment module v3.6.1 on 1.6.1.20 I tried many times but in vain 😖 Thanks in advance 🙏 |
Hi @jf-viguier, I followed these steps:
Thanks to check and feedback. |
@khouloudbelguith have you cleared the ps cache ? |
@jf-viguier I have the same bug as @khouloudbelguith and all cache are cleared. |
Ping @PrestaShop/prestashop-core-developers is there any one have an idea about how to test this PR 🙏
Thanks in advance 🙏 |
IMO it's a good scenario for tests 👍 |
The productcomments is updated during pretashop upgrade from addons : so the code of this pr will not be launched, how to solve this @kpodemski ? |
@jf-viguier hmm, you're right I think we need to create a package for the module.
@jf-viguier that should do it, right? |
@kpodemski I guess no, upgrade/install-4.0.0.php of my pr has to be launched. Prestashop upgrade will upgrade the module to the version 5. |
Discussed with @hibatallahAouadni about the process, she will test with this process. Thanks to her. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hello everyone,
Following my steps (mentioned above), I encounter first issue while upgrading:
Then, I give the access rights to the module and re-upgrade to 1.7.8.2, and it was a success:
As you can see in module manager, the PR is well installed:
Clicking on Configure, you could see the 6 created comments before upgrade:
But on FO, the block product comments is not displayed:
I checked the position of hooks and it seems good to me:
I check the table of product_comments, and it seems all good to me:
So, @jf-viguier you need to follow my steps to check and fix the issue (the block product comments is not displayed).
Please check and feedback.
Thanks!
modules\productcomments\upgrade\install-4.0.0.php is well executed during test steps. There are two issues with your steps @hibatallahAouadni
There is still a javascript error to fix in modules\productcomments\views\templates\hook\product-additional-info-quickview.tpl (remove all script here) and then comments will whow up. Please check @hibatallahAouadni |
Co-authored-by: GoT <PierreRambaud@users.noreply.github.com>
6c95f2f
to
fb2386c
Compare
I've just rebased my pr |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hello @jf-viguier
After adding this hook displayFooterProduct
:
All comments are well displayed and the pagination works 💯
pr_107.mp4
LGTM, QA ✔️
Thanks for your hard working 🚀
Thanks @hibatallahAouadni |
Thanks @jf-viguier & @hibatallahAouadni (for the hard work QA on this PR). |
It seems that the upgrade file is not launched at prestashop 1.7 upgrade in some cases. So I added a default commentsPerPage in paginate method