cscreenstore Posted August 3, 2021 Share Posted August 3, 2021 (edited) Hello, Can somebody explain to me the requirements for: type_categories name_category that are found in the following: array( 'type' => 'categories', 'label' => 'tree categories', 'name' => 'type_categories', 'tree' => array( 'root_category' => 1, 'id' => 'id_category, 'name' => 'name_category', 'selected_categories' => array(3), ), ), The reason for my asking is that I am experiencing a problem with the category tree in my custom module. When I make a selection by clicking the checkbox, the blue tick shows, but when I click the save button the blue tick disappears, however the selection temporarily works. Additional Information; The Switch buttons are also not working, but the mColorPicker is working. I am using Prestashop 1.7.6.7 Any help will be appreciated. Thanks Kathleen Edited August 4, 2021 by cscreenstore Additional Information (see edit history) Link to comment Share on other sites More sharing options...
SmartDataSoft Posted August 4, 2021 Share Posted August 4, 2021 @cscreenstore Did you send variable value in template var after fetch from configuration. Where you try to include this in configuration page of module or admin controller. If possible you can send the module in Private message or post the code here. We or other Prestashop expert can help you by install the module and debug the code if possible. Thank you Link to comment Share on other sites More sharing options...
cscreenstore Posted August 5, 2021 Author Share Posted August 5, 2021 Thank you for replying to my problem. Can you elaborate, I don't understand what you mean. I am a novice here and need you to explain it a bit more. Also, it is in the configuration of my module, not a controller. I don't understand why the mColorPicker is working, but the Switch, and Tree are not working. Surely if there is a problem, none of the Helpers would work. Thanks Kathleen Link to comment Share on other sites More sharing options...
SmartDataSoft Posted August 10, 2021 Share Posted August 10, 2021 Hello, Please check your browser console any kind of jquery related error is showing or not. Javascript error may break thing work as they render with js. Without see the full code and image this way , issue is not possible to solve by any one Thank you Link to comment Share on other sites More sharing options...
cscreenstore Posted August 14, 2021 Author Share Posted August 14, 2021 Hello, Thank you for your reply. I did what you suggested and got the following error. 'Uncaught Reference Error Onboarding is not defined' The version I am testing on is 1.7.6.7. So I installed and tested on 1.7.6.6 and 1.7.3.0 and it works fine on those versions. I am only experiencing the problem in 1.7.6.7 Thanks for any further help Kathleen Link to comment Share on other sites More sharing options...
SmartDataSoft Posted August 14, 2021 Share Posted August 14, 2021 @cscreenstore If your shop is test shop, I suggest you to install latest PrestaShop version 1.7.7.6 which release few days agos. and then check. The category tree normally used in module used old system, each new PrestaShop version is moving in symphony . So they may be remove it. If you send me the module via PM i can check in my local development pc 1.7.7.5 Thank you Link to comment Share on other sites More sharing options...
cscreenstore Posted August 15, 2021 Author Share Posted August 15, 2021 Hello, I installed and tested my module with 1.7.7.6 and it worked fine. I then removed the 1.7.6.7 version and re-installed it and it is now working fine. Thank you for all your help. If I need any paid assistance I will contact you. Thanks Kathleen Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now