After resetting a module, it should be where it was originally after your first install of the theme #35512
Replies: 16 comments
-
Thanks for opening this issue! We will help you to keep its state consistent |
Beta Was this translation helpful? Give feedback.
-
Related to #16968 |
Beta Was this translation helpful? Give feedback.
-
I'm not sure it's a bug 🤔 You reset or reinstall a module, the position is automatically set at the end, nothing predicted that when you install/reset these modules your theme want to be set at position X. You've access to the Module Positions page to change the value. |
Beta Was this translation helpful? Give feedback.
-
@PrestaShop/product-team What do you think about @PierreRambaud answer ? |
Beta Was this translation helpful? Give feedback.
-
After resetting a module, it should be where it was originally after your first install of the theme. |
Beta Was this translation helpful? Give feedback.
-
Hi @marionf for the #pullrequestmonday i want to work on it but I need to know if it's only for classic theme or for all theme because the work to do it's very different. I agree @PierreRambaud because : The Merchant : 1 ) he Install a theme , The shop dont respect the merchant position ? |
Beta Was this translation helpful? Give feedback.
-
And it's possible to set the defaut position only if the module is include with the theme. |
Beta Was this translation helpful? Give feedback.
-
How to handle this if the user has made the decision to move the module to another location? |
Beta Was this translation helpful? Give feedback.
-
@jf-viguier say us an option exist for theme reset and all positions are good after. But for this option we need to put PS_MODE_DEV to ON why not allow this option for all context ? |
Beta Was this translation helpful? Give feedback.
-
@jf-viguier picture |
Beta Was this translation helpful? Give feedback.
-
Yes, a theme reset should solve the issue if theme.yml is correct. |
Beta Was this translation helpful? Give feedback.
-
Hello @jf-viguier @jeckyl @okom3pom what is your idea? I think your plan is:
Is that your plan? If yes it means any module not included in theme.yml will continue using current behavior: after reset it is hooked at the end. If @PrestaShop/product-team agree with this plan, I suggest to add a small confirmation window before doing it. "Hello, you are resetting the module, do you prefer module is hooked 1) at the end 2) at position X as configured in your theme" Asking the user what he would prefer is a good way to avoid receiving a bug report "Hello, PrestaShop resets module A to its theme position, this is a bug, I don't want that..." 😆 |
Beta Was this translation helpful? Give feedback.
-
Give the choice for the user is the best way! |
Beta Was this translation helpful? Give feedback.
-
im agree with you @matks, use theme yml if entry exist with the module else, show confirmation windows for the user to choice the position for the module |
Beta Was this translation helpful? Give feedback.
-
@kpodemski I think we can close this, that is what just happens and if you go that far to reset a module, you can move it back.. |
Beta Was this translation helpful? Give feedback.
-
More a feature request, should we it into discussion then ? @Hlavtox |
Beta Was this translation helpful? Give feedback.
-
Describe the bug
If you reset the module or if you uninstall the module, clone the module from GitHub and install it, then on FO, the slider is hooked on the wrong display.
Checked with
ps_imageslider
module,ps_featuredproducts
module,ps_customtext
module,Banner
module,ps_emailsubscription
module,ps_socialfollow
module,ps_categorytree
Module,productcomments
Module,ps_customersignin
moduleSteps to Reproduce
Steps to reproduce the behavior:
Before
After
Additional information
Wanted behavior
After resetting a module, it should be where it was originally after your first install of the theme.
That's the point of resetting something: putting it back to its original state.
Beta Was this translation helpful? Give feedback.
All reactions