trimark Posted January 22, 2016 Share Posted January 22, 2016 It seem when I do category drag and drop sorting or attribute drag and drop sorting. It works great but when I got back the sort is not saved. Some of it seems to save but I have to sort 10 times to get it complete. Is there something I am missing. Link to comment Share on other sites More sharing options...
0 NemoPS Posted January 25, 2016 Share Posted January 25, 2016 What's your prestashop version? There was a bug in the method that rebuilds the category tree Link to comment Share on other sites More sharing options...
0 trimark Posted January 25, 2016 Author Share Posted January 25, 2016 I am on the live Cloud version. Link to comment Share on other sites More sharing options...
0 NemoPS Posted January 27, 2016 Share Posted January 27, 2016 It might still be bugged, you'd have to check the regenerateEntireNtree method, at the end, and loop through all categories instead of sending the first one only Link to comment Share on other sites More sharing options...
0 trimark Posted January 27, 2016 Author Share Posted January 27, 2016 I am sorry. But I don't understand the fix you mention about regenerateEntireNtree. I don't see any function or option in the back end. Link to comment Share on other sites More sharing options...
0 NemoPS Posted January 29, 2016 Share Posted January 29, 2016 There is not, you need to fix it in category.php if (isset($categories_array[0]) && $categories_array[0]['subcategories']) { foreach ($categories_array[0]['subcategories'] as $subcat) { Category::_subTree($categories_array, $subcat, $n); } } This did it for all the sites that had the same issue Link to comment Share on other sites More sharing options...
0 trimark Posted January 30, 2016 Author Share Posted January 30, 2016 Sorry to be so dense... Where do I put it in Category.php Link to comment Share on other sites More sharing options...
0 NemoPS Posted February 1, 2016 Share Posted February 1, 2016 In regenerateEntireNtree(), there is a snippet at the end, replace it: if (isset($categories_array[0]) && $categories_array[0]['subcategories']) { Category::_subTree($categories_array, $categories_array[0]['subcategories'][0], $n); } Link to comment Share on other sites More sharing options...
Question
trimark
It seem when I do category drag and drop sorting or attribute drag and drop sorting. It works great but when I got back the sort is not saved. Some of it seems to save but I have to sort 10 times to get it complete.
Is there something I am missing.
Link to comment
Share on other sites
7 answers to this question
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